Changeset 23814 in vbox for trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
- Timestamp:
- Oct 16, 2009 10:12:31 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
r22963 r23814 35 35 #undef LOG_GROUP 36 36 #include "../Input/DevPS2.cpp" 37 #ifdef VBOX_WITH_E1000 38 # undef LOG_GROUP 39 # include "../Network/DevE1000.cpp" 40 #endif 37 41 #undef LOG_GROUP 38 42 #include "../Network/DevPCNet.cpp" 43 #ifdef VBOX_WITH_VIRTIO 44 # undef LOG_GROUP 45 # include "../Network/DevVirtio.cpp" 46 #endif 39 47 #undef LOG_GROUP 40 48 #include "../PC/DevACPI.cpp" … … 47 55 #undef LOG_GROUP 48 56 #include "../PC/DevAPIC.cpp" 57 #ifdef VBOX_WITH_HPET 58 # undef LOG_GROUP 59 # include "../PC/DevHPET.cpp" 60 #endif 61 #ifdef VBOX_WITH_LPC 62 # undef LOG_GROUP 63 # include "../PC/DevLPC.cpp" 64 #endif 65 #ifdef VBOX_WITH_SMC 66 # undef LOG_GROUP 67 # include "../PC/DevSMC.cpp" 68 #endif 49 69 #undef LOG_GROUP 50 70 #include "../Storage/DevATA.cpp" … … 64 84 # include "../Storage/DevAHCI.cpp" 65 85 #endif 66 #ifdef VBOX_WITH_E100067 # undef LOG_GROUP68 # include "../Network/DevE1000.cpp"69 #endif70 86 #ifdef VBOX_WITH_BUSLOGIC 71 87 # undef LOG_GROUP … … 75 91 # undef LOG_GROUP 76 92 # include "../Storage/DevLsiLogicSCSI.cpp" 77 #endif78 #ifdef VBOX_WITH_HPET79 # undef LOG_GROUP80 # include "../PC/DevHPET.cpp"81 #endif82 #ifdef VBOX_WITH_LPC83 # undef LOG_GROUP84 # include "../PC/DevLPC.cpp"85 #endif86 #ifdef VBOX_WITH_SMC87 # undef LOG_GROUP88 # include "../PC/DevSMC.cpp"89 93 #endif 90 94 … … 243 247 CHECK_SIZE(int8_t, 8/8); 244 248 245 /* 246 * Misc alignment checks. 247 */ 249 /* Basic alignment checks. */ 248 250 CHECK_MEMBER_ALIGNMENT(PDMDEVINS, achInstanceData, 64); 249 251 CHECK_MEMBER_ALIGNMENT(PCIDEVICE, Int.s, 16); 250 252 CHECK_MEMBER_ALIGNMENT(PCIDEVICE, Int.s.aIORegions, 16); 251 CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16); 252 CHECK_MEMBER_ALIGNMENT(PCIGLOBALS, pci_irq_levels, 16); 253 CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8); 254 CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8); 255 CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8); 253 254 /* 255 * Misc alignment checks (keep this somewhat alphabetical). 256 */ 257 CHECK_MEMBER_ALIGNMENT(AHCI, lock, 8); 258 CHECK_MEMBER_ALIGNMENT(AHCIATACONTROLLER, lock, 8); 259 CHECK_MEMBER_ALIGNMENT(AHCIATACONTROLLER, StatAsyncOps, 8); 256 260 #ifdef VBOX_WITH_STATISTICS 257 // CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadGC, 8);258 CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqGC, 8);259 261 CHECK_MEMBER_ALIGNMENT(APICDeviceInfo, StatMMIOReadGC, 8); 260 CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8); 261 CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8); 262 #endif 263 CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8); 262 #endif 264 263 CHECK_MEMBER_ALIGNMENT(ATADevState, cTotalSectors, 8); 265 264 CHECK_MEMBER_ALIGNMENT(ATADevState, StatATADMA, 8); 266 265 CHECK_MEMBER_ALIGNMENT(ATADevState, StatReads, 8); 266 CHECK_MEMBER_ALIGNMENT(ATACONTROLLER, lock, 8); 267 267 CHECK_MEMBER_ALIGNMENT(ATACONTROLLER, StatAsyncOps, 8); 268 CHECK_MEMBER_ALIGNMENT(DEVPARALLELSTATE, CritSect, 8); 269 #ifdef VBOX_WITH_STATISTICS 270 CHECK_MEMBER_ALIGNMENT(DEVPIC, StatSetIrqGC, 8); 271 #endif 272 CHECK_MEMBER_ALIGNMENT(E1KSTATE, cs, 8); 273 CHECK_MEMBER_ALIGNMENT(E1KSTATE, csRx, 8); 274 //CHECK_MEMBER_ALIGNMENT(E1KSTATE, csTx, 8); 275 #ifdef VBOX_WITH_USB 276 CHECK_MEMBER_ALIGNMENT(EHCI, RootHub, 8); 277 # ifdef VBOX_WITH_STATISTICS 278 CHECK_MEMBER_ALIGNMENT(EHCI, StatCanceledIsocUrbs, 8); 279 # endif 280 #endif 281 #ifdef VBOX_WITH_STATISTICS 282 CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8); 283 CHECK_MEMBER_ALIGNMENT(IOAPICState, StatMMIOReadGC, 8); 284 #endif 285 CHECK_MEMBER_ALIGNMENT(KBDState, CritSect, 8); 286 CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyPostQueueCritSect, 8); 287 CHECK_MEMBER_ALIGNMENT(LSILOGISCSI, ReplyFreeQueueCritSect, 8); 268 288 #ifdef VBOX_WITH_USB 269 289 CHECK_MEMBER_ALIGNMENT(OHCI, RootHub, 8); … … 271 291 CHECK_MEMBER_ALIGNMENT(OHCI, StatCanceledIsocUrbs, 8); 272 292 # endif 273 CHECK_MEMBER_ALIGNMENT(EHCI, RootHub, 8); 274 # ifdef VBOX_WITH_STATISTICS 275 CHECK_MEMBER_ALIGNMENT(EHCI, StatCanceledIsocUrbs, 8); 276 # endif 277 #endif 278 293 #endif 294 CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16); 295 CHECK_MEMBER_ALIGNMENT(PCIBUS, devices, 16); 296 CHECK_MEMBER_ALIGNMENT(PCIGLOBALS, pci_irq_levels, 16); 297 CHECK_MEMBER_ALIGNMENT(PCNetState, u64LastPoll, 8); 298 CHECK_MEMBER_ALIGNMENT(PCNetState, CritSect, 8); 299 #ifdef VBOX_WITH_STATISTICS 300 CHECK_MEMBER_ALIGNMENT(PCNetState, StatMMIOReadGC, 8); 301 #endif 302 CHECK_MEMBER_ALIGNMENT(PITState, StatPITIrq, 8); 303 CHECK_MEMBER_ALIGNMENT(SerialState, CritSect, 8); 304 CHECK_MEMBER_ALIGNMENT(VGASTATE, Dev, 8); 305 CHECK_MEMBER_ALIGNMENT(VGASTATE, lock, 8); 306 CHECK_MEMBER_ALIGNMENT(VGASTATE, StatRZMemoryRead, 8); 307 CHECK_MEMBER_ALIGNMENT(VMMDevState, CritSect, 8); 308 #ifdef VBOX_WITH_VIRTIO 309 CHECK_MEMBER_ALIGNMENT(VPCISTATE, cs, 8); 310 #endif 279 311 280 312 /*
Note:
See TracChangeset
for help on using the changeset viewer.