- Timestamp:
- Jan 31, 2007 11:13:20 PM (18 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA.cpp
r473 r482 102 102 #include <VBox/VBoxGuest.h> 103 103 104 #if defined(VBE_NEW_DYN_LIST) && defined(IN_RING3) 104 #if defined(VBE_NEW_DYN_LIST) && defined(IN_RING3) && !defined(VBOX_DEVICE_STRUCT_TESTCASE) 105 105 # include "DevVGAModes.h" 106 106 # include <stdio.h> /* sscan */ … … 113 113 114 114 115 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 115 116 /******************************************************************************* 116 117 * Internal Functions * … … 180 181 } 181 182 183 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 182 184 #endif /* VBOX */ 185 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 183 186 184 187 #ifndef VBOX … … 572 575 break; 573 576 default: 574 val = s->vbe_regs[s->vbe_index]; 577 val = s->vbe_regs[s->vbe_index]; 575 578 break; 576 579 } … … 1300 1303 1301 1304 /* line compare */ 1302 line_compare = s->cr[0x18] | 1305 line_compare = s->cr[0x18] | 1303 1306 ((s->cr[0x07] & 0x10) << 4) | 1304 1307 ((s->cr[0x09] & 0x40) << 3); … … 1962 1965 } 1963 1966 /* line compare acts on the displayed lines */ 1967 /** @todo r=bird: why was our change removed? I can't immediately spot and it wasn't mentioned in the commit message... */ 1964 1968 if ((uint32_t)y == s->line_compare) 1965 1969 addr1 = 0; … … 2644 2648 { 2645 2649 VGAState *s = PDMINS2DATA(pDevIns, PVGASTATE); 2646 2650 2647 2651 NOREF(pvUser); 2648 2652 … … 5023 5027 #endif /* !IN_RING3 */ 5024 5028 #endif /* VBOX */ 5029 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ 5025 5030 5026 5031 /* -
trunk/src/VBox/Devices/Graphics/DevVGA.h
r473 r482 180 180 some type changes, and some padding have been added. */ 181 181 #define VGA_STATE_COMMON \ 182 HCPTRTYPE(uint8_t *) vram_ptrHC; \182 R3PTRTYPE(uint8_t *) vram_ptrHC; \ 183 183 uint32_t vram_size; \ 184 184 uint32_t latch; \ … … 203 203 uint8_t palette[768]; \ 204 204 int32_t bank_offset; \ 205 HCPTRTYPE(FNGETBPP *) get_bpp; \ 206 HCPTRTYPE(FNGETOFFSETS *) get_offsets; \ 207 HCPTRTYPE(FNGETRESOLUTION *) get_resolution; \ 205 int32_t padding0; \ 206 R3PTRTYPE(FNGETBPP *) get_bpp; \ 207 R3PTRTYPE(FNGETOFFSETS *) get_offsets; \ 208 R3PTRTYPE(FNGETRESOLUTION *) get_resolution; \ 208 209 VGA_STATE_COMMON_BOCHS_VBE \ 209 210 /* display refresh support */ \ … … 212 213 uint8_t shift_control; \ 213 214 uint8_t double_scan; \ 214 uint8_t padding 0[2]; \215 uint8_t padding1[2]; \ 215 216 uint32_t line_offset; \ 216 217 uint32_t line_compare; \ 217 218 uint32_t start_addr; \ 218 219 uint32_t plane_updated; \ 219 uint8_t last_cw, last_ch, padding 1[2]; \220 uint8_t last_cw, last_ch, padding2[2]; \ 220 221 uint32_t last_width, last_height; /* in chars or pixels */ \ 221 222 uint32_t last_scr_width, last_scr_height; /* in pixels */ \ 222 223 uint32_t last_bpp; \ 223 uint8_t cursor_start, cursor_end, padding 2[2]; \224 uint8_t cursor_start, cursor_end, padding3[2]; \ 224 225 uint32_t cursor_offset; \ 225 HCPTRTYPE(FNRGBTOPIXEL *) rgb_to_pixel; \ 226 uint32_t padding4; \ 227 R3PTRTYPE(FNRGBTOPIXEL *) rgb_to_pixel; \ 226 228 /* hardware mouse cursor support */ \ 227 229 uint32_t invalidated_y_table[VGA_MAX_HEIGHT / 32]; \ 228 HCPTRTYPE(FNCURSORINVALIDATE *) cursor_invalidate; \229 HCPTRTYPE(FNCURSORDRAWLINE *) cursor_draw_line; \230 R3PTRTYPE(FNCURSORINVALIDATE *) cursor_invalidate; \ 231 R3PTRTYPE(FNCURSORDRAWLINE *) cursor_draw_line; \ 230 232 /* tell for each page if it has been updated since the last time */ \ 231 233 uint32_t last_palette[256]; \ … … 257 259 uint32_t au32DirtyBitmap[VGA_VRAM_MAX / PAGE_SIZE / 32]; 258 260 /** Pointer to the device instance - HC Ptr. */ 259 HCPTRTYPE(PPDMDEVINS)pDevInsHC;261 PPDMDEVINSHC pDevInsHC; 260 262 /* * Pointer to the device instance - GC Ptr. */ 261 263 /*GCPTRTYPE(PPDMDEVINS) pDevInsGC;*/ … … 266 268 PDMIDISPLAYPORT Port; 267 269 /** Pointer to base interface of the driver. */ 268 PPDMIBASEpDrvBase;270 R3PTRTYPE(PPDMIBASE) pDrvBase; 269 271 /** Pointer to display connector interface of the driver. */ 270 PPDMIDISPLAYCONNECTORpDrv;272 R3PTRTYPE(PPDMIDISPLAYCONNECTOR) pDrv; 271 273 /** Refresh timer handle - HC. */ 272 274 PTMTIMERHC RefreshTimer; … … 274 276 uint32_t cMilliesRefreshInterval; 275 277 278 /** Size of the buffer*/ 279 uint32_t cbExtVRAM; 276 280 /** Address of external video memory buffer overlaying VRAM. */ 277 void *pvExtVRAMHC;278 /** Size of the buffer*/ 279 uint32_t cbExtVRAM;280 281 R3PTRTYPE(void *) pvExtVRAMHC; 282 #if HC_ARCH_BITS ==32 283 uint32_t Alignment0; 284 #endif 281 285 /** The PCI device. */ 282 286 PCIDEVICE Dev; … … 296 300 uint8_t cbWriteVBEData; 297 301 uint8_t cbWriteVBEIndex; 298 # ifdef VBE_NEW_DYN_LIST302 # ifdef VBE_NEW_DYN_LIST 299 303 /** VBE Extra Data write address one byte buffer */ 300 304 uint8_t cbWriteVBEExtraAddress; 301 #endif 305 uint8_t Padding6; /**< Alignment padding. */ 306 # else 307 uint8_t Padding6[2]; /**< Alignment padding. */ 308 # endif 302 309 #endif 303 310 304 311 #ifdef VBE_NEW_DYN_LIST 312 /** The VBE BIOS extra data. */ 313 R3PTRTYPE(uint8_t *) pu8VBEExtraData; 305 314 /** The size of the VBE BIOS extra data. */ 306 315 uint16_t cbVBEExtraData; 307 /** The VBE BIOS extra data. */308 uint8_t *pu8VBEExtraData;309 316 /** The VBE BIOS current memory address. */ 310 317 uint16_t u16VBEExtraAddress; 318 uint16_t Padding7[2]; /**< Alignment padding. */ 311 319 #endif 312 320
Note:
See TracChangeset
for help on using the changeset viewer.