VirtualBox

Changeset 5516 in vbox


Ignore:
Timestamp:
Oct 26, 2007 3:31:17 PM (17 years ago)
Author:
vboxsync
Message:

EHCI: testcases for checking alignment & size

Location:
trunk/src/VBox/Devices/testcase
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp

    r4071 r5516  
    5050# undef LOG_GROUP
    5151# include "USB/DevOHCI.cpp"
     52# include "USB/DevEHCI.cpp"
    5253#endif
    5354#undef LOG_GROUP
     
    220221    CHECK_MEMBER_ALIGNMENT(OHCI, StatCanceledIsocUrbs, 8);
    221222# endif
     223    CHECK_MEMBER_ALIGNMENT(EHCI, RootHub, 8);
     224# ifdef VBOX_WITH_STATISTICS
     225    CHECK_MEMBER_ALIGNMENT(EHCI, StatCanceledIsocUrbs, 8);
     226# endif
    222227#endif
    223228
  • trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp

    r5309 r5516  
    6060# undef LOG_GROUP
    6161# include "USB/DevOHCI.cpp"
     62# include "USB/DevEHCI.cpp"
    6263#endif
    6364#undef LOG_GROUP
     
    757758    GEN_CHECK_OFF(OHCI, StatTimer);
    758759# endif
     760    /* USB/DevEHCI.cpp */
     761    GEN_CHECK_SIZE(EHCIHUBPORT);
     762    GEN_CHECK_OFF(EHCIHUBPORT, fReg);
     763    GEN_CHECK_OFF(EHCIHUBPORT, pDev);
     764
     765    GEN_CHECK_SIZE(EHCIROOTHUB);
     766    GEN_CHECK_OFF(EHCIROOTHUB, pIBase);
     767    GEN_CHECK_OFF(EHCIROOTHUB, pIRhConn);
     768    GEN_CHECK_OFF(EHCIROOTHUB, pIDev);
     769    GEN_CHECK_OFF(EHCIROOTHUB, IBase);
     770    GEN_CHECK_OFF(EHCIROOTHUB, IRhPort);
     771    GEN_CHECK_OFF(EHCIROOTHUB, status);
     772    GEN_CHECK_OFF(EHCIROOTHUB, desc_a);
     773    GEN_CHECK_OFF(EHCIROOTHUB, desc_b);
     774    GEN_CHECK_OFF(EHCIROOTHUB, aPorts);
     775    GEN_CHECK_OFF(EHCIROOTHUB, aPorts[1]);
     776    GEN_CHECK_OFF(EHCIROOTHUB, aPorts[EHCI_NDP - 1]);
     777    GEN_CHECK_OFF(EHCIROOTHUB, pEhci);
     778
     779    GEN_CHECK_SIZE(EHCI);
     780    GEN_CHECK_OFF(EHCI, PciDev);
     781    GEN_CHECK_OFF(EHCI, MMIOBase);
     782    GEN_CHECK_OFF(EHCI, pEndOfFrameTimerHC);
     783    GEN_CHECK_OFF(EHCI, pEndOfFrameTimerGC);
     784    GEN_CHECK_OFF(EHCI, SofTime);
     785    GEN_CHECK_OFF(EHCI, RootHub);
     786    GEN_CHECK_OFF(EHCI, intr_status);
     787    GEN_CHECK_OFF(EHCI, intr);
     788    GEN_CHECK_OFF(EHCI, HcFmNumber);
     789    GEN_CHECK_OFF(EHCI, cTicksPerFrame);
     790    GEN_CHECK_OFF(EHCI, cTicksPerUsbTick);
     791    GEN_CHECK_OFF(EHCI, cInFlight);
     792    GEN_CHECK_OFF(EHCI, aInFlight);
     793    GEN_CHECK_OFF(EHCI, aInFlight[0].GCPhysTD);
     794    GEN_CHECK_OFF(EHCI, aInFlight[0].pUrb);
     795    GEN_CHECK_OFF(EHCI, aInFlight[1]);
     796    GEN_CHECK_OFF(EHCI, pDevInsHC);
     797    GEN_CHECK_OFF(EHCI, pDevInsGC);
     798    GEN_CHECK_OFF(EHCI, pLoad);
     799# ifdef VBOX_WITH_STATISTICS
     800    GEN_CHECK_OFF(EHCI, StatCanceledIsocUrbs);
     801    GEN_CHECK_OFF(EHCI, StatCanceledGenUrbs);
     802    GEN_CHECK_OFF(EHCI, StatDroppedUrbs);
     803    GEN_CHECK_OFF(EHCI, StatTimer);
     804# endif
    759805#endif /* VBOX_WITH_USB */
    760806
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