VirtualBox

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

Last change on this file since 10715 was 10715, checked in by vboxsync, 16 years ago

Merge async I/O for VMDK backend from private branch

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 39.1 KB
Line 
1/* $Id: tstDeviceStructSizeGC.cpp 10715 2008-07-16 22:38:23Z 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-2008 Sun Microsystems, Inc.
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 (GPL) as published by the Free Software
16 * Foundation, in version 2 as it comes in the "COPYING" file of the
17 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
18 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
19 *
20 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
21 * Clara, CA 95054 USA or visit http://www.sun.com if you need
22 * additional information or have any questions.
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/DevPS2.cpp"
47#undef LOG_GROUP
48#include "Network/DevPCNet.cpp"
49#undef LOG_GROUP
50#include "PC/DevACPI.cpp"
51#undef LOG_GROUP
52#include "PC/DevPIC.cpp"
53#undef LOG_GROUP
54#include "PC/DevPit-i8254.cpp"
55#undef LOG_GROUP
56#include "PC/DevRTC.cpp"
57#undef LOG_GROUP
58#include "PC/DevAPIC.cpp"
59#undef LOG_GROUP
60#include "Storage/DevATA.cpp"
61#ifdef VBOX_WITH_USB
62# undef LOG_GROUP
63# include "USB/DevOHCI.cpp"
64# include "USB/DevEHCI.cpp"
65#endif
66#undef LOG_GROUP
67#include "VMMDev/VBoxDev.cpp"
68#undef LOG_GROUP
69#include "Serial/DevSerial.cpp"
70#ifdef VBOX_WITH_AHCI
71#undef LOG_GROUP
72#include "Storage/DevAHCI.cpp"
73#endif
74#ifdef VBOX_WITH_E1000
75#undef LOG_GROUP
76#include "Network/DevE1000.cpp"
77#endif
78
79/* we don't use iprt here because we're pretending to be in GC! */
80#include <stdio.h>
81
82#define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
83#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
84#define GEN_CHECK_PADDING(s, m) printf(" CHECK_PADDING(%s, %s);\n", #s, #m)
85
86int main()
87{
88 /* misc */
89 GEN_CHECK_SIZE(PDMDEVINS);
90 GEN_CHECK_OFF(PDMDEVINS, Internal);
91 GEN_CHECK_OFF(PDMDEVINS, pDevHlp);
92 GEN_CHECK_OFF(PDMDEVINS, pDevHlpGC);
93 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR0);
94 GEN_CHECK_OFF(PDMDEVINS, pDevReg);
95 GEN_CHECK_OFF(PDMDEVINS, pCfgHandle);
96 GEN_CHECK_OFF(PDMDEVINS, iInstance);
97 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR3);
98 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataGC);
99 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR0);
100 GEN_CHECK_OFF(PDMDEVINS, IBase);
101 GEN_CHECK_OFF(PDMDEVINS, achInstanceData);
102
103 /* DevPCI.cpp */
104 GEN_CHECK_SIZE(PCIDEVICE);
105 GEN_CHECK_SIZE(PCIDEVICEINT);
106 GEN_CHECK_SIZE(PCIIOREGION);
107 GEN_CHECK_OFF(PCIDEVICE, config);
108 GEN_CHECK_OFF(PCIDEVICE, devfn);
109 GEN_CHECK_OFF(PCIDEVICE, name);
110 GEN_CHECK_OFF(PCIDEVICE, pDevIns);
111 GEN_CHECK_OFF(PCIDEVICE, Int);
112 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBus);
113 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigRead);
114 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigWrite);
115 GEN_CHECK_OFF(PCIDEVICE, Int.s.iIrq);
116 GEN_CHECK_OFF(PCIDEVICE, Int.s.fRequestedDevFn);
117 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions);
118 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[1]);
119 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[PCI_NUM_REGIONS - 1]);
120 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].addr);
121 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].size);
122 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].type);
123 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].padding);
124 GEN_CHECK_PADDING(PCIDEVICE, Int);
125 GEN_CHECK_SIZE(PIIX3State);
126 GEN_CHECK_SIZE(PCIBUS);
127 GEN_CHECK_OFF(PCIBUS, uIrqIndex);
128 GEN_CHECK_OFF(PCIBUS, iBus);
129 GEN_CHECK_OFF(PCIBUS, iDevSearch);
130 GEN_CHECK_OFF(PCIBUS, uConfigReg);
131 GEN_CHECK_OFF(PCIBUS, devices);
132 GEN_CHECK_OFF(PCIBUS, devices[1]);
133 GEN_CHECK_OFF(PCIBUS, pDevInsHC);
134 GEN_CHECK_OFF(PCIBUS, pPciHlpR3);
135 GEN_CHECK_OFF(PCIBUS, pDevInsGC);
136 GEN_CHECK_OFF(PCIBUS, pPciHlpGC);
137 GEN_CHECK_OFF(PCIBUS, pPciHlpR0);
138 GEN_CHECK_OFF(PCIBUS, PciDev);
139 GEN_CHECK_OFF(PCIBUS, PIIX3State);
140 GEN_CHECK_OFF(PCIBUS, Globals);
141 GEN_CHECK_SIZE(PCIGLOBALS);
142 GEN_CHECK_OFF(PCIGLOBALS, pci_mem_base);
143 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_io_addr);
144 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_mem_addr);
145 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels);
146 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels[1][1]);
147 GEN_CHECK_OFF(PCIGLOBALS, fUseIoApic);
148 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels);
149 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels[1][1]);
150 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq_level);
151 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq);
152
153 /* DevVGA.cpp */
154 GEN_CHECK_SIZE(VGASTATE);
155 GEN_CHECK_OFF(VGASTATE, vram_ptrHC);
156 GEN_CHECK_OFF(VGASTATE, vram_size);
157 GEN_CHECK_OFF(VGASTATE, latch);
158 GEN_CHECK_OFF(VGASTATE, sr_index);
159 GEN_CHECK_OFF(VGASTATE, sr);
160 GEN_CHECK_OFF(VGASTATE, sr[1]);
161 GEN_CHECK_OFF(VGASTATE, gr_index);
162 GEN_CHECK_OFF(VGASTATE, gr);
163 GEN_CHECK_OFF(VGASTATE, gr[1]);
164 GEN_CHECK_OFF(VGASTATE, ar_index);
165 GEN_CHECK_OFF(VGASTATE, ar);
166 GEN_CHECK_OFF(VGASTATE, ar[1]);
167 GEN_CHECK_OFF(VGASTATE, ar_flip_flop);
168 GEN_CHECK_OFF(VGASTATE, cr_index);
169 GEN_CHECK_OFF(VGASTATE, cr);
170 GEN_CHECK_OFF(VGASTATE, cr[1]);
171 GEN_CHECK_OFF(VGASTATE, msr);
172 GEN_CHECK_OFF(VGASTATE, msr);
173 GEN_CHECK_OFF(VGASTATE, fcr);
174 GEN_CHECK_OFF(VGASTATE, st00);
175 GEN_CHECK_OFF(VGASTATE, st01);
176 GEN_CHECK_OFF(VGASTATE, dac_state);
177 GEN_CHECK_OFF(VGASTATE, dac_sub_index);
178 GEN_CHECK_OFF(VGASTATE, dac_read_index);
179 GEN_CHECK_OFF(VGASTATE, dac_write_index);
180 GEN_CHECK_OFF(VGASTATE, dac_cache);
181 GEN_CHECK_OFF(VGASTATE, dac_cache[1]);
182 GEN_CHECK_OFF(VGASTATE, palette);
183 GEN_CHECK_OFF(VGASTATE, palette[1]);
184 GEN_CHECK_OFF(VGASTATE, bank_offset);
185 GEN_CHECK_OFF(VGASTATE, get_bpp);
186 GEN_CHECK_OFF(VGASTATE, get_offsets);
187 GEN_CHECK_OFF(VGASTATE, get_resolution);
188#ifdef CONFIG_BOCHS_VBE
189 GEN_CHECK_OFF(VGASTATE, vbe_index);
190 GEN_CHECK_OFF(VGASTATE, vbe_regs);
191 GEN_CHECK_OFF(VGASTATE, vbe_regs[1]);
192 GEN_CHECK_OFF(VGASTATE, vbe_regs[VBE_DISPI_INDEX_NB - 1]);
193 GEN_CHECK_OFF(VGASTATE, vbe_start_addr);
194 GEN_CHECK_OFF(VGASTATE, vbe_line_offset);
195 GEN_CHECK_OFF(VGASTATE, vbe_bank_mask);
196#endif
197 GEN_CHECK_OFF(VGASTATE, font_offsets);
198 GEN_CHECK_OFF(VGASTATE, font_offsets[1]);
199 GEN_CHECK_OFF(VGASTATE, graphic_mode);
200 GEN_CHECK_OFF(VGASTATE, shift_control);
201 GEN_CHECK_OFF(VGASTATE, double_scan);
202 GEN_CHECK_OFF(VGASTATE, line_offset);
203 GEN_CHECK_OFF(VGASTATE, line_compare);
204 GEN_CHECK_OFF(VGASTATE, start_addr);
205 GEN_CHECK_OFF(VGASTATE, plane_updated);
206 GEN_CHECK_OFF(VGASTATE, last_cw);
207 GEN_CHECK_OFF(VGASTATE, last_ch);
208 GEN_CHECK_OFF(VGASTATE, last_width);
209 GEN_CHECK_OFF(VGASTATE, last_height);
210 GEN_CHECK_OFF(VGASTATE, last_scr_width);
211 GEN_CHECK_OFF(VGASTATE, last_scr_height);
212 GEN_CHECK_OFF(VGASTATE, last_bpp);
213 GEN_CHECK_OFF(VGASTATE, cursor_start);
214 GEN_CHECK_OFF(VGASTATE, cursor_end);
215 GEN_CHECK_OFF(VGASTATE, cursor_offset);
216 GEN_CHECK_OFF(VGASTATE, rgb_to_pixel);
217 GEN_CHECK_OFF(VGASTATE, invalidated_y_table);
218 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[1]);
219 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[(VGA_MAX_HEIGHT / 32) - 1]);
220 GEN_CHECK_OFF(VGASTATE, cursor_invalidate);
221 GEN_CHECK_OFF(VGASTATE, cursor_draw_line);
222 GEN_CHECK_OFF(VGASTATE, last_palette);
223 GEN_CHECK_OFF(VGASTATE, last_palette[1]);
224 GEN_CHECK_OFF(VGASTATE, last_ch_attr);
225 GEN_CHECK_OFF(VGASTATE, last_ch_attr[CH_ATTR_SIZE - 1]);
226 GEN_CHECK_OFF(VGASTATE, u32Marker);
227 GEN_CHECK_OFF(VGASTATE, GCPhysVRAM);
228 GEN_CHECK_OFF(VGASTATE, vram_ptrGC);
229 GEN_CHECK_OFF(VGASTATE, fLFBUpdated);
230 GEN_CHECK_OFF(VGASTATE, fGCEnabled);
231 GEN_CHECK_OFF(VGASTATE, fR0Enabled);
232 GEN_CHECK_OFF(VGASTATE, GCPtrLFBHandler);
233 GEN_CHECK_OFF(VGASTATE, fHaveDirtyBits);
234 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap);
235 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[1]);
236 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[(VGA_VRAM_MAX / PAGE_SIZE / 32) - 1]);
237 GEN_CHECK_OFF(VGASTATE, pDevInsHC);
238 GEN_CHECK_OFF(VGASTATE, Base);
239 GEN_CHECK_OFF(VGASTATE, Port);
240 GEN_CHECK_OFF(VGASTATE, pDrvBase);
241 GEN_CHECK_OFF(VGASTATE, pDrv);
242 GEN_CHECK_OFF(VGASTATE, RefreshTimer);
243 GEN_CHECK_OFF(VGASTATE, cMilliesRefreshInterval);
244 GEN_CHECK_OFF(VGASTATE, fRenderVRAM);
245 GEN_CHECK_OFF(VGASTATE, Dev);
246 GEN_CHECK_OFF(VGASTATE, StatGCMemoryRead);
247 GEN_CHECK_OFF(VGASTATE, StatGCMemoryWrite);
248 GEN_CHECK_OFF(VGASTATE, StatGCIOPortRead);
249 GEN_CHECK_OFF(VGASTATE, StatGCIOPortWrite);
250#ifdef VBE_BYTEWISE_IO
251 GEN_CHECK_OFF(VGASTATE, fReadVBEData);
252 GEN_CHECK_OFF(VGASTATE, fWriteVBEData);
253 GEN_CHECK_OFF(VGASTATE, fReadVBEIndex);
254 GEN_CHECK_OFF(VGASTATE, fWriteVBEIndex);
255 GEN_CHECK_OFF(VGASTATE, cbWriteVBEData);
256 GEN_CHECK_OFF(VGASTATE, cbWriteVBEIndex);
257#ifdef VBE_NEW_DYN_LIST
258 GEN_CHECK_OFF(VGASTATE, cbWriteVBEExtraAddress);
259#endif
260#endif
261#ifdef VBE_NEW_DYN_LIST
262 GEN_CHECK_OFF(VGASTATE, cbVBEExtraData);
263 GEN_CHECK_OFF(VGASTATE, pu8VBEExtraData);
264 GEN_CHECK_OFF(VGASTATE, u16VBEExtraAddress);
265#endif
266
267 /* Input/pckbd.c */
268 GEN_CHECK_SIZE(KBDQueue);
269 GEN_CHECK_OFF(KBDQueue, data);
270 GEN_CHECK_OFF(KBDQueue, rptr);
271 GEN_CHECK_OFF(KBDQueue, wptr);
272 GEN_CHECK_OFF(KBDQueue, count);
273 GEN_CHECK_SIZE(MouseCmdQueue);
274 GEN_CHECK_OFF(MouseCmdQueue, data);
275 GEN_CHECK_OFF(MouseCmdQueue, rptr);
276 GEN_CHECK_OFF(MouseCmdQueue, wptr);
277 GEN_CHECK_OFF(MouseCmdQueue, count);
278 GEN_CHECK_SIZE(MouseEventQueue);
279 GEN_CHECK_OFF(MouseEventQueue, data);
280 GEN_CHECK_OFF(MouseEventQueue, rptr);
281 GEN_CHECK_OFF(MouseEventQueue, wptr);
282 GEN_CHECK_OFF(MouseEventQueue, count);
283 GEN_CHECK_SIZE(KBDState);
284 GEN_CHECK_OFF(KBDState, queue);
285 GEN_CHECK_OFF(KBDState, mouse_command_queue);
286 GEN_CHECK_OFF(KBDState, mouse_event_queue);
287 GEN_CHECK_OFF(KBDState, write_cmd);
288 GEN_CHECK_OFF(KBDState, status);
289 GEN_CHECK_OFF(KBDState, mode);
290 GEN_CHECK_OFF(KBDState, kbd_write_cmd);
291 GEN_CHECK_OFF(KBDState, scan_enabled);
292 GEN_CHECK_OFF(KBDState, mouse_write_cmd);
293 GEN_CHECK_OFF(KBDState, mouse_status);
294 GEN_CHECK_OFF(KBDState, mouse_resolution);
295 GEN_CHECK_OFF(KBDState, mouse_sample_rate);
296 GEN_CHECK_OFF(KBDState, mouse_wrap);
297 GEN_CHECK_OFF(KBDState, mouse_type);
298 GEN_CHECK_OFF(KBDState, mouse_detect_state);
299 GEN_CHECK_OFF(KBDState, mouse_dx);
300 GEN_CHECK_OFF(KBDState, mouse_dy);
301 GEN_CHECK_OFF(KBDState, mouse_dz);
302 GEN_CHECK_OFF(KBDState, mouse_buttons);
303 GEN_CHECK_OFF(KBDState, pDevInsHC);
304 GEN_CHECK_OFF(KBDState, pDevInsGC);
305 GEN_CHECK_OFF(KBDState, Keyboard.Base);
306 GEN_CHECK_OFF(KBDState, Keyboard.Port);
307 GEN_CHECK_OFF(KBDState, Keyboard.pDrvBase);
308 GEN_CHECK_OFF(KBDState, Keyboard.pDrv);
309 GEN_CHECK_OFF(KBDState, Mouse.Base);
310 GEN_CHECK_OFF(KBDState, Mouse.Port);
311 GEN_CHECK_OFF(KBDState, Mouse.pDrvBase);
312 GEN_CHECK_OFF(KBDState, Mouse.pDrv);
313
314 /* Network/DevPCNet.cpp */
315 GEN_CHECK_SIZE(PCNetState);
316 GEN_CHECK_OFF(PCNetState, PciDev);
317#ifndef PCNET_NO_POLLING
318 GEN_CHECK_OFF(PCNetState, pTimerPollHC);
319 GEN_CHECK_OFF(PCNetState, pTimerPollGC);
320#endif
321 GEN_CHECK_OFF(PCNetState, pTimerSoftIntHC);
322 GEN_CHECK_OFF(PCNetState, pTimerSoftIntGC);
323 GEN_CHECK_OFF(PCNetState, u32RAP);
324 GEN_CHECK_OFF(PCNetState, iISR);
325 GEN_CHECK_OFF(PCNetState, u32Lnkst);
326 GEN_CHECK_OFF(PCNetState, GCRDRA);
327 GEN_CHECK_OFF(PCNetState, GCTDRA);
328 GEN_CHECK_OFF(PCNetState, aPROM);
329 GEN_CHECK_OFF(PCNetState, aPROM[1]);
330 GEN_CHECK_OFF(PCNetState, aCSR);
331 GEN_CHECK_OFF(PCNetState, aCSR[1]);
332 GEN_CHECK_OFF(PCNetState, aCSR[CSR_MAX_REG - 1]);
333 GEN_CHECK_OFF(PCNetState, aBCR);
334 GEN_CHECK_OFF(PCNetState, aBCR[1]);
335 GEN_CHECK_OFF(PCNetState, aBCR[BCR_MAX_RAP - 1]);
336 GEN_CHECK_OFF(PCNetState, aMII);
337 GEN_CHECK_OFF(PCNetState, aMII[1]);
338 GEN_CHECK_OFF(PCNetState, aMII[MII_MAX_REG - 1]);
339 GEN_CHECK_OFF(PCNetState, u16CSR0LastSeenByGuest);
340 GEN_CHECK_OFF(PCNetState, u64LastPoll);
341 GEN_CHECK_OFF(PCNetState, abSendBuf);
342 GEN_CHECK_OFF(PCNetState, abRecvBuf);
343 GEN_CHECK_OFF(PCNetState, iLog2DescSize);
344 GEN_CHECK_OFF(PCNetState, GCUpperPhys);
345 GEN_CHECK_OFF(PCNetState, pXmitQueueHC);
346 GEN_CHECK_OFF(PCNetState, pXmitQueueGC);
347 GEN_CHECK_OFF(PCNetState, pCanRxQueueHC);
348 GEN_CHECK_OFF(PCNetState, pCanRxQueueGC);
349 GEN_CHECK_OFF(PCNetState, pTimerRestore);
350 GEN_CHECK_OFF(PCNetState, pDevInsHC);
351 GEN_CHECK_OFF(PCNetState, pDevInsGC);
352 GEN_CHECK_OFF(PCNetState, pDrv);
353 GEN_CHECK_OFF(PCNetState, pDrvBase);
354 GEN_CHECK_OFF(PCNetState, IBase);
355 GEN_CHECK_OFF(PCNetState, INetworkPort);
356 GEN_CHECK_OFF(PCNetState, INetworkConfig);
357 GEN_CHECK_OFF(PCNetState, MMIOBase);
358 GEN_CHECK_OFF(PCNetState, IOPortBase);
359 GEN_CHECK_OFF(PCNetState, fLinkUp);
360 GEN_CHECK_OFF(PCNetState, fLinkTempDown);
361 GEN_CHECK_OFF(PCNetState, cLinkDownReported);
362 GEN_CHECK_OFF(PCNetState, MacConfigured);
363 GEN_CHECK_OFF(PCNetState, Led);
364 GEN_CHECK_OFF(PCNetState, ILeds);
365 GEN_CHECK_OFF(PCNetState, pLedsConnector);
366 GEN_CHECK_OFF(PCNetState, hSendEventSem);
367 GEN_CHECK_OFF(PCNetState, pSendThread);
368 GEN_CHECK_OFF(PCNetState, CritSect);
369 GEN_CHECK_OFF(PCNetState, cPendingSends);
370#ifdef PCNET_NO_POLLING
371 GEN_CHECK_OFF(PCNetState, TDRAPhysOld);
372 GEN_CHECK_OFF(PCNetState, cbTDRAOld);
373 GEN_CHECK_OFF(PCNetState, RDRAPhysOld);
374 GEN_CHECK_OFF(PCNetState, cbRDRAOld);
375 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionGC
376 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionR0
377#endif
378 GEN_CHECK_OFF(PCNetState, pSharedMMIOHC);
379 GEN_CHECK_OFF(PCNetState, pSharedMMIOGC);
380 GEN_CHECK_OFF(PCNetState, fPrivIfEnabled);
381 GEN_CHECK_OFF(PCNetState, fGCEnabled);
382 GEN_CHECK_OFF(PCNetState, fR0Enabled);
383 GEN_CHECK_OFF(PCNetState, fAm79C973);
384 GEN_CHECK_OFF(PCNetState, u32LinkSpeed);
385#ifdef VBOX_WITH_STATISTICS
386 GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
387 GEN_CHECK_OFF(PCNetState, StatMIIReads);
388# ifdef PCNET_NO_POLLING
389 GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
390 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
391# endif
392#endif
393
394 /* PC/DevACPI.cpp */
395 GEN_CHECK_SIZE(ACPIState);
396 GEN_CHECK_OFF(ACPIState, dev);
397 GEN_CHECK_OFF(ACPIState, pm1a_en);
398 GEN_CHECK_OFF(ACPIState, pm1a_sts);
399 GEN_CHECK_OFF(ACPIState, pm1a_ctl);
400 GEN_CHECK_OFF(ACPIState, pm_timer_initial);
401 GEN_CHECK_OFF(ACPIState, tsHC);
402 GEN_CHECK_OFF(ACPIState, tsGC);
403 GEN_CHECK_OFF(ACPIState, gpe0_en);
404 GEN_CHECK_OFF(ACPIState, gpe0_sts);
405 GEN_CHECK_OFF(ACPIState, uBatteryIndex);
406 GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
407 GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
408 GEN_CHECK_OFF(ACPIState, u64RamSize);
409 GEN_CHECK_OFF(ACPIState, uSleepState);
410 GEN_CHECK_OFF(ACPIState, au8RSDPPage);
411 GEN_CHECK_OFF(ACPIState, u8IndexShift);
412 GEN_CHECK_OFF(ACPIState, u8UseIOApic);
413 GEN_CHECK_OFF(ACPIState, IBase);
414 GEN_CHECK_OFF(ACPIState, IACPIPort);
415 GEN_CHECK_OFF(ACPIState, pDevIns);
416 GEN_CHECK_OFF(ACPIState, pDrvBase);
417 GEN_CHECK_OFF(ACPIState, pDrv);
418
419 /* PC/DevPIC.cpp */
420 GEN_CHECK_SIZE(PicState);
421 GEN_CHECK_OFF(PicState, last_irr);
422 GEN_CHECK_OFF(PicState, irr);
423 GEN_CHECK_OFF(PicState, imr);
424 GEN_CHECK_OFF(PicState, isr);
425 GEN_CHECK_OFF(PicState, priority_add);
426 GEN_CHECK_OFF(PicState, irq_base);
427 GEN_CHECK_OFF(PicState, read_reg_select);
428 GEN_CHECK_OFF(PicState, poll);
429 GEN_CHECK_OFF(PicState, special_mask);
430 GEN_CHECK_OFF(PicState, init_state);
431 GEN_CHECK_OFF(PicState, auto_eoi);
432 GEN_CHECK_OFF(PicState, rotate_on_auto_eoi);
433 GEN_CHECK_OFF(PicState, special_fully_nested_mode);
434 GEN_CHECK_OFF(PicState, init4);
435 GEN_CHECK_OFF(PicState, elcr);
436 GEN_CHECK_OFF(PicState, elcr_mask);
437 GEN_CHECK_OFF(PicState, pDevInsHC);
438 GEN_CHECK_OFF(PicState, pDevInsGC);
439
440 GEN_CHECK_SIZE(DEVPIC);
441 GEN_CHECK_OFF(DEVPIC, aPics);
442 GEN_CHECK_OFF(DEVPIC, aPics[1]);
443 GEN_CHECK_OFF(DEVPIC, pDevInsHC);
444 GEN_CHECK_OFF(DEVPIC, pDevInsGC);
445 GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
446 GEN_CHECK_OFF(DEVPIC, pPicHlpGC);
447 GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
448#ifdef VBOX_WITH_STATISTICS
449 GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
450 GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
451#endif
452
453 /* PC/DevPit-i8254.cpp */
454 GEN_CHECK_SIZE(PITChannelState);
455 GEN_CHECK_OFF(PITChannelState, pPitHC);
456 GEN_CHECK_OFF(PITChannelState, pTimerHC);
457 GEN_CHECK_OFF(PITChannelState, pPitGC);
458 GEN_CHECK_OFF(PITChannelState, pTimerGC);
459 GEN_CHECK_OFF(PITChannelState, u64ReloadTS);
460 GEN_CHECK_OFF(PITChannelState, u64NextTS);
461 GEN_CHECK_OFF(PITChannelState, count_load_time);
462 GEN_CHECK_OFF(PITChannelState, next_transition_time);
463 GEN_CHECK_OFF(PITChannelState, irq);
464 GEN_CHECK_OFF(PITChannelState, cRelLogEntries);
465 GEN_CHECK_OFF(PITChannelState, count);
466 GEN_CHECK_OFF(PITChannelState, latched_count);
467 GEN_CHECK_OFF(PITChannelState, count_latched);
468 GEN_CHECK_OFF(PITChannelState, status_latched);
469 GEN_CHECK_OFF(PITChannelState, status);
470 GEN_CHECK_OFF(PITChannelState, read_state);
471 GEN_CHECK_OFF(PITChannelState, write_state);
472 GEN_CHECK_OFF(PITChannelState, write_latch);
473 GEN_CHECK_OFF(PITChannelState, rw_mode);
474 GEN_CHECK_OFF(PITChannelState, mode);
475 GEN_CHECK_OFF(PITChannelState, bcd);
476 GEN_CHECK_OFF(PITChannelState, gate);
477 GEN_CHECK_SIZE(PITState);
478 GEN_CHECK_OFF(PITState, channels);
479 GEN_CHECK_OFF(PITState, channels[1]);
480 GEN_CHECK_OFF(PITState, speaker_data_on);
481// GEN_CHECK_OFF(PITState, dummy_refresh_clock);
482 GEN_CHECK_OFF(PITState, pDevIns);
483 GEN_CHECK_OFF(PITState, StatPITIrq);
484 GEN_CHECK_OFF(PITState, StatPITHandler);
485
486 /* PC/DevRTC.cpp */
487 GEN_CHECK_SIZE(RTCState);
488 GEN_CHECK_OFF(RTCState, cmos_data);
489 GEN_CHECK_OFF(RTCState, cmos_data[1]);
490 GEN_CHECK_OFF(RTCState, cmos_index);
491 GEN_CHECK_OFF(RTCState, current_tm);
492 GEN_CHECK_OFF(RTCState, current_tm.tm_sec);
493 GEN_CHECK_OFF(RTCState, current_tm.tm_min);
494 GEN_CHECK_OFF(RTCState, current_tm.tm_hour);
495 GEN_CHECK_OFF(RTCState, current_tm.tm_mday);
496 GEN_CHECK_OFF(RTCState, current_tm.tm_mon);
497 GEN_CHECK_OFF(RTCState, current_tm.tm_year);
498 GEN_CHECK_OFF(RTCState, current_tm.tm_wday);
499 GEN_CHECK_OFF(RTCState, current_tm.tm_yday);
500 GEN_CHECK_OFF(RTCState, irq);
501 GEN_CHECK_OFF(RTCState, pPeriodicTimerHC);
502 GEN_CHECK_OFF(RTCState, pPeriodicTimerGC);
503 GEN_CHECK_OFF(RTCState, next_periodic_time);
504 GEN_CHECK_OFF(RTCState, next_second_time);
505 GEN_CHECK_OFF(RTCState, pSecondTimerHC);
506 GEN_CHECK_OFF(RTCState, pSecondTimerGC);
507 GEN_CHECK_OFF(RTCState, pSecondTimer2HC);
508 GEN_CHECK_OFF(RTCState, pSecondTimer2GC);
509 GEN_CHECK_OFF(RTCState, pDevInsHC);
510 GEN_CHECK_OFF(RTCState, pDevInsGC);
511 GEN_CHECK_OFF(RTCState, fUTC);
512 GEN_CHECK_OFF(RTCState, RtcReg);
513 GEN_CHECK_OFF(RTCState, pRtcHlpHC);
514
515 /* PC/apic.c */
516 GEN_CHECK_SIZE(APICState);
517 GEN_CHECK_OFF(APICState, apicbase);
518 GEN_CHECK_OFF(APICState, id);
519 GEN_CHECK_OFF(APICState, arb_id);
520 GEN_CHECK_OFF(APICState, tpr);
521 GEN_CHECK_OFF(APICState, spurious_vec);
522 GEN_CHECK_OFF(APICState, log_dest);
523 GEN_CHECK_OFF(APICState, dest_mode);
524 GEN_CHECK_OFF(APICState, isr);
525 GEN_CHECK_OFF(APICState, isr[1]);
526 GEN_CHECK_OFF(APICState, tmr);
527 GEN_CHECK_OFF(APICState, tmr[1]);
528 GEN_CHECK_OFF(APICState, irr);
529 GEN_CHECK_OFF(APICState, irr[1]);
530 GEN_CHECK_OFF(APICState, lvt);
531 GEN_CHECK_OFF(APICState, lvt[1]);
532 GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);
533 GEN_CHECK_OFF(APICState, esr);
534 GEN_CHECK_OFF(APICState, icr);
535 GEN_CHECK_OFF(APICState, icr[1]);
536 GEN_CHECK_OFF(APICState, divide_conf);
537 GEN_CHECK_OFF(APICState, count_shift);
538 GEN_CHECK_OFF(APICState, initial_count);
539 GEN_CHECK_OFF(APICState, initial_count_load_time);
540 GEN_CHECK_OFF(APICState, next_time);
541 GEN_CHECK_OFF(APICState, pDevInsHC);
542 GEN_CHECK_OFF(APICState, pApicHlpR3);
543 GEN_CHECK_OFF(APICState, pTimerHC);
544 GEN_CHECK_OFF(APICState, pDevInsGC);
545 GEN_CHECK_OFF(APICState, pApicHlpGC);
546 GEN_CHECK_OFF(APICState, pTimerGC);
547 GEN_CHECK_OFF(APICState, pApicHlpR0);
548 GEN_CHECK_OFF(APICState, ulTPRPatchAttempts);
549#ifdef VBOX_WITH_STATISTICS
550 GEN_CHECK_OFF(APICState, StatMMIOReadGC);
551 GEN_CHECK_OFF(APICState, StatMMIOWriteHC);
552#endif
553
554 GEN_CHECK_SIZE(IOAPICState);
555 GEN_CHECK_OFF(IOAPICState, id);
556 GEN_CHECK_OFF(IOAPICState, ioregsel);
557 GEN_CHECK_OFF(IOAPICState, irr);
558 GEN_CHECK_OFF(IOAPICState, ioredtbl);
559 GEN_CHECK_OFF(IOAPICState, ioredtbl[1]);
560 GEN_CHECK_OFF(IOAPICState, ioredtbl[IOAPIC_NUM_PINS - 1]);
561 GEN_CHECK_OFF(IOAPICState, pDevInsHC);
562 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR3);
563 GEN_CHECK_OFF(IOAPICState, pDevInsGC);
564 GEN_CHECK_OFF(IOAPICState, pIoApicHlpGC);
565 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR0);
566#ifdef VBOX_WITH_STATISTICS
567 GEN_CHECK_OFF(IOAPICState, StatMMIOReadGC);
568 GEN_CHECK_OFF(IOAPICState, StatSetIrqHC);
569#endif
570
571 /* Storage/DevATA.cpp */
572 GEN_CHECK_SIZE(BMDMAState);
573 GEN_CHECK_OFF(BMDMAState, u8Cmd);
574 GEN_CHECK_OFF(BMDMAState, u8Status);
575 GEN_CHECK_OFF(BMDMAState, pvAddr);
576 GEN_CHECK_SIZE(BMDMADesc);
577 GEN_CHECK_OFF(BMDMADesc, pBuffer);
578 GEN_CHECK_OFF(BMDMADesc, cbBuffer);
579 GEN_CHECK_SIZE(ATADevState);
580 GEN_CHECK_OFF(ATADevState, fLBA48);
581 GEN_CHECK_OFF(ATADevState, fATAPI);
582 GEN_CHECK_OFF(ATADevState, fIrqPending);
583 GEN_CHECK_OFF(ATADevState, cMultSectors);
584 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cCylinders);
585 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cHeads);
586 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cSectors);
587 GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
588 GEN_CHECK_OFF(ATADevState, cTotalSectors);
589 GEN_CHECK_OFF(ATADevState, uATARegFeature);
590 GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
591 GEN_CHECK_OFF(ATADevState, uATARegError);
592 GEN_CHECK_OFF(ATADevState, uATARegNSector);
593 GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
594 GEN_CHECK_OFF(ATADevState, uATARegSector);
595 GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
596 GEN_CHECK_OFF(ATADevState, uATARegLCyl);
597 GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
598 GEN_CHECK_OFF(ATADevState, uATARegHCyl);
599 GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
600 GEN_CHECK_OFF(ATADevState, uATARegSelect);
601 GEN_CHECK_OFF(ATADevState, uATARegStatus);
602 GEN_CHECK_OFF(ATADevState, uATARegCommand);
603 GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
604 GEN_CHECK_OFF(ATADevState, uATATransferMode);
605 GEN_CHECK_OFF(ATADevState, uTxDir);
606 GEN_CHECK_OFF(ATADevState, iBeginTransfer);
607 GEN_CHECK_OFF(ATADevState, iSourceSink);
608 GEN_CHECK_OFF(ATADevState, fDMA);
609 GEN_CHECK_OFF(ATADevState, fATAPITransfer);
610 GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
611 GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
612 GEN_CHECK_OFF(ATADevState, iIOBufferCur);
613 GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
614 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
615 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
616 GEN_CHECK_OFF(ATADevState, iATAPILBA);
617 GEN_CHECK_OFF(ATADevState, cbATAPISector);
618 GEN_CHECK_OFF(ATADevState, aATAPICmd);
619 GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
620 GEN_CHECK_OFF(ATADevState, uATAPISenseKey);
621 GEN_CHECK_OFF(ATADevState, uATAPIASC);
622 GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
623 GEN_CHECK_OFF(ATADevState, Led);
624 GEN_CHECK_OFF(ATADevState, cbIOBuffer);
625 GEN_CHECK_OFF(ATADevState, pbIOBufferHC);
626 GEN_CHECK_OFF(ATADevState, pbIOBufferGC);
627 GEN_CHECK_OFF(ATADevState, StatATADMA);
628 GEN_CHECK_OFF(ATADevState, StatReads);
629 GEN_CHECK_OFF(ATADevState, StatBytesRead);
630 GEN_CHECK_OFF(ATADevState, StatWrites);
631 GEN_CHECK_OFF(ATADevState, StatBytesWritten);
632 GEN_CHECK_OFF(ATADevState, StatFlushes);
633 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
634 GEN_CHECK_OFF(ATADevState, cErrors);
635 GEN_CHECK_OFF(ATADevState, pDrvBase);
636 GEN_CHECK_OFF(ATADevState, pDrvBlock);
637 GEN_CHECK_OFF(ATADevState, pDrvBlockBios);
638 GEN_CHECK_OFF(ATADevState, pDrvMount);
639 GEN_CHECK_OFF(ATADevState, IBase);
640 GEN_CHECK_OFF(ATADevState, IPort);
641 GEN_CHECK_OFF(ATADevState, IMountNotify);
642 GEN_CHECK_OFF(ATADevState, iLUN);
643 GEN_CHECK_OFF(ATADevState, pDevInsHC);
644 GEN_CHECK_OFF(ATADevState, pDevInsGC);
645 GEN_CHECK_OFF(ATADevState, pControllerHC);
646 GEN_CHECK_OFF(ATADevState, pControllerGC);
647 GEN_CHECK_SIZE(ATATransferRequest);
648 GEN_CHECK_OFF(ATATransferRequest, iIf);
649 GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
650 GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
651 GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
652 GEN_CHECK_OFF(ATATransferRequest, uTxDir);
653 GEN_CHECK_SIZE(ATAAbortRequest);
654 GEN_CHECK_OFF(ATAAbortRequest, iIf);
655 GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
656 GEN_CHECK_SIZE(ATARequest);
657 GEN_CHECK_OFF(ATARequest, ReqType);
658 GEN_CHECK_OFF(ATARequest, u);
659 GEN_CHECK_OFF(ATARequest, u.t);
660 GEN_CHECK_OFF(ATARequest, u.a);
661 GEN_CHECK_SIZE(ATACONTROLLER);
662 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
663 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
664 GEN_CHECK_OFF(ATACONTROLLER, irq);
665 GEN_CHECK_OFF(ATACONTROLLER, lock);
666 GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
667 GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
668 GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
669 GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
670 GEN_CHECK_OFF(ATACONTROLLER, fReset);
671 GEN_CHECK_OFF(ATACONTROLLER, fRedo);
672 GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
673 GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
674 GEN_CHECK_OFF(ATACONTROLLER, BmDma);
675 GEN_CHECK_OFF(ATACONTROLLER, pFirstDMADesc);
676 GEN_CHECK_OFF(ATACONTROLLER, pLastDMADesc);
677 GEN_CHECK_OFF(ATACONTROLLER, pRedoDMABuffer);
678 GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
679 GEN_CHECK_OFF(ATACONTROLLER, aIfs);
680 GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
681 GEN_CHECK_OFF(ATACONTROLLER, pDevInsHC);
682 GEN_CHECK_OFF(ATACONTROLLER, pDevInsGC);
683 GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
684 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
685 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOSem);
686 GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
687 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
688 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
689 GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestMutex);
690 GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
691 GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
692 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
693 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
694 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
695 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
696 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
697 GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
698 GEN_CHECK_SIZE(PCIATAState);
699 GEN_CHECK_OFF(PCIATAState, dev);
700 GEN_CHECK_OFF(PCIATAState, aCts);
701 GEN_CHECK_OFF(PCIATAState, aCts[1]);
702 GEN_CHECK_OFF(PCIATAState, pDevIns);
703 GEN_CHECK_OFF(PCIATAState, IBase);
704 GEN_CHECK_OFF(PCIATAState, ILeds);
705 GEN_CHECK_OFF(PCIATAState, pLedsConnector);
706 GEN_CHECK_OFF(PCIATAState, fGCEnabled);
707 GEN_CHECK_OFF(PCIATAState, fR0Enabled);
708
709#ifdef VBOX_WITH_USB
710 /* USB/DevOHCI.cpp */
711 GEN_CHECK_SIZE(OHCIHUBPORT);
712 GEN_CHECK_OFF(OHCIHUBPORT, fReg);
713 GEN_CHECK_OFF(OHCIHUBPORT, pDev);
714
715 GEN_CHECK_SIZE(OHCIROOTHUB);
716 GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
717 GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
718 GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
719 GEN_CHECK_OFF(OHCIROOTHUB, IBase);
720 GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
721 GEN_CHECK_OFF(OHCIROOTHUB, status);
722 GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
723 GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
724 GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
725 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
726 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP - 1]);
727 GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
728
729 GEN_CHECK_SIZE(OHCI);
730 GEN_CHECK_OFF(OHCI, PciDev);
731 GEN_CHECK_OFF(OHCI, MMIOBase);
732 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerHC);
733 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerGC);
734 GEN_CHECK_OFF(OHCI, SofTime);
735 //GEN_CHECK_OFF(OHCI, dqic:3);
736 //GEN_CHECK_OFF(OHCI, fno:1);
737 GEN_CHECK_OFF(OHCI, RootHub);
738 GEN_CHECK_OFF(OHCI, ctl);
739 GEN_CHECK_OFF(OHCI, status);
740 GEN_CHECK_OFF(OHCI, intr_status);
741 GEN_CHECK_OFF(OHCI, intr);
742 GEN_CHECK_OFF(OHCI, hcca);
743 GEN_CHECK_OFF(OHCI, per_cur);
744 GEN_CHECK_OFF(OHCI, ctrl_cur);
745 GEN_CHECK_OFF(OHCI, ctrl_head);
746 GEN_CHECK_OFF(OHCI, bulk_cur);
747 GEN_CHECK_OFF(OHCI, bulk_head);
748 GEN_CHECK_OFF(OHCI, done);
749 //GEN_CHECK_OFF(OHCI, fsmps:15);
750 //GEN_CHECK_OFF(OHCI, fit:1);
751 //GEN_CHECK_OFF(OHCI, fi:14);
752 //GEN_CHECK_OFF(OHCI, frt:1);
753 GEN_CHECK_OFF(OHCI, HcFmNumber);
754 GEN_CHECK_OFF(OHCI, pstart);
755 GEN_CHECK_OFF(OHCI, cTicksPerFrame);
756 GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
757 GEN_CHECK_OFF(OHCI, cInFlight);
758 GEN_CHECK_OFF(OHCI, aInFlight);
759 GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
760 GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
761 GEN_CHECK_OFF(OHCI, aInFlight[1]);
762 GEN_CHECK_OFF(OHCI, cInDoneQueue);
763 GEN_CHECK_OFF(OHCI, aInDoneQueue);
764 GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
765 GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
766 GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
767 GEN_CHECK_OFF(OHCI, pDevInsHC);
768 GEN_CHECK_OFF(OHCI, pDevInsGC);
769 GEN_CHECK_OFF(OHCI, pLoad);
770# ifdef VBOX_WITH_STATISTICS
771 GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
772 GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
773 GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
774 GEN_CHECK_OFF(OHCI, StatTimer);
775# endif
776 /* USB/DevEHCI.cpp */
777 GEN_CHECK_SIZE(EHCIHUBPORT);
778 GEN_CHECK_OFF(EHCIHUBPORT, fReg);
779 GEN_CHECK_OFF(EHCIHUBPORT, pDev);
780
781 GEN_CHECK_SIZE(EHCIROOTHUB);
782 GEN_CHECK_OFF(EHCIROOTHUB, pIBase);
783 GEN_CHECK_OFF(EHCIROOTHUB, pIRhConn);
784 GEN_CHECK_OFF(EHCIROOTHUB, pIDev);
785 GEN_CHECK_OFF(EHCIROOTHUB, IBase);
786 GEN_CHECK_OFF(EHCIROOTHUB, IRhPort);
787 GEN_CHECK_OFF(EHCIROOTHUB, status);
788 GEN_CHECK_OFF(EHCIROOTHUB, desc_a);
789 GEN_CHECK_OFF(EHCIROOTHUB, desc_b);
790 GEN_CHECK_OFF(EHCIROOTHUB, aPorts);
791 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[1]);
792 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[EHCI_NDP - 1]);
793 GEN_CHECK_OFF(EHCIROOTHUB, pEhci);
794
795 GEN_CHECK_SIZE(EHCI);
796 GEN_CHECK_OFF(EHCI, PciDev);
797 GEN_CHECK_OFF(EHCI, MMIOBase);
798 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerHC);
799 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerGC);
800 GEN_CHECK_OFF(EHCI, SofTime);
801 GEN_CHECK_OFF(EHCI, RootHub);
802 GEN_CHECK_OFF(EHCI, intr_status);
803 GEN_CHECK_OFF(EHCI, intr);
804 GEN_CHECK_OFF(EHCI, HcFmNumber);
805 GEN_CHECK_OFF(EHCI, cTicksPerFrame);
806 GEN_CHECK_OFF(EHCI, cTicksPerUsbTick);
807 GEN_CHECK_OFF(EHCI, cInFlight);
808 GEN_CHECK_OFF(EHCI, aInFlight);
809 GEN_CHECK_OFF(EHCI, aInFlight[0].GCPhysTD);
810 GEN_CHECK_OFF(EHCI, aInFlight[0].pUrb);
811 GEN_CHECK_OFF(EHCI, aInFlight[1]);
812 GEN_CHECK_OFF(EHCI, pDevInsHC);
813 GEN_CHECK_OFF(EHCI, pDevInsGC);
814 GEN_CHECK_OFF(EHCI, pLoad);
815 GEN_CHECK_OFF(EHCI, fAsyncTraversalTimerActive);
816# ifdef VBOX_WITH_STATISTICS
817 GEN_CHECK_OFF(EHCI, StatCanceledIsocUrbs);
818 GEN_CHECK_OFF(EHCI, StatCanceledGenUrbs);
819 GEN_CHECK_OFF(EHCI, StatDroppedUrbs);
820 GEN_CHECK_OFF(EHCI, StatTimer);
821# endif
822#endif /* VBOX_WITH_USB */
823
824 /* VMMDev/VBoxDev.cpp */
825
826 /* Serial/DevSerial.cpp */
827 GEN_CHECK_SIZE(SerialState);
828 GEN_CHECK_OFF(SerialState, divider);
829 GEN_CHECK_OFF(SerialState, rbr);
830 GEN_CHECK_OFF(SerialState, ier);
831 GEN_CHECK_OFF(SerialState, iir);
832 GEN_CHECK_OFF(SerialState, lcr);
833 GEN_CHECK_OFF(SerialState, mcr);
834 GEN_CHECK_OFF(SerialState, lsr);
835 GEN_CHECK_OFF(SerialState, msr);
836 GEN_CHECK_OFF(SerialState, scr);
837 GEN_CHECK_OFF(SerialState, thr_ipending);
838 GEN_CHECK_OFF(SerialState, irq);
839 GEN_CHECK_OFF(SerialState, msr_changed);
840 GEN_CHECK_OFF(SerialState, fGCEnabled);
841 GEN_CHECK_OFF(SerialState, fR0Enabled);
842 GEN_CHECK_OFF(SerialState, pDevInsGC);
843 GEN_CHECK_OFF(SerialState, pDevInsHC);
844 GEN_CHECK_OFF(SerialState, IBase);
845 GEN_CHECK_OFF(SerialState, ICharPort);
846 GEN_CHECK_OFF(SerialState, pDrvBase);
847 GEN_CHECK_OFF(SerialState, pDrvChar);
848 GEN_CHECK_OFF(SerialState, CritSect);
849 GEN_CHECK_OFF(SerialState, ReceiveSem);
850 GEN_CHECK_OFF(SerialState, last_break_enable);
851 GEN_CHECK_OFF(SerialState, base);
852
853#ifdef VBOX_WITH_AHCI
854 /* Storage/DevAHCI.cpp */
855
856 GEN_CHECK_SIZE(AHCIPort);
857 GEN_CHECK_OFF(AHCIPort, pDevInsHC);
858 GEN_CHECK_OFF(AHCIPort, pDevInsGC);
859 GEN_CHECK_OFF(AHCIPort, pAhciHC);
860 GEN_CHECK_OFF(AHCIPort, pAhciGC);
861 GEN_CHECK_OFF(AHCIPort, regCLB);
862 GEN_CHECK_OFF(AHCIPort, regCLBU);
863 GEN_CHECK_OFF(AHCIPort, regFB);
864 GEN_CHECK_OFF(AHCIPort, regFBU);
865 GEN_CHECK_OFF(AHCIPort, regIS);
866 GEN_CHECK_OFF(AHCIPort, regIE);
867 GEN_CHECK_OFF(AHCIPort, regCMD);
868 GEN_CHECK_OFF(AHCIPort, regTFD);
869 GEN_CHECK_OFF(AHCIPort, regSIG);
870 GEN_CHECK_OFF(AHCIPort, regSSTS);
871 GEN_CHECK_OFF(AHCIPort, regSCTL);
872 GEN_CHECK_OFF(AHCIPort, regSERR);
873 GEN_CHECK_OFF(AHCIPort, regSACT);
874 GEN_CHECK_OFF(AHCIPort, regCI);
875 GEN_CHECK_OFF(AHCIPort, GCPhysAddrClb);
876 GEN_CHECK_OFF(AHCIPort, GCPhysAddrFb);
877 GEN_CHECK_OFF(AHCIPort, fAsyncInterface);
878 GEN_CHECK_OFF(AHCIPort, pAsyncIOThread);
879 GEN_CHECK_OFF(AHCIPort, AsyncIORequestSem);
880 GEN_CHECK_OFF(AHCIPort, ahciIOTasks);
881 GEN_CHECK_OFF(AHCIPort, ahciIOTasks[2*AHCI_NR_COMMAND_SLOTS-1]);
882 GEN_CHECK_OFF(AHCIPort, uActWritePos);
883 GEN_CHECK_OFF(AHCIPort, uActReadPos);
884 GEN_CHECK_OFF(AHCIPort, uActTasksActive);
885 GEN_CHECK_OFF(AHCIPort, fPoweredOn);
886 GEN_CHECK_OFF(AHCIPort, fSpunUp);
887 GEN_CHECK_OFF(AHCIPort, fFirstD2HFisSend);
888 GEN_CHECK_OFF(AHCIPort, fATAPI);
889 GEN_CHECK_OFF(AHCIPort, pDrvBase);
890 GEN_CHECK_OFF(AHCIPort, pDrvBlock);
891 GEN_CHECK_OFF(AHCIPort, pDrvBlockAsync);
892 GEN_CHECK_OFF(AHCIPort, pDrvBlockBios);
893 GEN_CHECK_OFF(AHCIPort, pDrvMount);
894 GEN_CHECK_OFF(AHCIPort, IBase);
895 GEN_CHECK_OFF(AHCIPort, IPort);
896 GEN_CHECK_OFF(AHCIPort, IPortAsync);
897 GEN_CHECK_OFF(AHCIPort, IMountNotify);
898 GEN_CHECK_OFF(AHCIPort, PCHSGeometry);
899 GEN_CHECK_OFF(AHCIPort, Led);
900 GEN_CHECK_OFF(AHCIPort, cTotalSectors);
901 GEN_CHECK_OFF(AHCIPort, cMultSectors);
902 GEN_CHECK_OFF(AHCIPort, uATATransferMode);
903 GEN_CHECK_OFF(AHCIPort, uATAPISenseKey);
904 GEN_CHECK_OFF(AHCIPort, uATAPIASC);
905 GEN_CHECK_OFF(AHCIPort, cNotifiedMediaChange);
906 GEN_CHECK_OFF(AHCIPort, iLUN);
907 GEN_CHECK_OFF(AHCIPort, fResetDevice);
908 GEN_CHECK_OFF(AHCIPort, u32TasksFinished);
909 GEN_CHECK_OFF(AHCIPort, u32QueuedTasksFinished);
910 GEN_CHECK_OFF(AHCIPort, StatDMA);
911 GEN_CHECK_OFF(AHCIPort, StatBytesWritten);
912 GEN_CHECK_OFF(AHCIPort, StatBytesRead);
913 GEN_CHECK_OFF(AHCIPort, StatQueueFillRate);
914
915 GEN_CHECK_SIZE(AHCI);
916 GEN_CHECK_OFF(AHCI, dev);
917 GEN_CHECK_OFF(AHCI, pDevInsHC);
918 GEN_CHECK_OFF(AHCI, pDevInsGC);
919 GEN_CHECK_OFF(AHCI, IBase);
920 GEN_CHECK_OFF(AHCI, ILeds);
921 GEN_CHECK_OFF(AHCI, pLedsConnector);
922 GEN_CHECK_OFF(AHCI, MMIOBase);
923 GEN_CHECK_OFF(AHCI, regHbaCap);
924 GEN_CHECK_OFF(AHCI, regHbaCtrl);
925 GEN_CHECK_OFF(AHCI, regHbaIs);
926 GEN_CHECK_OFF(AHCI, regHbaPi);
927 GEN_CHECK_OFF(AHCI, regHbaVs);
928 GEN_CHECK_OFF(AHCI, regHbaCccCtl);
929 GEN_CHECK_OFF(AHCI, regHbaCccPorts);
930 GEN_CHECK_OFF(AHCI, pHbaCccTimerHC);
931 GEN_CHECK_OFF(AHCI, pHbaCccTimerGC);
932 GEN_CHECK_OFF(AHCI, pNotifierQueueHC);
933 GEN_CHECK_OFF(AHCI, pNotifierQueueGC);
934 GEN_CHECK_OFF(AHCI, uCccPortNr);
935 GEN_CHECK_OFF(AHCI, uCccTimeout);
936 GEN_CHECK_OFF(AHCI, uCccNr);
937 GEN_CHECK_OFF(AHCI, uCccCurrentNr);
938 GEN_CHECK_OFF(AHCI, ahciPort);
939 GEN_CHECK_OFF(AHCI, ahciPort[AHCI_MAX_NR_PORTS_IMPL-1]);
940 GEN_CHECK_OFF(AHCI, aCts);
941 GEN_CHECK_OFF(AHCI, aCts[1]);
942 GEN_CHECK_OFF(AHCI, u32PortsInterrupted);
943 GEN_CHECK_OFF(AHCI, fReset);
944 GEN_CHECK_OFF(AHCI, f64BitAddr);
945 GEN_CHECK_OFF(AHCI, fGCEnabled);
946 GEN_CHECK_OFF(AHCI, fR0Enabled);
947 GEN_CHECK_OFF(AHCI, lock);
948 GEN_CHECK_OFF(AHCI, cPortsImpl);
949#endif /* VBOX_WITH_AHCI */
950
951#ifdef VBOX_WITH_E1000
952 GEN_CHECK_SIZE(EEPROM93C46);
953 GEN_CHECK_OFF(EEPROM93C46, m_eState);
954 GEN_CHECK_OFF(EEPROM93C46, m_au16Data);
955 GEN_CHECK_OFF(EEPROM93C46, m_fWriteEnabled);
956 GEN_CHECK_OFF(EEPROM93C46, m_u16Word);
957 GEN_CHECK_OFF(EEPROM93C46, m_u16Mask);
958 GEN_CHECK_OFF(EEPROM93C46, m_u16Addr);
959 GEN_CHECK_OFF(EEPROM93C46, m_u32InternalWires);
960 GEN_CHECK_OFF(EEPROM93C46, m_eOp);
961
962 GEN_CHECK_SIZE(E1KSTATE);
963 GEN_CHECK_OFF(E1KSTATE, IBase);
964 GEN_CHECK_OFF(E1KSTATE, INetworkPort);
965 GEN_CHECK_OFF(E1KSTATE, INetworkConfig);
966 GEN_CHECK_OFF(E1KSTATE, ILeds);
967 GEN_CHECK_OFF(E1KSTATE, pDrvBase);
968 GEN_CHECK_OFF(E1KSTATE, pDrv);
969 GEN_CHECK_OFF(E1KSTATE, pLedsConnector);
970 GEN_CHECK_OFF(E1KSTATE, pInstHC);
971 GEN_CHECK_OFF(E1KSTATE, pInstGC);
972 GEN_CHECK_OFF(E1KSTATE, pTxQueueHC);
973 GEN_CHECK_OFF(E1KSTATE, pTxQueueGC);
974 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueHC);
975 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueGC);
976 GEN_CHECK_OFF(E1KSTATE, pRIDTimerHC);
977 GEN_CHECK_OFF(E1KSTATE, pRIDTimerGC);
978 GEN_CHECK_OFF(E1KSTATE, pRADTimerHC);
979 GEN_CHECK_OFF(E1KSTATE, pRADTimerGC);
980 GEN_CHECK_OFF(E1KSTATE, pTIDTimerHC);
981 GEN_CHECK_OFF(E1KSTATE, pTIDTimerGC);
982 GEN_CHECK_OFF(E1KSTATE, pTADTimerHC);
983 GEN_CHECK_OFF(E1KSTATE, pTADTimerGC);
984 GEN_CHECK_OFF(E1KSTATE, pIntTimerHC);
985 GEN_CHECK_OFF(E1KSTATE, pIntTimerGC);
986 GEN_CHECK_OFF(E1KSTATE, pLUTimer);
987 GEN_CHECK_OFF(E1KSTATE, pTxThread);
988 GEN_CHECK_OFF(E1KSTATE, cs);
989#ifndef E1K_GLOBAL_MUTEX
990 GEN_CHECK_OFF(E1KSTATE, csRx);
991#endif
992 GEN_CHECK_OFF(E1KSTATE, hTxSem);
993 GEN_CHECK_OFF(E1KSTATE, addrMMReg);
994 GEN_CHECK_OFF(E1KSTATE, macAddress);
995 GEN_CHECK_OFF(E1KSTATE, addrIOPort);
996 GEN_CHECK_OFF(E1KSTATE, pciDevice);
997 GEN_CHECK_OFF(E1KSTATE, u64AckedAt);
998 GEN_CHECK_OFF(E1KSTATE, fIntRaised);
999 GEN_CHECK_OFF(E1KSTATE, fCableConnected);
1000 GEN_CHECK_OFF(E1KSTATE, fR0Enabled);
1001 GEN_CHECK_OFF(E1KSTATE, fGCEnabled);
1002 GEN_CHECK_OFF(E1KSTATE, auRegs[E1K_NUM_OF_32BIT_REGS]);
1003 GEN_CHECK_OFF(E1KSTATE, led);
1004 GEN_CHECK_OFF(E1KSTATE, u32PktNo);
1005 GEN_CHECK_OFF(E1KSTATE, uSelectedReg);
1006 GEN_CHECK_OFF(E1KSTATE, auMTA[128]);
1007 GEN_CHECK_OFF(E1KSTATE, aRecAddr);
1008 GEN_CHECK_OFF(E1KSTATE, auVFTA[128]);
1009 GEN_CHECK_OFF(E1KSTATE, u16RxBSize);
1010 GEN_CHECK_OFF(E1KSTATE, fLocked);
1011 GEN_CHECK_OFF(E1KSTATE, fDelayInts);
1012 GEN_CHECK_OFF(E1KSTATE, fIntMaskUsed);
1013 GEN_CHECK_OFF(E1KSTATE, fMaybeOutOfSpace);
1014 GEN_CHECK_OFF(E1KSTATE, hEventMoreRxDescAvail);
1015 GEN_CHECK_OFF(E1KSTATE, contextTSE);
1016 GEN_CHECK_OFF(E1KSTATE, contextNormal);
1017 GEN_CHECK_OFF(E1KSTATE, aTxPacket[E1K_MAX_TX_PKT_SIZE]);
1018 GEN_CHECK_OFF(E1KSTATE, u16TxPktLen);
1019 GEN_CHECK_OFF(E1KSTATE, fIPcsum);
1020 GEN_CHECK_OFF(E1KSTATE, fTCPcsum);
1021 GEN_CHECK_OFF(E1KSTATE, u32PayRemain);
1022 GEN_CHECK_OFF(E1KSTATE, u16HdrRemain);
1023 GEN_CHECK_OFF(E1KSTATE, u16SavedFlags);
1024 GEN_CHECK_OFF(E1KSTATE, u32SavedCsum);
1025 GEN_CHECK_OFF(E1KSTATE, eeprom);
1026 GEN_CHECK_OFF(E1KSTATE, phy);
1027#endif /* VBOX_WITH_E1000 */
1028
1029 return (0);
1030}
1031
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