- Timestamp:
- Feb 2, 2012 9:38:21 PM (13 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Input/DevPS2.cpp
r39967 r39972 236 236 237 237 /** Keyboard state (implemented in separate PS2K module). */ 238 #ifdef VBOX_DEVICE_STRUCT_TESTCASE 239 uint8_t KbdFiller[PS2K_STRUCT_FILLER]; 240 #else 238 241 PS2K Kbd; 239 240 #if 1 //OLD_KBD 242 #endif 243 244 #if OLD_KBD 241 245 /** 242 246 * Keyboard port - LUN#0. -
trunk/src/VBox/Devices/Input/PS2Dev.h
r39964 r39972 22 22 23 23 /* Hide the internal structure. */ 24 #if ndef IN_PS2K24 #if !(defined(IN_PS2K) || defined(VBOX_DEVICE_STRUCT_TESTCASE)) 25 25 typedef struct PS2K { 26 26 uint8_t abFiller[PS2K_STRUCT_FILLER]; -
trunk/src/VBox/Devices/Input/PS2K.cpp
r39964 r39972 155 155 { 156 156 /** Pointer to parent device (keyboard controller). */ 157 void *pParent;157 R3PTRTYPE(void *) pParent; 158 158 /** Set if keyboard is enabled ('scans' for input). */ 159 159 bool fScanning; … … 222 222 223 223 AssertCompile(PS2K_STRUCT_FILLER >= sizeof(PS2K)); 224 225 #ifndef VBOX_DEVICE_STRUCT_TESTCASE 224 226 225 227 /* Key type flags. */ … … 1480 1482 return state; 1481 1483 } 1484 1485 #endif /* !VBOX_DEVICE_STRUCT_TESTCASE */ -
trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
r39684 r39972 35 35 #undef LOG_GROUP 36 36 #include "../Input/DevPS2.cpp" 37 #undef LOG_GROUP 38 #include "../Input/PS2K.cpp" 37 39 #ifdef VBOX_WITH_E1000 38 40 # undef LOG_GROUP … … 298 300 #endif 299 301 CHECK_MEMBER_ALIGNMENT(KBDState, CritSect, 8); 302 CHECK_MEMBER_ALIGNMENT(PS2K, KbdCritSect, 8); 300 303 CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyPostQueueCritSect, 8); 301 304 CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyFreeQueueCritSect, 8); -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r39684 r39972 44 44 #undef LOG_GROUP 45 45 #include "../Input/DevPS2.cpp" 46 #undef LOG_GROUP 47 #include "../Input/PS2K.cpp" 46 48 #undef LOG_GROUP 47 49 #include "../Network/DevPCNet.cpp" … … 364 366 GEN_CHECK_OFF(KBDState, status); 365 367 GEN_CHECK_OFF(KBDState, mode); 366 GEN_CHECK_OFF(KBDState, kbd_write_cmd);367 GEN_CHECK_OFF(KBDState, scan_enabled);368 368 GEN_CHECK_OFF(KBDState, mouse_write_cmd); 369 369 GEN_CHECK_OFF(KBDState, mouse_status); … … 381 381 GEN_CHECK_OFF(KBDState, pDevInsR0); 382 382 GEN_CHECK_OFF(KBDState, pDevInsRC); 383 GEN_CHECK_OFF(KBDState, Keyboard.IBase); 384 GEN_CHECK_OFF(KBDState, Keyboard.IPort); 385 GEN_CHECK_OFF(KBDState, Keyboard.pDrvBase); 386 GEN_CHECK_OFF(KBDState, Keyboard.pDrv); 383 GEN_CHECK_OFF(KBDState, CritSect); 384 GEN_CHECK_OFF(PS2K, fScanning); 385 GEN_CHECK_OFF(PS2K, fNumLockOn); 386 GEN_CHECK_OFF(PS2K, u8ScanSet); 387 GEN_CHECK_OFF(PS2K, u8Typematic); 388 GEN_CHECK_OFF(PS2K, enmTypematicState); 389 GEN_CHECK_OFF(PS2K, keyQ); 390 GEN_CHECK_OFF(PS2K, cmdQ); 391 GEN_CHECK_OFF(PS2K, uTypematicDelay); 392 GEN_CHECK_OFF(PS2K, pKbdDelayTimerRC); 393 GEN_CHECK_OFF(PS2K, pKbdDelayTimerR3); 394 GEN_CHECK_OFF(PS2K, pKbdDelayTimerR0); 395 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerRC); 396 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerR3); 397 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerR0); 398 GEN_CHECK_OFF(PS2K, Keyboard.IBase); 399 GEN_CHECK_OFF(PS2K, Keyboard.IPort); 400 GEN_CHECK_OFF(PS2K, Keyboard.pDrvBase); 401 GEN_CHECK_OFF(PS2K, Keyboard.pDrv); 387 402 GEN_CHECK_OFF(KBDState, Mouse.IBase); 388 403 GEN_CHECK_OFF(KBDState, Mouse.IPort);
Note:
See TracChangeset
for help on using the changeset viewer.