Changeset 18265 in vbox for trunk/src/VBox/Devices/Graphics/BIOS/vbe.c
- Timestamp:
- Mar 25, 2009 5:09:08 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS/vbe.c
r11982 r18265 79 79 80 80 _vbebios_product_revision: 81 .ascii "Sun xVMVirtualBox Version "81 .ascii "Sun VirtualBox Version " 82 82 .ascii VBOX_VERSION_STRING 83 83 .byte 0x00 … … 150 150 ret 151 151 vesa_pm_set_display_start1: 152 ; convert offset to (X, Y) coordinate 152 ; convert offset to (X, Y) coordinate 153 153 ; (would be simpler to change Bochs VBE API...) 154 154 push eax … … 576 576 call in_ax_dx 577 577 #else 578 in ax,dx 579 #endif 580 pop dx 581 cmp dx,ax 582 jne dispi_set_bank_farcall_error 578 in ax,dx 579 #endif 580 pop dx 581 cmp dx,ax 582 jne dispi_set_bank_farcall_error 583 583 mov ax, #0x004f 584 584 retf … … 1155 1155 #define RT_OFFSETOF(type, member) ( (int)(unsigned)&( ((type *)(void *)0)->member) ) 1156 1156 1157 /* Don't use a local copy of VbeInfoBlock on the stack; it's too big. 1157 /* Don't use a local copy of VbeInfoBlock on the stack; it's too big. 1158 1158 * The Ubuntu 8.04 64 bits splash screen emulator can't handle this. 1159 1159 */ … … 1569 1569 write_word(ES, BX, enable); 1570 1570 BX += 2; 1571 if (!(enable & VBE_DISPI_ENABLED)) 1571 if (!(enable & VBE_DISPI_ENABLED)) 1572 1572 return; 1573 1573 for(i = VBE_DISPI_INDEX_XRES; i <= VBE_DISPI_INDEX_Y_OFFSET; i++) { … … 1588 1588 enable = read_word(ES, BX); 1589 1589 BX += 2; 1590 1590 1591 1591 if (!(enable & VBE_DISPI_ENABLED)) { 1592 1592 outw(VBE_DISPI_IOPORT_INDEX,VBE_DISPI_INDEX_ENABLE); … … 1909 1909 * Secondary palette support is a "future extension". 1910 1910 * Attempts to set/get it should return status 02h. 1911 * 1911 * 1912 1912 * In VBE 3.0, reading palette data is optional and 1913 1913 * subfunctions 01h and 03h may return failure. 1914 * 1914 * 1915 1915 * The format of palette entries is as follows: 1916 * 1916 * 1917 1917 * PaletteEntry struc 1918 1918 * Blue db ? ; Blue channel value (6 or 8 bits) … … 1921 1921 * Padding db ? ; DWORD alignment byte (unused) 1922 1922 * PaletteEntry ends 1923 * 1923 * 1924 1924 * Most applications use VGA DAC registers directly to 1925 1925 * set/get palette in VBE modes. However, subfn 4F09h is
Note:
See TracChangeset
for help on using the changeset viewer.