VirtualBox

Changeset 39972 in vbox for trunk


Ignore:
Timestamp:
Feb 2, 2012 9:38:21 PM (13 years ago)
Author:
vboxsync
Message:

Updated struct testcase to see what breaks.

Location:
trunk/src/VBox/Devices
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Input/DevPS2.cpp

    r39967 r39972  
    236236
    237237    /** Keyboard state (implemented in separate PS2K module). */
     238#ifdef VBOX_DEVICE_STRUCT_TESTCASE
     239    uint8_t                     KbdFiller[PS2K_STRUCT_FILLER];
     240#else
    238241    PS2K                        Kbd;
    239 
    240 #if 1 //OLD_KBD
     242#endif
     243
     244#if OLD_KBD
    241245    /**
    242246     * Keyboard port - LUN#0.
  • trunk/src/VBox/Devices/Input/PS2Dev.h

    r39964 r39972  
    2222
    2323/* Hide the internal structure. */
    24 #ifndef IN_PS2K
     24#if !(defined(IN_PS2K) || defined(VBOX_DEVICE_STRUCT_TESTCASE))
    2525typedef struct PS2K {
    2626    uint8_t     abFiller[PS2K_STRUCT_FILLER];
  • trunk/src/VBox/Devices/Input/PS2K.cpp

    r39964 r39972  
    155155{
    156156    /** Pointer to parent device (keyboard controller). */
    157     void                *pParent;
     157    R3PTRTYPE(void *)     pParent;
    158158    /** Set if keyboard is enabled ('scans' for input). */
    159159    bool                fScanning;
     
    222222
    223223AssertCompile(PS2K_STRUCT_FILLER >= sizeof(PS2K));
     224
     225#ifndef VBOX_DEVICE_STRUCT_TESTCASE
    224226
    225227/* Key type flags. */
     
    14801482    return state;
    14811483}
     1484
     1485#endif /* !VBOX_DEVICE_STRUCT_TESTCASE */
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r39684 r39972  
    3535#undef LOG_GROUP
    3636#include "../Input/DevPS2.cpp"
     37#undef LOG_GROUP
     38#include "../Input/PS2K.cpp"
    3739#ifdef VBOX_WITH_E1000
    3840# undef LOG_GROUP
     
    298300#endif
    299301    CHECK_MEMBER_ALIGNMENT(KBDState, CritSect, 8);
     302    CHECK_MEMBER_ALIGNMENT(PS2K, KbdCritSect, 8);
    300303    CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyPostQueueCritSect, 8);
    301304    CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyFreeQueueCritSect, 8);
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp

    r39684 r39972  
    4444#undef LOG_GROUP
    4545#include "../Input/DevPS2.cpp"
     46#undef LOG_GROUP
     47#include "../Input/PS2K.cpp"
    4648#undef LOG_GROUP
    4749#include "../Network/DevPCNet.cpp"
     
    364366    GEN_CHECK_OFF(KBDState, status);
    365367    GEN_CHECK_OFF(KBDState, mode);
    366     GEN_CHECK_OFF(KBDState, kbd_write_cmd);
    367     GEN_CHECK_OFF(KBDState, scan_enabled);
    368368    GEN_CHECK_OFF(KBDState, mouse_write_cmd);
    369369    GEN_CHECK_OFF(KBDState, mouse_status);
     
    381381    GEN_CHECK_OFF(KBDState, pDevInsR0);
    382382    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);
    387402    GEN_CHECK_OFF(KBDState, Mouse.IBase);
    388403    GEN_CHECK_OFF(KBDState, Mouse.IPort);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette