- Timestamp:
- Mar 12, 2012 5:00:57 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/Hardware/VBoxVideoVBE.h
r39359 r40433 56 56 #define VBE_DISPI_INDEX_Y_OFFSET 0x9 57 57 #define VBE_DISPI_INDEX_VBOX_VIDEO 0xa 58 #define VBE_DISPI_INDEX_NB_SAVED 0xb /* Number of saved registers (vbe_regs array) */ 59 #define VBE_DISPI_INDEX_NB 0xb /* Total number of VBE registers */ 58 #define VBE_DISPI_INDEX_FB_BASE_HI 0xb 60 59 61 60 #define VBE_DISPI_ID0 0xB0C0 -
trunk/src/VBox/Devices/Graphics/BIOS/vbe.c
r35026 r40433 1222 1222 write_word(ES, DI + RT_OFFSETOF(ModeInfoBlock, WinFuncPtr) + 2, 0xC000); 1223 1223 } 1224 // Update the LFB physical address which may change at runtime 1225 outw(VBE_DISPI_IOPORT_INDEX, VBE_DISPI_INDEX_FB_BASE_HI); 1226 write_word(ES, DI + RT_OFFSETOF(ModeInfoBlock, PhysBasePtr) + 2, inw(VBE_DISPI_IOPORT_DATA)); 1227 1224 1228 result = 0x4f; 1225 1229 } -
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r40280 r40433 855 855 break; 856 856 default: 857 Assert(s->vbe_index < VBE_DISPI_INDEX_NB _SAVED);857 Assert(s->vbe_index < VBE_DISPI_INDEX_NB); 858 858 val = s->vbe_regs[s->vbe_index]; 859 859 break; … … 866 866 break; 867 867 default: 868 Assert(s->vbe_index < VBE_DISPI_INDEX_NB _SAVED);868 Assert(s->vbe_index < VBE_DISPI_INDEX_NB); 869 869 val = s->vbe_regs[s->vbe_index]; 870 870 break; … … 5265 5265 AssertRC(rc); 5266 5266 if (RT_SUCCESS(rc)) 5267 { 5267 5268 pThis->GCPhysVRAM = GCPhysAddress; 5269 pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI] = GCPhysAddress >> 16; 5270 } 5268 5271 } 5269 5272 } … … 5278 5281 AssertRC(rc); 5279 5282 pThis->GCPhysVRAM = 0; 5283 pThis->vbe_regs[VBE_DISPI_INDEX_FB_BASE_HI]; 5280 5284 } 5281 5285 return rc; -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r39603 r40433 76 76 #ifdef CONFIG_BOCHS_VBE 77 77 78 /* Cross reference with <VBox/Hardware/VBoxVideoVBE.h> */ 79 #define VBE_DISPI_INDEX_NB_SAVED 0xb /* Number of saved registers (vbe_regs array) */ 80 #define VBE_DISPI_INDEX_NB 0xc /* Total number of VBE registers */ 81 78 82 #define VGA_STATE_COMMON_BOCHS_VBE \ 79 83 uint16_t vbe_index; \ 80 uint16_t vbe_regs[VBE_DISPI_INDEX_NB_SAVED];\ 84 uint16_t vbe_regs[VBE_DISPI_INDEX_NB]; \ 85 uint16_t alignment[3]; /* pad to 64 bits */ \ 81 86 uint32_t vbe_start_addr; \ 82 87 uint32_t vbe_line_offset; \
Note:
See TracChangeset
for help on using the changeset viewer.