VirtualBox

source: vbox/trunk/src/VBox/Devices/testcase/tstDeviceStructSizeGC.cpp@ 914

Last change on this file since 914 was 735, checked in by vboxsync, 18 years ago

huh? lets try remove + add

  • Property svn:keywords set to Id
File size: 30.2 KB
Line 
1/* $Id: tstDeviceStructSizeGC.cpp 735 2007-02-07 01:00:10Z vboxsync $ */
2/** @file
3 * tstDeviceStructSizeGC - Generate structure member and size checks from the GC perspective.
4 *
5 * This is built using the VBOXGC template but linked into a host
6 * ring-3 executable, rather hacky.
7 */
8
9/*
10 * Copyright (C) 2006 InnoTek Systemberatung GmbH
11 *
12 * This file is part of VirtualBox Open Source Edition (OSE), as
13 * available from http://www.virtualbox.org. This file is free software;
14 * you can redistribute it and/or modify it under the terms of the GNU
15 * General Public License as published by the Free Software Foundation,
16 * in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
17 * distribution. VirtualBox OSE is distributed in the hope that it will
18 * be useful, but WITHOUT ANY WARRANTY of any kind.
19 *
20 * If you received this file as part of a commercial VirtualBox
21 * distribution, then only the terms of your commercial VirtualBox
22 * license agreement apply instead of the previous paragraph.
23 */
24
25
26/*
27 * Sanity checks.
28 */
29#ifndef IN_GC
30# error Incorrect template!
31#endif
32#if defined(IN_RING3) || defined(IN_RING0)
33# error Incorrect template!
34#endif
35
36
37/*******************************************************************************
38* Header Files *
39*******************************************************************************/
40#define VBOX_DEVICE_STRUCT_TESTCASE
41#undef LOG_GROUP
42#include "Bus/DevPCI.cpp" /* must be first! */
43#undef LOG_GROUP
44#include "Graphics/DevVGA.cpp"
45#undef LOG_GROUP
46#include "Input/pckbd.c"
47#undef LOG_GROUP
48#include "Network/DevPCNet.cpp"
49//#undef LOG_GROUP
50//#include "Network/ne2000.c"
51#undef LOG_GROUP
52#include "PC/DevACPI.cpp"
53#undef LOG_GROUP
54#include "PC/DevPIC.cpp"
55#undef LOG_GROUP
56#include "PC/DevPit-i8254.cpp"
57#undef LOG_GROUP
58#include "PC/DevRTC.cpp"
59#undef LOG_GROUP
60#include "PC/apic.c"
61#undef LOG_GROUP
62#include "Storage/DevATA.cpp"
63#ifdef VBOX_WITH_USB
64# undef LOG_GROUP
65# include "USB/DevOHCI.cpp"
66#endif
67#undef LOG_GROUP
68#include "VMMDev/VBoxDev.cpp"
69
70
71/* we don't use iprt here because we're pretending to be in GC! */
72#include <stdio.h>
73
74#define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, sizeof(s))
75#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, RT_OFFSETOF(s, m), #m)
76#define GEN_CHECK_PADDING(s, m) printf(" CHECK_PADDING(%s, %s);\n", #s, #m)
77
78int main()
79{
80 /* misc */
81 GEN_CHECK_SIZE(PDMDEVINS);
82 GEN_CHECK_OFF(PDMDEVINS, Internal);
83 GEN_CHECK_OFF(PDMDEVINS, pDevHlp);
84 GEN_CHECK_OFF(PDMDEVINS, pDevHlpGC);
85 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR0);
86 GEN_CHECK_OFF(PDMDEVINS, pDevReg);
87 GEN_CHECK_OFF(PDMDEVINS, pCfgHandle);
88 GEN_CHECK_OFF(PDMDEVINS, iInstance);
89 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataHC);
90 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataGC);
91 GEN_CHECK_OFF(PDMDEVINS, IBase);
92 GEN_CHECK_OFF(PDMDEVINS, achInstanceData);
93
94 /* DevPCI.cpp */
95 GEN_CHECK_SIZE(PCIDEVICE);
96 GEN_CHECK_SIZE(PCIDEVICEINT);
97 GEN_CHECK_SIZE(PCIIOREGION);
98 GEN_CHECK_OFF(PCIDEVICE, config);
99 GEN_CHECK_OFF(PCIDEVICE, devfn);
100 GEN_CHECK_OFF(PCIDEVICE, name);
101 GEN_CHECK_OFF(PCIDEVICE, pDevIns);
102 GEN_CHECK_OFF(PCIDEVICE, Int);
103 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBus);
104 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigRead);
105 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigWrite);
106 GEN_CHECK_OFF(PCIDEVICE, Int.s.iIrq);
107 GEN_CHECK_OFF(PCIDEVICE, Int.s.fRequestedDevFn);
108 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions);
109 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[1]);
110 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[PCI_NUM_REGIONS - 1]);
111 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].addr);
112 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].size);
113 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].type);
114 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].padding);
115 GEN_CHECK_PADDING(PCIDEVICE, Int);
116 GEN_CHECK_SIZE(PIIX3State);
117 GEN_CHECK_SIZE(PCIBUS);
118 GEN_CHECK_OFF(PCIBUS, uIrqIndex);
119 GEN_CHECK_OFF(PCIBUS, iBus);
120 GEN_CHECK_OFF(PCIBUS, iDevSearch);
121 GEN_CHECK_OFF(PCIBUS, uConfigReg);
122 GEN_CHECK_OFF(PCIBUS, devices);
123 GEN_CHECK_OFF(PCIBUS, devices[1]);
124 GEN_CHECK_OFF(PCIBUS, pDevInsHC);
125 GEN_CHECK_OFF(PCIBUS, pPciHlpR3);
126 GEN_CHECK_OFF(PCIBUS, pDevInsGC);
127 GEN_CHECK_OFF(PCIBUS, pPciHlpGC);
128 GEN_CHECK_OFF(PCIBUS, pPciHlpR0);
129 GEN_CHECK_OFF(PCIBUS, PciDev);
130 GEN_CHECK_OFF(PCIBUS, PIIX3State);
131 GEN_CHECK_OFF(PCIBUS, Globals);
132 GEN_CHECK_SIZE(PCIGLOBALS);
133 GEN_CHECK_OFF(PCIGLOBALS, pci_mem_base);
134 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_io_addr);
135 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_mem_addr);
136 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels);
137 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels[1][1]);
138 GEN_CHECK_OFF(PCIGLOBALS, fUseIoApic);
139 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels);
140 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels[1][1]);
141 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq_level);
142 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq);
143
144 /* DevVGA.cpp */
145 GEN_CHECK_SIZE(VGASTATE);
146 GEN_CHECK_OFF(VGASTATE, vram_ptrHC);
147 GEN_CHECK_OFF(VGASTATE, vram_size);
148 GEN_CHECK_OFF(VGASTATE, latch);
149 GEN_CHECK_OFF(VGASTATE, sr_index);
150 GEN_CHECK_OFF(VGASTATE, sr);
151 GEN_CHECK_OFF(VGASTATE, sr[1]);
152 GEN_CHECK_OFF(VGASTATE, gr_index);
153 GEN_CHECK_OFF(VGASTATE, gr);
154 GEN_CHECK_OFF(VGASTATE, gr[1]);
155 GEN_CHECK_OFF(VGASTATE, ar_index);
156 GEN_CHECK_OFF(VGASTATE, ar);
157 GEN_CHECK_OFF(VGASTATE, ar[1]);
158 GEN_CHECK_OFF(VGASTATE, ar_flip_flop);
159 GEN_CHECK_OFF(VGASTATE, cr_index);
160 GEN_CHECK_OFF(VGASTATE, cr);
161 GEN_CHECK_OFF(VGASTATE, cr[1]);
162 GEN_CHECK_OFF(VGASTATE, msr);
163 GEN_CHECK_OFF(VGASTATE, msr);
164 GEN_CHECK_OFF(VGASTATE, fcr);
165 GEN_CHECK_OFF(VGASTATE, st00);
166 GEN_CHECK_OFF(VGASTATE, st01);
167 GEN_CHECK_OFF(VGASTATE, dac_state);
168 GEN_CHECK_OFF(VGASTATE, dac_sub_index);
169 GEN_CHECK_OFF(VGASTATE, dac_read_index);
170 GEN_CHECK_OFF(VGASTATE, dac_write_index);
171 GEN_CHECK_OFF(VGASTATE, dac_cache);
172 GEN_CHECK_OFF(VGASTATE, dac_cache[1]);
173 GEN_CHECK_OFF(VGASTATE, palette);
174 GEN_CHECK_OFF(VGASTATE, palette[1]);
175 GEN_CHECK_OFF(VGASTATE, bank_offset);
176 GEN_CHECK_OFF(VGASTATE, get_bpp);
177 GEN_CHECK_OFF(VGASTATE, get_offsets);
178 GEN_CHECK_OFF(VGASTATE, get_resolution);
179#ifdef CONFIG_BOCHS_VBE
180 GEN_CHECK_OFF(VGASTATE, vbe_index);
181 GEN_CHECK_OFF(VGASTATE, vbe_regs);
182 GEN_CHECK_OFF(VGASTATE, vbe_regs[1]);
183 GEN_CHECK_OFF(VGASTATE, vbe_regs[VBE_DISPI_INDEX_NB - 1]);
184 GEN_CHECK_OFF(VGASTATE, vbe_start_addr);
185 GEN_CHECK_OFF(VGASTATE, vbe_line_offset);
186 GEN_CHECK_OFF(VGASTATE, vbe_bank_mask);
187#endif
188 GEN_CHECK_OFF(VGASTATE, font_offsets);
189 GEN_CHECK_OFF(VGASTATE, font_offsets[1]);
190 GEN_CHECK_OFF(VGASTATE, graphic_mode);
191 GEN_CHECK_OFF(VGASTATE, shift_control);
192 GEN_CHECK_OFF(VGASTATE, double_scan);
193 GEN_CHECK_OFF(VGASTATE, line_offset);
194 GEN_CHECK_OFF(VGASTATE, line_compare);
195 GEN_CHECK_OFF(VGASTATE, start_addr);
196 GEN_CHECK_OFF(VGASTATE, plane_updated);
197 GEN_CHECK_OFF(VGASTATE, last_cw);
198 GEN_CHECK_OFF(VGASTATE, last_ch);
199 GEN_CHECK_OFF(VGASTATE, last_width);
200 GEN_CHECK_OFF(VGASTATE, last_height);
201 GEN_CHECK_OFF(VGASTATE, last_scr_width);
202 GEN_CHECK_OFF(VGASTATE, last_scr_height);
203 GEN_CHECK_OFF(VGASTATE, last_bpp);
204 GEN_CHECK_OFF(VGASTATE, cursor_start);
205 GEN_CHECK_OFF(VGASTATE, cursor_end);
206 GEN_CHECK_OFF(VGASTATE, cursor_offset);
207 GEN_CHECK_OFF(VGASTATE, rgb_to_pixel);
208 GEN_CHECK_OFF(VGASTATE, invalidated_y_table);
209 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[1]);
210 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[(VGA_MAX_HEIGHT / 32) - 1]);
211 GEN_CHECK_OFF(VGASTATE, cursor_invalidate);
212 GEN_CHECK_OFF(VGASTATE, cursor_draw_line);
213 GEN_CHECK_OFF(VGASTATE, last_palette);
214 GEN_CHECK_OFF(VGASTATE, last_palette[1]);
215 GEN_CHECK_OFF(VGASTATE, last_ch_attr);
216 GEN_CHECK_OFF(VGASTATE, last_ch_attr[CH_ATTR_SIZE - 1]);
217 GEN_CHECK_OFF(VGASTATE, u32Marker);
218 GEN_CHECK_OFF(VGASTATE, GCPhysVRAM);
219 GEN_CHECK_OFF(VGASTATE, vram_ptrGC);
220 GEN_CHECK_OFF(VGASTATE, fLFBUpdated);
221 GEN_CHECK_OFF(VGASTATE, fGCEnabled);
222 GEN_CHECK_OFF(VGASTATE, fR0Enabled);
223 GEN_CHECK_OFF(VGASTATE, GCPtrLFBHandler);
224 GEN_CHECK_OFF(VGASTATE, fHaveDirtyBits);
225 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap);
226 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[1]);
227 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[(VGA_VRAM_MAX / PAGE_SIZE / 32) - 1]);
228 GEN_CHECK_OFF(VGASTATE, pDevInsHC);
229 GEN_CHECK_OFF(VGASTATE, Base);
230 GEN_CHECK_OFF(VGASTATE, Port);
231 GEN_CHECK_OFF(VGASTATE, pDrvBase);
232 GEN_CHECK_OFF(VGASTATE, pDrv);
233 GEN_CHECK_OFF(VGASTATE, RefreshTimer);
234 GEN_CHECK_OFF(VGASTATE, cMilliesRefreshInterval);
235 GEN_CHECK_OFF(VGASTATE, pvExtVRAMHC);
236 GEN_CHECK_OFF(VGASTATE, cbExtVRAM);
237 GEN_CHECK_OFF(VGASTATE, Dev);
238 GEN_CHECK_OFF(VGASTATE, StatGCMemoryRead);
239 GEN_CHECK_OFF(VGASTATE, StatGCMemoryWrite);
240 GEN_CHECK_OFF(VGASTATE, StatGCIOPortRead);
241 GEN_CHECK_OFF(VGASTATE, StatGCIOPortWrite);
242#ifdef VBE_BYTEWISE_IO
243 GEN_CHECK_OFF(VGASTATE, fReadVBEData);
244 GEN_CHECK_OFF(VGASTATE, fWriteVBEData);
245 GEN_CHECK_OFF(VGASTATE, fReadVBEIndex);
246 GEN_CHECK_OFF(VGASTATE, fWriteVBEIndex);
247 GEN_CHECK_OFF(VGASTATE, cbWriteVBEData);
248 GEN_CHECK_OFF(VGASTATE, cbWriteVBEIndex);
249#ifdef VBE_NEW_DYN_LIST
250 GEN_CHECK_OFF(VGASTATE, cbWriteVBEExtraAddress);
251#endif
252#endif
253#ifdef VBE_NEW_DYN_LIST
254 GEN_CHECK_OFF(VGASTATE, cbVBEExtraData);
255 GEN_CHECK_OFF(VGASTATE, pu8VBEExtraData);
256 GEN_CHECK_OFF(VGASTATE, u16VBEExtraAddress);
257#endif
258
259 /* Input/pckbd.c */
260 GEN_CHECK_SIZE(KBDQueue);
261 GEN_CHECK_OFF(KBDQueue, data);
262 GEN_CHECK_OFF(KBDQueue, rptr);
263 GEN_CHECK_OFF(KBDQueue, wptr);
264 GEN_CHECK_OFF(KBDQueue, count);
265 GEN_CHECK_SIZE(MouseCmdQueue);
266 GEN_CHECK_OFF(MouseCmdQueue, data);
267 GEN_CHECK_OFF(MouseCmdQueue, rptr);
268 GEN_CHECK_OFF(MouseCmdQueue, wptr);
269 GEN_CHECK_OFF(MouseCmdQueue, count);
270 GEN_CHECK_SIZE(MouseEventQueue);
271 GEN_CHECK_OFF(MouseEventQueue, data);
272 GEN_CHECK_OFF(MouseEventQueue, rptr);
273 GEN_CHECK_OFF(MouseEventQueue, wptr);
274 GEN_CHECK_OFF(MouseEventQueue, count);
275 GEN_CHECK_SIZE(KBDState);
276 GEN_CHECK_OFF(KBDState, queue);
277 GEN_CHECK_OFF(KBDState, mouse_command_queue);
278 GEN_CHECK_OFF(KBDState, mouse_event_queue);
279 GEN_CHECK_OFF(KBDState, write_cmd);
280 GEN_CHECK_OFF(KBDState, status);
281 GEN_CHECK_OFF(KBDState, mode);
282 GEN_CHECK_OFF(KBDState, kbd_write_cmd);
283 GEN_CHECK_OFF(KBDState, scan_enabled);
284 GEN_CHECK_OFF(KBDState, mouse_write_cmd);
285 GEN_CHECK_OFF(KBDState, mouse_status);
286 GEN_CHECK_OFF(KBDState, mouse_resolution);
287 GEN_CHECK_OFF(KBDState, mouse_sample_rate);
288 GEN_CHECK_OFF(KBDState, mouse_wrap);
289 GEN_CHECK_OFF(KBDState, mouse_type);
290 GEN_CHECK_OFF(KBDState, mouse_detect_state);
291 GEN_CHECK_OFF(KBDState, mouse_dx);
292 GEN_CHECK_OFF(KBDState, mouse_dy);
293 GEN_CHECK_OFF(KBDState, mouse_dz);
294 GEN_CHECK_OFF(KBDState, mouse_buttons);
295 GEN_CHECK_OFF(KBDState, pDevInsHC);
296 GEN_CHECK_OFF(KBDState, pDevInsGC);
297 GEN_CHECK_OFF(KBDState, Keyboard.Base);
298 GEN_CHECK_OFF(KBDState, Keyboard.Port);
299 GEN_CHECK_OFF(KBDState, Keyboard.pDrvBase);
300 GEN_CHECK_OFF(KBDState, Keyboard.pDrv);
301 GEN_CHECK_OFF(KBDState, Mouse.Base);
302 GEN_CHECK_OFF(KBDState, Mouse.Port);
303 GEN_CHECK_OFF(KBDState, Mouse.pDrvBase);
304 GEN_CHECK_OFF(KBDState, Mouse.pDrv);
305
306 /* Network/DevPCNet.cpp */
307 GEN_CHECK_SIZE(PCNetState);
308 GEN_CHECK_OFF(PCNetState, PciDev);
309#ifndef PCNET_NO_POLLING
310 GEN_CHECK_OFF(PCNetState, pTimerPollHC);
311 GEN_CHECK_OFF(PCNetState, pTimerPollGC);
312#endif
313 GEN_CHECK_OFF(PCNetState, u32RAP);
314 GEN_CHECK_OFF(PCNetState, iISR);
315 GEN_CHECK_OFF(PCNetState, u32Lnkst);
316 GEN_CHECK_OFF(PCNetState, GCRDRA);
317 GEN_CHECK_OFF(PCNetState, GCTDRA);
318 GEN_CHECK_OFF(PCNetState, aPROM);
319 GEN_CHECK_OFF(PCNetState, aPROM[1]);
320 GEN_CHECK_OFF(PCNetState, aCSR);
321 GEN_CHECK_OFF(PCNetState, aCSR[1]);
322 GEN_CHECK_OFF(PCNetState, aCSR[CSR_MAX_REG - 1]);
323 GEN_CHECK_OFF(PCNetState, aBCR);
324 GEN_CHECK_OFF(PCNetState, aBCR[1]);
325 GEN_CHECK_OFF(PCNetState, aBCR[BCR_MAX_RAP - 1]);
326 GEN_CHECK_OFF(PCNetState, aMII);
327 GEN_CHECK_OFF(PCNetState, aMII[1]);
328 GEN_CHECK_OFF(PCNetState, aMII[MII_MAX_REG - 1]);
329 GEN_CHECK_OFF(PCNetState, u16CSR0LastSeenByGuest);
330 GEN_CHECK_OFF(PCNetState, u64LastPoll);
331 GEN_CHECK_OFF(PCNetState, abSendBuf);
332 GEN_CHECK_OFF(PCNetState, abRecvBuf);
333 GEN_CHECK_OFF(PCNetState, iLog2DescSize);
334 GEN_CHECK_OFF(PCNetState, GCUpperPhys);
335 GEN_CHECK_OFF(PCNetState, pXmitQueueHC);
336 GEN_CHECK_OFF(PCNetState, pXmitQueueGC);
337 GEN_CHECK_OFF(PCNetState, pCanRxQueueHC);
338 GEN_CHECK_OFF(PCNetState, pCanRxQueueGC);
339 GEN_CHECK_OFF(PCNetState, pTimerRestore);
340 GEN_CHECK_OFF(PCNetState, pDevInsHC);
341 GEN_CHECK_OFF(PCNetState, pDevInsGC);
342 GEN_CHECK_OFF(PCNetState, pDrv);
343 GEN_CHECK_OFF(PCNetState, pDrvBase);
344 GEN_CHECK_OFF(PCNetState, IBase);
345 GEN_CHECK_OFF(PCNetState, INetworkPort);
346 GEN_CHECK_OFF(PCNetState, INetworkConfig);
347 GEN_CHECK_OFF(PCNetState, MMIOBase);
348 GEN_CHECK_OFF(PCNetState, IOPortBase);
349 GEN_CHECK_OFF(PCNetState, fLinkUp);
350 GEN_CHECK_OFF(PCNetState, fLinkTempDown);
351 GEN_CHECK_OFF(PCNetState, cLinkDownReported);
352 GEN_CHECK_OFF(PCNetState, MacConfigured);
353 GEN_CHECK_OFF(PCNetState, Led);
354 GEN_CHECK_OFF(PCNetState, ILeds);
355 GEN_CHECK_OFF(PCNetState, pLedsConnector);
356 GEN_CHECK_OFF(PCNetState, hSendEventSem);
357 GEN_CHECK_OFF(PCNetState, hSendThread);
358 GEN_CHECK_OFF(PCNetState, CritSect);
359 GEN_CHECK_OFF(PCNetState, cPendingSends);
360#ifdef PCNET_NO_POLLING
361 GEN_CHECK_OFF(PCNetState, TDRAPhysOld);
362 GEN_CHECK_OFF(PCNetState, cbTDRAOld);
363 GEN_CHECK_OFF(PCNetState, RDRAPhysOld);
364 GEN_CHECK_OFF(PCNetState, cbRDRAOld);
365 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionGC
366 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionR0
367#endif
368 GEN_CHECK_OFF(PCNetState, fGCEnabled);
369 GEN_CHECK_OFF(PCNetState, fR0Enabled);
370 GEN_CHECK_OFF(PCNetState, fAm79C973);
371#ifdef VBOX_WITH_STATISTICS
372 GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
373 GEN_CHECK_OFF(PCNetState, StatMIIReads);
374# ifdef PCNET_NO_POLLING
375 GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
376 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
377# endif
378#endif
379
380 /* PC/DevACPI.cpp */
381 GEN_CHECK_SIZE(ACPIState);
382 GEN_CHECK_OFF(ACPIState, dev);
383 GEN_CHECK_OFF(ACPIState, pm1a_en);
384 GEN_CHECK_OFF(ACPIState, pm1a_sts);
385 GEN_CHECK_OFF(ACPIState, pm1a_ctl);
386 GEN_CHECK_OFF(ACPIState, pm_timer_initial);
387 GEN_CHECK_OFF(ACPIState, tsHC);
388 GEN_CHECK_OFF(ACPIState, tsGC);
389 GEN_CHECK_OFF(ACPIState, gpe0_en);
390 GEN_CHECK_OFF(ACPIState, gpe0_sts);
391 GEN_CHECK_OFF(ACPIState, uBatteryIndex);
392 GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
393 GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
394 GEN_CHECK_OFF(ACPIState, u64RamSize);
395 GEN_CHECK_OFF(ACPIState, uSleepState);
396 GEN_CHECK_OFF(ACPIState, au8RSDPPage);
397 GEN_CHECK_OFF(ACPIState, u8IndexShift);
398 GEN_CHECK_OFF(ACPIState, u8UseIOApic);
399 GEN_CHECK_OFF(ACPIState, IBase);
400 GEN_CHECK_OFF(ACPIState, IACPIPort);
401 GEN_CHECK_OFF(ACPIState, pDevIns);
402 GEN_CHECK_OFF(ACPIState, pDrvBase);
403 GEN_CHECK_OFF(ACPIState, pDrv);
404
405 /* PC/DevPIC.cpp */
406 GEN_CHECK_SIZE(PicState);
407 GEN_CHECK_OFF(PicState, last_irr);
408 GEN_CHECK_OFF(PicState, irr);
409 GEN_CHECK_OFF(PicState, imr);
410 GEN_CHECK_OFF(PicState, isr);
411 GEN_CHECK_OFF(PicState, priority_add);
412 GEN_CHECK_OFF(PicState, irq_base);
413 GEN_CHECK_OFF(PicState, read_reg_select);
414 GEN_CHECK_OFF(PicState, poll);
415 GEN_CHECK_OFF(PicState, special_mask);
416 GEN_CHECK_OFF(PicState, init_state);
417 GEN_CHECK_OFF(PicState, auto_eoi);
418 GEN_CHECK_OFF(PicState, rotate_on_auto_eoi);
419 GEN_CHECK_OFF(PicState, special_fully_nested_mode);
420 GEN_CHECK_OFF(PicState, init4);
421 GEN_CHECK_OFF(PicState, elcr);
422 GEN_CHECK_OFF(PicState, elcr_mask);
423 GEN_CHECK_OFF(PicState, pDevInsHC);
424 GEN_CHECK_OFF(PicState, pDevInsGC);
425
426 GEN_CHECK_SIZE(DEVPIC);
427 GEN_CHECK_OFF(DEVPIC, aPics);
428 GEN_CHECK_OFF(DEVPIC, aPics[1]);
429 GEN_CHECK_OFF(DEVPIC, pDevInsHC);
430 GEN_CHECK_OFF(DEVPIC, pDevInsGC);
431 GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
432 GEN_CHECK_OFF(DEVPIC, pPicHlpGC);
433 GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
434#ifdef VBOX_WITH_STATISTICS
435 GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
436 GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
437#endif
438
439 /* PC/DevPit-i8254.cpp */
440 GEN_CHECK_SIZE(PITChannelState);
441 GEN_CHECK_OFF(PITChannelState, pPitHC);
442 GEN_CHECK_OFF(PITChannelState, pTimerHC);
443 GEN_CHECK_OFF(PITChannelState, pPitGC);
444 GEN_CHECK_OFF(PITChannelState, pTimerGC);
445 GEN_CHECK_OFF(PITChannelState, u64ReloadTS);
446 GEN_CHECK_OFF(PITChannelState, u64NextTS);
447 GEN_CHECK_OFF(PITChannelState, i64MaxCatchupTS);
448 GEN_CHECK_OFF(PITChannelState, count_load_time);
449 GEN_CHECK_OFF(PITChannelState, next_transition_time);
450 GEN_CHECK_OFF(PITChannelState, irq);
451 GEN_CHECK_OFF(PITChannelState, padding);
452 GEN_CHECK_OFF(PITChannelState, count);
453 GEN_CHECK_OFF(PITChannelState, latched_count);
454 GEN_CHECK_OFF(PITChannelState, count_latched);
455 GEN_CHECK_OFF(PITChannelState, status_latched);
456 GEN_CHECK_OFF(PITChannelState, status);
457 GEN_CHECK_OFF(PITChannelState, read_state);
458 GEN_CHECK_OFF(PITChannelState, write_state);
459 GEN_CHECK_OFF(PITChannelState, write_latch);
460 GEN_CHECK_OFF(PITChannelState, rw_mode);
461 GEN_CHECK_OFF(PITChannelState, mode);
462 GEN_CHECK_OFF(PITChannelState, bcd);
463 GEN_CHECK_OFF(PITChannelState, gate);
464 GEN_CHECK_SIZE(PITState);
465 GEN_CHECK_OFF(PITState, channels);
466 GEN_CHECK_OFF(PITState, channels[1]);
467 GEN_CHECK_OFF(PITState, speaker_data_on);
468 GEN_CHECK_OFF(PITState, dummy_refresh_clock);
469 GEN_CHECK_OFF(PITState, pDevIns);
470 GEN_CHECK_OFF(PITState, StatPITIrq);
471 GEN_CHECK_OFF(PITState, StatPITHandler);
472 GEN_CHECK_OFF(PITState, StatPITCatchup);
473 GEN_CHECK_OFF(PITState, StatPITGiveup);
474
475 /* PC/DevRTC.cpp */
476 GEN_CHECK_SIZE(RTCState);
477 GEN_CHECK_OFF(RTCState, cmos_data);
478 GEN_CHECK_OFF(RTCState, cmos_data[1]);
479 GEN_CHECK_OFF(RTCState, cmos_index);
480 GEN_CHECK_OFF(RTCState, current_tm);
481 GEN_CHECK_OFF(RTCState, current_tm.tm_sec);
482 GEN_CHECK_OFF(RTCState, current_tm.tm_min);
483 GEN_CHECK_OFF(RTCState, current_tm.tm_hour);
484 GEN_CHECK_OFF(RTCState, current_tm.tm_mday);
485 GEN_CHECK_OFF(RTCState, current_tm.tm_mon);
486 GEN_CHECK_OFF(RTCState, current_tm.tm_year);
487 GEN_CHECK_OFF(RTCState, current_tm.tm_wday);
488 GEN_CHECK_OFF(RTCState, current_tm.tm_yday);
489 GEN_CHECK_OFF(RTCState, current_tm.tm_isdst);
490 GEN_CHECK_OFF(RTCState, irq);
491 GEN_CHECK_OFF(RTCState, pPeriodicTimerHC);
492 GEN_CHECK_OFF(RTCState, pPeriodicTimerGC);
493 GEN_CHECK_OFF(RTCState, next_periodic_time);
494 GEN_CHECK_OFF(RTCState, next_second_time);
495 GEN_CHECK_OFF(RTCState, pSecondTimerHC);
496 GEN_CHECK_OFF(RTCState, pSecondTimerGC);
497 GEN_CHECK_OFF(RTCState, pSecondTimer2HC);
498 GEN_CHECK_OFF(RTCState, pSecondTimer2GC);
499 GEN_CHECK_OFF(RTCState, pDevInsHC);
500 GEN_CHECK_OFF(RTCState, pDevInsGC);
501 GEN_CHECK_OFF(RTCState, fUCT);
502 GEN_CHECK_OFF(RTCState, RtcReg);
503 GEN_CHECK_OFF(RTCState, pRtcHlpHC);
504
505 /* PC/apic.c */
506 GEN_CHECK_SIZE(APICState);
507 GEN_CHECK_OFF(APICState, apicbase);
508 GEN_CHECK_OFF(APICState, id);
509 GEN_CHECK_OFF(APICState, arb_id);
510 GEN_CHECK_OFF(APICState, tpr);
511 GEN_CHECK_OFF(APICState, spurious_vec);
512 GEN_CHECK_OFF(APICState, log_dest);
513 GEN_CHECK_OFF(APICState, dest_mode);
514 GEN_CHECK_OFF(APICState, isr);
515 GEN_CHECK_OFF(APICState, isr[1]);
516 GEN_CHECK_OFF(APICState, tmr);
517 GEN_CHECK_OFF(APICState, tmr[1]);
518 GEN_CHECK_OFF(APICState, irr);
519 GEN_CHECK_OFF(APICState, irr[1]);
520 GEN_CHECK_OFF(APICState, lvt);
521 GEN_CHECK_OFF(APICState, lvt[1]);
522 GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);
523 GEN_CHECK_OFF(APICState, esr);
524 GEN_CHECK_OFF(APICState, icr);
525 GEN_CHECK_OFF(APICState, icr[1]);
526 GEN_CHECK_OFF(APICState, divide_conf);
527 GEN_CHECK_OFF(APICState, count_shift);
528 GEN_CHECK_OFF(APICState, initial_count);
529 GEN_CHECK_OFF(APICState, initial_count_load_time);
530 GEN_CHECK_OFF(APICState, next_time);
531 GEN_CHECK_OFF(APICState, pDevInsHC);
532 GEN_CHECK_OFF(APICState, pApicHlpR3);
533 GEN_CHECK_OFF(APICState, pTimerHC);
534 GEN_CHECK_OFF(APICState, pDevInsGC);
535 GEN_CHECK_OFF(APICState, pApicHlpGC);
536 GEN_CHECK_OFF(APICState, pTimerGC);
537 GEN_CHECK_OFF(APICState, pApicHlpR0);
538 GEN_CHECK_OFF(APICState, ulTPRPatchAttempts);
539#ifdef VBOX_WITH_STATISTICS
540 GEN_CHECK_OFF(APICState, StatMMIOReadGC);
541 GEN_CHECK_OFF(APICState, StatMMIOWriteHC);
542#endif
543
544 GEN_CHECK_SIZE(IOAPICState);
545 GEN_CHECK_OFF(IOAPICState, id);
546 GEN_CHECK_OFF(IOAPICState, ioregsel);
547 GEN_CHECK_OFF(IOAPICState, irr);
548 GEN_CHECK_OFF(IOAPICState, ioredtbl);
549 GEN_CHECK_OFF(IOAPICState, ioredtbl[1]);
550 GEN_CHECK_OFF(IOAPICState, ioredtbl[IOAPIC_NUM_PINS - 1]);
551 GEN_CHECK_OFF(IOAPICState, pDevInsHC);
552 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR3);
553 GEN_CHECK_OFF(IOAPICState, pDevInsGC);
554 GEN_CHECK_OFF(IOAPICState, pIoApicHlpGC);
555 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR0);
556#ifdef VBOX_WITH_STATISTICS
557 GEN_CHECK_OFF(IOAPICState, StatMMIOReadGC);
558 GEN_CHECK_OFF(IOAPICState, StatSetIrqHC);
559#endif
560
561 /* Storage/DevATA.cpp */
562 GEN_CHECK_SIZE(BMDMAState);
563 GEN_CHECK_OFF(BMDMAState, u8Cmd);
564 GEN_CHECK_OFF(BMDMAState, u8Status);
565 GEN_CHECK_OFF(BMDMAState, pvAddr);
566 GEN_CHECK_SIZE(BMDMADesc);
567 GEN_CHECK_OFF(BMDMADesc, pBuffer);
568 GEN_CHECK_OFF(BMDMADesc, cbBuffer);
569 GEN_CHECK_SIZE(ATADevState);
570 GEN_CHECK_OFF(ATADevState, fLBA48);
571 GEN_CHECK_OFF(ATADevState, fATAPI);
572 GEN_CHECK_OFF(ATADevState, fIrqPending);
573 GEN_CHECK_OFF(ATADevState, cMultSectors);
574 GEN_CHECK_OFF(ATADevState, cCHSCylinders);
575 GEN_CHECK_OFF(ATADevState, cCHSHeads);
576 GEN_CHECK_OFF(ATADevState, cCHSSectors);
577 GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
578 GEN_CHECK_OFF(ATADevState, cTotalSectors);
579 GEN_CHECK_OFF(ATADevState, uATARegFeature);
580 GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
581 GEN_CHECK_OFF(ATADevState, uATARegError);
582 GEN_CHECK_OFF(ATADevState, uATARegNSector);
583 GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
584 GEN_CHECK_OFF(ATADevState, uATARegSector);
585 GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
586 GEN_CHECK_OFF(ATADevState, uATARegLCyl);
587 GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
588 GEN_CHECK_OFF(ATADevState, uATARegHCyl);
589 GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
590 GEN_CHECK_OFF(ATADevState, uATARegSelect);
591 GEN_CHECK_OFF(ATADevState, uATARegStatus);
592 GEN_CHECK_OFF(ATADevState, uATARegCommand);
593 GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
594 GEN_CHECK_OFF(ATADevState, uATATransferMode);
595 GEN_CHECK_OFF(ATADevState, uTxDir);
596 GEN_CHECK_OFF(ATADevState, iBeginTransfer);
597 GEN_CHECK_OFF(ATADevState, iSourceSink);
598 GEN_CHECK_OFF(ATADevState, fDMA);
599 GEN_CHECK_OFF(ATADevState, fATAPITransfer);
600 GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
601 GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
602 GEN_CHECK_OFF(ATADevState, iIOBufferCur);
603 GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
604 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
605 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
606 GEN_CHECK_OFF(ATADevState, iATAPILBA);
607 GEN_CHECK_OFF(ATADevState, cbATAPISector);
608 GEN_CHECK_OFF(ATADevState, aATAPICmd);
609 GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
610 GEN_CHECK_OFF(ATADevState, uATAPISenseKey);
611 GEN_CHECK_OFF(ATADevState, uATAPIASC);
612 GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
613 GEN_CHECK_OFF(ATADevState, Led);
614 GEN_CHECK_OFF(ATADevState, cbIOBuffer);
615 GEN_CHECK_OFF(ATADevState, pbIOBufferHC);
616 GEN_CHECK_OFF(ATADevState, pbIOBufferGC);
617 GEN_CHECK_OFF(ATADevState, StatReads);
618 GEN_CHECK_OFF(ATADevState, StatBytesRead);
619 GEN_CHECK_OFF(ATADevState, StatWrites);
620 GEN_CHECK_OFF(ATADevState, StatBytesWritten);
621 GEN_CHECK_OFF(ATADevState, StatFlushes);
622 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
623 GEN_CHECK_OFF(ATADevState, cErrors);
624 GEN_CHECK_OFF(ATADevState, pDrvBase);
625 GEN_CHECK_OFF(ATADevState, pDrvBlock);
626 GEN_CHECK_OFF(ATADevState, pDrvBlockBios);
627 GEN_CHECK_OFF(ATADevState, pDrvMount);
628 GEN_CHECK_OFF(ATADevState, IBase);
629 GEN_CHECK_OFF(ATADevState, IPort);
630 GEN_CHECK_OFF(ATADevState, IMountNotify);
631 GEN_CHECK_OFF(ATADevState, iLUN);
632 GEN_CHECK_OFF(ATADevState, pDevInsHC);
633 GEN_CHECK_OFF(ATADevState, pDevInsGC);
634 GEN_CHECK_OFF(ATADevState, pControllerHC);
635 GEN_CHECK_OFF(ATADevState, pControllerGC);
636 GEN_CHECK_SIZE(ATATransferRequest);
637 GEN_CHECK_OFF(ATATransferRequest, iIf);
638 GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
639 GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
640 GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
641 GEN_CHECK_OFF(ATATransferRequest, uTxDir);
642 GEN_CHECK_SIZE(ATAAbortRequest);
643 GEN_CHECK_OFF(ATAAbortRequest, iIf);
644 GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
645 GEN_CHECK_SIZE(ATARequest);
646 GEN_CHECK_OFF(ATARequest, ReqType);
647 GEN_CHECK_OFF(ATARequest, u);
648 GEN_CHECK_OFF(ATARequest, u.t);
649 GEN_CHECK_OFF(ATARequest, u.a);
650 GEN_CHECK_SIZE(ATACONTROLLER);
651 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
652 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
653 GEN_CHECK_OFF(ATACONTROLLER, irq);
654 GEN_CHECK_OFF(ATACONTROLLER, lock);
655 GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
656 GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
657 GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
658 GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
659 GEN_CHECK_OFF(ATACONTROLLER, fReset);
660 GEN_CHECK_OFF(ATACONTROLLER, fRedo);
661 GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
662 GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
663 GEN_CHECK_OFF(ATACONTROLLER, BmDma);
664 GEN_CHECK_OFF(ATACONTROLLER, pFirstDMADesc);
665 GEN_CHECK_OFF(ATACONTROLLER, pLastDMADesc);
666 GEN_CHECK_OFF(ATACONTROLLER, pRedoDMABuffer);
667 GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
668 GEN_CHECK_OFF(ATACONTROLLER, aIfs);
669 GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
670 GEN_CHECK_OFF(ATACONTROLLER, pDevInsHC);
671 GEN_CHECK_OFF(ATACONTROLLER, pDevInsGC);
672 GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
673 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
674 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOSem);
675 GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
676 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
677 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
678 GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestMutex);
679 GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
680 GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
681 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
682 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
683 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
684 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
685 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
686 GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
687 GEN_CHECK_SIZE(PCIATAState);
688 GEN_CHECK_OFF(PCIATAState, dev);
689 GEN_CHECK_OFF(PCIATAState, aCts);
690 GEN_CHECK_OFF(PCIATAState, aCts[1]);
691 GEN_CHECK_OFF(PCIATAState, pDevIns);
692 GEN_CHECK_OFF(PCIATAState, IBase);
693 GEN_CHECK_OFF(PCIATAState, ILeds);
694 GEN_CHECK_OFF(PCIATAState, pLedsConnector);
695 GEN_CHECK_OFF(PCIATAState, fGCEnabled);
696 GEN_CHECK_OFF(PCIATAState, fR0Enabled);
697
698#ifdef VBOX_WITH_USB
699 /* USB/DevOHCI.cpp */
700 GEN_CHECK_SIZE(OHCIHUBPORT);
701 GEN_CHECK_OFF(OHCIHUBPORT, fReg);
702 GEN_CHECK_OFF(OHCIHUBPORT, pDev);
703
704 GEN_CHECK_SIZE(OHCIROOTHUB);
705 GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
706 GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
707 GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
708 GEN_CHECK_OFF(OHCIROOTHUB, IBase);
709 GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
710 GEN_CHECK_OFF(OHCIROOTHUB, status);
711 GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
712 GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
713 GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
714 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
715 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP - 1]);
716 GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
717
718 GEN_CHECK_SIZE(OHCI);
719 GEN_CHECK_OFF(OHCI, PciDev);
720 GEN_CHECK_OFF(OHCI, MMIOBase);
721 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerHC);
722 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerGC);
723 GEN_CHECK_OFF(OHCI, SofTime);
724 //GEN_CHECK_OFF(OHCI, dqic:3);
725 //GEN_CHECK_OFF(OHCI, fno:1);
726 GEN_CHECK_OFF(OHCI, RootHub);
727 GEN_CHECK_OFF(OHCI, ctl);
728 GEN_CHECK_OFF(OHCI, status);
729 GEN_CHECK_OFF(OHCI, intr_status);
730 GEN_CHECK_OFF(OHCI, intr);
731 GEN_CHECK_OFF(OHCI, hcca);
732 GEN_CHECK_OFF(OHCI, per_cur);
733 GEN_CHECK_OFF(OHCI, ctrl_cur);
734 GEN_CHECK_OFF(OHCI, ctrl_head);
735 GEN_CHECK_OFF(OHCI, bulk_cur);
736 GEN_CHECK_OFF(OHCI, bulk_head);
737 GEN_CHECK_OFF(OHCI, done);
738 //GEN_CHECK_OFF(OHCI, fsmps:15);
739 //GEN_CHECK_OFF(OHCI, fit:1);
740 //GEN_CHECK_OFF(OHCI, fi:14);
741 //GEN_CHECK_OFF(OHCI, frt:1);
742 GEN_CHECK_OFF(OHCI, HcFmNumber);
743 GEN_CHECK_OFF(OHCI, pstart);
744 GEN_CHECK_OFF(OHCI, cTicksPerFrame);
745 GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
746 GEN_CHECK_OFF(OHCI, cInFlight);
747 GEN_CHECK_OFF(OHCI, aInFlight);
748 GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
749 GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
750 GEN_CHECK_OFF(OHCI, aInFlight[1]);
751 GEN_CHECK_OFF(OHCI, cInDoneQueue);
752 GEN_CHECK_OFF(OHCI, aInDoneQueue);
753 GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
754 GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
755 GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
756 GEN_CHECK_OFF(OHCI, pDevInsHC);
757 GEN_CHECK_OFF(OHCI, pDevInsGC);
758 GEN_CHECK_OFF(OHCI, pLoad);
759# ifdef VBOX_WITH_STATISTICS
760 GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
761 GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
762 GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
763 GEN_CHECK_OFF(OHCI, StatTimer);
764# endif
765#endif /* VBOX_WITH_USB */
766
767 /* VMMDev/VBoxDev.cpp */
768
769 return (0);
770}
771
Note: See TracBrowser for help on using the repository browser.

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