VirtualBox

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

Last change on this file since 24834 was 24834, checked in by vboxsync, 15 years ago

#3987: Virtio: Split DevVirtioNet.cpp into three files.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 62.5 KB
Line 
1/* $Id: tstDeviceStructSizeGC.cpp 24834 2009-11-20 20:51:12Z 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_RC
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 "../Parallel/DevParallel.cpp"
70#undef LOG_GROUP
71#include "../Serial/DevSerial.cpp"
72#ifdef VBOX_WITH_AHCI
73# undef LOG_GROUP
74# include "../Storage/DevAHCI.cpp"
75#endif
76#ifdef VBOX_WITH_E1000
77# undef LOG_GROUP
78# include "../Network/DevE1000.cpp"
79#endif
80#ifdef VBOX_WITH_VIRTIO
81# undef LOG_GROUP
82# include "../Network/DevVirtioNet.cpp"
83#endif
84#ifdef VBOX_WITH_BUSLOGIC
85# undef LOG_GROUP
86# include "../Storage/DevBusLogic.cpp"
87#endif
88#ifdef VBOX_WITH_LSILOGIC
89# undef LOG_GROUP
90# include "../Storage/DevLsiLogicSCSI.cpp"
91#endif
92#ifdef VBOX_WITH_HPET
93# undef LOG_GROUP
94# include "../PC/DevHPET.cpp"
95#endif
96
97/* we don't use iprt here because we're pretending to be in GC! */
98#include <stdio.h>
99
100#define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
101#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
102#define GEN_CHECK_PADDING(s, m, a) printf(" CHECK_PADDING(%s, %s, %u);\n", #s, #m, (a))
103
104int main()
105{
106 /* misc */
107 GEN_CHECK_SIZE(PDMDEVINS);
108 GEN_CHECK_OFF(PDMDEVINS, Internal);
109 GEN_CHECK_OFF(PDMDEVINS, pDevReg);
110 GEN_CHECK_OFF(PDMDEVINS, pCfgHandle);
111 GEN_CHECK_OFF(PDMDEVINS, iInstance);
112 GEN_CHECK_OFF(PDMDEVINS, IBase);
113 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR3);
114 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR0);
115 GEN_CHECK_OFF(PDMDEVINS, pDevHlpRC);
116 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR3);
117 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR0);
118 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataRC);
119 GEN_CHECK_OFF(PDMDEVINS, achInstanceData);
120
121 /* DevPCI.cpp */
122 GEN_CHECK_SIZE(PCIDEVICE);
123 GEN_CHECK_SIZE(PCIDEVICEINT);
124 GEN_CHECK_SIZE(PCIIOREGION);
125 GEN_CHECK_OFF(PCIDEVICE, config);
126 GEN_CHECK_OFF(PCIDEVICE, devfn);
127 GEN_CHECK_OFF(PCIDEVICE, name);
128 GEN_CHECK_OFF(PCIDEVICE, pDevIns);
129 GEN_CHECK_OFF(PCIDEVICE, Int);
130 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions);
131 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[1]);
132 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[PCI_NUM_REGIONS - 1]);
133 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].addr);
134 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].size);
135 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].type);
136 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].padding);
137 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusR3);
138 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusR0);
139 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusRC);
140 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigRead);
141 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigWrite);
142 GEN_CHECK_OFF(PCIDEVICE, Int.s.fRequestedDevFn);
143 GEN_CHECK_OFF(PCIDEVICE, Int.s.fPciToPciBridge);
144 GEN_CHECK_OFF(PCIDEVICE, Int.s.uIrqPinState);
145 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigRead);
146 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigWrite);
147 GEN_CHECK_PADDING(PCIDEVICE, Int, 8);
148 GEN_CHECK_SIZE(PIIX3State);
149 GEN_CHECK_SIZE(PCIBUS);
150 GEN_CHECK_OFF(PCIBUS, iBus);
151 GEN_CHECK_OFF(PCIBUS, iDevSearch);
152 GEN_CHECK_OFF(PCIBUS, cBridges);
153 GEN_CHECK_OFF(PCIBUS, devices);
154 GEN_CHECK_OFF(PCIBUS, devices[1]);
155 GEN_CHECK_OFF(PCIBUS, pDevInsR3);
156 GEN_CHECK_OFF(PCIBUS, pPciHlpR3);
157 GEN_CHECK_OFF(PCIBUS, papBridgesR3);
158 GEN_CHECK_OFF(PCIBUS, pDevInsR0);
159 GEN_CHECK_OFF(PCIBUS, pPciHlpR0);
160 GEN_CHECK_OFF(PCIBUS, pDevInsRC);
161 GEN_CHECK_OFF(PCIBUS, pPciHlpRC);
162 GEN_CHECK_OFF(PCIBUS, PciDev);
163 GEN_CHECK_SIZE(PCIGLOBALS);
164 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_io_addr);
165 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_mem_addr);
166 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels);
167 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels[1]);
168 GEN_CHECK_OFF(PCIGLOBALS, fUseIoApic);
169 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels);
170 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels[1]);
171 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq_level);
172 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq);
173 GEN_CHECK_OFF(PCIGLOBALS, uConfigReg);
174 GEN_CHECK_OFF(PCIGLOBALS, pDevInsR3);
175 GEN_CHECK_OFF(PCIGLOBALS, pDevInsR0);
176 GEN_CHECK_OFF(PCIGLOBALS, pDevInsRC);
177 GEN_CHECK_OFF(PCIGLOBALS, PIIX3State);
178 GEN_CHECK_OFF(PCIGLOBALS, PciBus);
179
180 /* DevVGA.cpp */
181 GEN_CHECK_SIZE(VGASTATE);
182 GEN_CHECK_OFF(VGASTATE, vram_ptrR3);
183 GEN_CHECK_OFF(VGASTATE, vram_size);
184 GEN_CHECK_OFF(VGASTATE, latch);
185 GEN_CHECK_OFF(VGASTATE, sr_index);
186 GEN_CHECK_OFF(VGASTATE, sr);
187 GEN_CHECK_OFF(VGASTATE, sr[1]);
188 GEN_CHECK_OFF(VGASTATE, gr_index);
189 GEN_CHECK_OFF(VGASTATE, gr);
190 GEN_CHECK_OFF(VGASTATE, gr[1]);
191 GEN_CHECK_OFF(VGASTATE, ar_index);
192 GEN_CHECK_OFF(VGASTATE, ar);
193 GEN_CHECK_OFF(VGASTATE, ar[1]);
194 GEN_CHECK_OFF(VGASTATE, ar_flip_flop);
195 GEN_CHECK_OFF(VGASTATE, cr_index);
196 GEN_CHECK_OFF(VGASTATE, cr);
197 GEN_CHECK_OFF(VGASTATE, cr[1]);
198 GEN_CHECK_OFF(VGASTATE, msr);
199 GEN_CHECK_OFF(VGASTATE, msr);
200 GEN_CHECK_OFF(VGASTATE, fcr);
201 GEN_CHECK_OFF(VGASTATE, st00);
202 GEN_CHECK_OFF(VGASTATE, st01);
203 GEN_CHECK_OFF(VGASTATE, dac_state);
204 GEN_CHECK_OFF(VGASTATE, dac_sub_index);
205 GEN_CHECK_OFF(VGASTATE, dac_read_index);
206 GEN_CHECK_OFF(VGASTATE, dac_write_index);
207 GEN_CHECK_OFF(VGASTATE, dac_cache);
208 GEN_CHECK_OFF(VGASTATE, dac_cache[1]);
209 GEN_CHECK_OFF(VGASTATE, palette);
210 GEN_CHECK_OFF(VGASTATE, palette[1]);
211 GEN_CHECK_OFF(VGASTATE, bank_offset);
212 GEN_CHECK_OFF(VGASTATE, get_bpp);
213 GEN_CHECK_OFF(VGASTATE, get_offsets);
214 GEN_CHECK_OFF(VGASTATE, get_resolution);
215#ifdef CONFIG_BOCHS_VBE
216 GEN_CHECK_OFF(VGASTATE, vbe_index);
217 GEN_CHECK_OFF(VGASTATE, vbe_regs);
218 GEN_CHECK_OFF(VGASTATE, vbe_regs[1]);
219 GEN_CHECK_OFF(VGASTATE, vbe_regs[VBE_DISPI_INDEX_NB - 1]);
220 GEN_CHECK_OFF(VGASTATE, vbe_start_addr);
221 GEN_CHECK_OFF(VGASTATE, vbe_line_offset);
222 GEN_CHECK_OFF(VGASTATE, vbe_bank_max);
223#endif
224 GEN_CHECK_OFF(VGASTATE, font_offsets);
225 GEN_CHECK_OFF(VGASTATE, font_offsets[1]);
226 GEN_CHECK_OFF(VGASTATE, graphic_mode);
227 GEN_CHECK_OFF(VGASTATE, shift_control);
228 GEN_CHECK_OFF(VGASTATE, double_scan);
229 GEN_CHECK_OFF(VGASTATE, line_offset);
230 GEN_CHECK_OFF(VGASTATE, line_compare);
231 GEN_CHECK_OFF(VGASTATE, start_addr);
232 GEN_CHECK_OFF(VGASTATE, plane_updated);
233 GEN_CHECK_OFF(VGASTATE, last_cw);
234 GEN_CHECK_OFF(VGASTATE, last_ch);
235 GEN_CHECK_OFF(VGASTATE, last_width);
236 GEN_CHECK_OFF(VGASTATE, last_height);
237 GEN_CHECK_OFF(VGASTATE, last_scr_width);
238 GEN_CHECK_OFF(VGASTATE, last_scr_height);
239 GEN_CHECK_OFF(VGASTATE, last_bpp);
240 GEN_CHECK_OFF(VGASTATE, cursor_start);
241 GEN_CHECK_OFF(VGASTATE, cursor_end);
242 GEN_CHECK_OFF(VGASTATE, cursor_offset);
243 GEN_CHECK_OFF(VGASTATE, rgb_to_pixel);
244 GEN_CHECK_OFF(VGASTATE, invalidated_y_table);
245 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[1]);
246 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[(VGA_MAX_HEIGHT / 32) - 1]);
247 GEN_CHECK_OFF(VGASTATE, cursor_invalidate);
248 GEN_CHECK_OFF(VGASTATE, cursor_draw_line);
249 GEN_CHECK_OFF(VGASTATE, last_palette);
250 GEN_CHECK_OFF(VGASTATE, last_palette[1]);
251 GEN_CHECK_OFF(VGASTATE, last_ch_attr);
252 GEN_CHECK_OFF(VGASTATE, last_ch_attr[CH_ATTR_SIZE - 1]);
253 GEN_CHECK_OFF(VGASTATE, u32Marker);
254 GEN_CHECK_OFF(VGASTATE, GCPhysVRAM);
255 GEN_CHECK_OFF(VGASTATE, vram_ptrR0);
256 GEN_CHECK_OFF(VGASTATE, vram_ptrRC);
257 GEN_CHECK_OFF(VGASTATE, fLFBUpdated);
258 GEN_CHECK_OFF(VGASTATE, fGCEnabled);
259 GEN_CHECK_OFF(VGASTATE, fR0Enabled);
260 GEN_CHECK_OFF(VGASTATE, fHasDirtyBits);
261 GEN_CHECK_OFF(VGASTATE, fRemappedVGA);
262 GEN_CHECK_OFF(VGASTATE, fRenderVRAM);
263 GEN_CHECK_OFF(VGASTATE, cMonitors);
264#ifdef VBOX_WITH_HGSMI
265 GEN_CHECK_OFF(VGASTATE, pHGSMI);
266#endif
267 GEN_CHECK_OFF(VGASTATE, cMilliesRefreshInterval);
268 GEN_CHECK_OFF(VGASTATE, RefreshTimer);
269 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap);
270 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[1]);
271 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[(VGA_VRAM_MAX / PAGE_SIZE / 32) - 1]);
272 GEN_CHECK_OFF(VGASTATE, RCPtrLFBHandler);
273 GEN_CHECK_OFF(VGASTATE, pDevInsRC);
274 GEN_CHECK_OFF(VGASTATE, pDevInsR3);
275 GEN_CHECK_OFF(VGASTATE, pDevInsR0);
276 GEN_CHECK_OFF(VGASTATE, lock);
277 GEN_CHECK_OFF(VGASTATE, Base);
278 GEN_CHECK_OFF(VGASTATE, Port);
279#if defined(VBOX_WITH_HGSMI) && defined(VBOX_WITH_VIDEOHWACCEL)
280 GEN_CHECK_OFF(VGASTATE, VBVACallbacks);
281#endif
282 GEN_CHECK_OFF(VGASTATE, pDrvBase);
283 GEN_CHECK_OFF(VGASTATE, pDrv);
284 GEN_CHECK_OFF(VGASTATE, Dev);
285 GEN_CHECK_OFF(VGASTATE, StatRZMemoryRead);
286 GEN_CHECK_OFF(VGASTATE, StatR3MemoryRead);
287 GEN_CHECK_OFF(VGASTATE, StatRZMemoryWrite);
288 GEN_CHECK_OFF(VGASTATE, StatR3MemoryWrite);
289#ifdef VBE_BYTEWISE_IO
290 GEN_CHECK_OFF(VGASTATE, fReadVBEData);
291 GEN_CHECK_OFF(VGASTATE, fWriteVBEData);
292 GEN_CHECK_OFF(VGASTATE, fReadVBEIndex);
293 GEN_CHECK_OFF(VGASTATE, fWriteVBEIndex);
294 GEN_CHECK_OFF(VGASTATE, cbWriteVBEData);
295 GEN_CHECK_OFF(VGASTATE, cbWriteVBEIndex);
296# ifdef VBE_NEW_DYN_LIST
297 GEN_CHECK_OFF(VGASTATE, cbWriteVBEExtraAddress);
298# endif
299#endif
300#ifdef VBE_NEW_DYN_LIST
301 GEN_CHECK_OFF(VGASTATE, cbVBEExtraData);
302 GEN_CHECK_OFF(VGASTATE, pu8VBEExtraData);
303 GEN_CHECK_OFF(VGASTATE, u16VBEExtraAddress);
304#endif
305#ifdef VBOX_WITH_HGSMI
306 GEN_CHECK_OFF(VGASTATE, IOPortBase);
307#endif
308
309 /* Input/pckbd.c */
310 GEN_CHECK_SIZE(KBDQueue);
311 GEN_CHECK_OFF(KBDQueue, data);
312 GEN_CHECK_OFF(KBDQueue, rptr);
313 GEN_CHECK_OFF(KBDQueue, wptr);
314 GEN_CHECK_OFF(KBDQueue, count);
315 GEN_CHECK_SIZE(MouseCmdQueue);
316 GEN_CHECK_OFF(MouseCmdQueue, data);
317 GEN_CHECK_OFF(MouseCmdQueue, rptr);
318 GEN_CHECK_OFF(MouseCmdQueue, wptr);
319 GEN_CHECK_OFF(MouseCmdQueue, count);
320 GEN_CHECK_SIZE(MouseEventQueue);
321 GEN_CHECK_OFF(MouseEventQueue, data);
322 GEN_CHECK_OFF(MouseEventQueue, rptr);
323 GEN_CHECK_OFF(MouseEventQueue, wptr);
324 GEN_CHECK_OFF(MouseEventQueue, count);
325 GEN_CHECK_SIZE(KBDState);
326 GEN_CHECK_OFF(KBDState, queue);
327 GEN_CHECK_OFF(KBDState, mouse_command_queue);
328 GEN_CHECK_OFF(KBDState, mouse_event_queue);
329 GEN_CHECK_OFF(KBDState, write_cmd);
330 GEN_CHECK_OFF(KBDState, status);
331 GEN_CHECK_OFF(KBDState, mode);
332 GEN_CHECK_OFF(KBDState, kbd_write_cmd);
333 GEN_CHECK_OFF(KBDState, scan_enabled);
334 GEN_CHECK_OFF(KBDState, mouse_write_cmd);
335 GEN_CHECK_OFF(KBDState, mouse_status);
336 GEN_CHECK_OFF(KBDState, mouse_resolution);
337 GEN_CHECK_OFF(KBDState, mouse_sample_rate);
338 GEN_CHECK_OFF(KBDState, mouse_wrap);
339 GEN_CHECK_OFF(KBDState, mouse_type);
340 GEN_CHECK_OFF(KBDState, mouse_detect_state);
341 GEN_CHECK_OFF(KBDState, mouse_dx);
342 GEN_CHECK_OFF(KBDState, mouse_dy);
343 GEN_CHECK_OFF(KBDState, mouse_dz);
344 GEN_CHECK_OFF(KBDState, mouse_dw);
345 GEN_CHECK_OFF(KBDState, mouse_buttons);
346 GEN_CHECK_OFF(KBDState, pDevInsR3);
347 GEN_CHECK_OFF(KBDState, pDevInsR0);
348 GEN_CHECK_OFF(KBDState, pDevInsRC);
349 GEN_CHECK_OFF(KBDState, Keyboard.Base);
350 GEN_CHECK_OFF(KBDState, Keyboard.Port);
351 GEN_CHECK_OFF(KBDState, Keyboard.pDrvBase);
352 GEN_CHECK_OFF(KBDState, Keyboard.pDrv);
353 GEN_CHECK_OFF(KBDState, Mouse.Base);
354 GEN_CHECK_OFF(KBDState, Mouse.Port);
355 GEN_CHECK_OFF(KBDState, Mouse.pDrvBase);
356 GEN_CHECK_OFF(KBDState, Mouse.pDrv);
357
358 /* Network/DevPCNet.cpp */
359 GEN_CHECK_SIZE(PCNetState);
360 GEN_CHECK_OFF(PCNetState, PciDev);
361#ifndef PCNET_NO_POLLING
362 GEN_CHECK_OFF(PCNetState, pTimerPollR3);
363 GEN_CHECK_OFF(PCNetState, pTimerPollR0);
364 GEN_CHECK_OFF(PCNetState, pTimerPollRC);
365#endif
366 GEN_CHECK_OFF(PCNetState, pTimerSoftIntR3);
367 GEN_CHECK_OFF(PCNetState, pTimerSoftIntR0);
368 GEN_CHECK_OFF(PCNetState, pTimerSoftIntRC);
369 GEN_CHECK_OFF(PCNetState, u32RAP);
370 GEN_CHECK_OFF(PCNetState, iISR);
371 GEN_CHECK_OFF(PCNetState, u32Lnkst);
372 GEN_CHECK_OFF(PCNetState, GCRDRA);
373 GEN_CHECK_OFF(PCNetState, GCTDRA);
374 GEN_CHECK_OFF(PCNetState, aPROM);
375 GEN_CHECK_OFF(PCNetState, aPROM[1]);
376 GEN_CHECK_OFF(PCNetState, aCSR);
377 GEN_CHECK_OFF(PCNetState, aCSR[1]);
378 GEN_CHECK_OFF(PCNetState, aCSR[CSR_MAX_REG - 1]);
379 GEN_CHECK_OFF(PCNetState, aBCR);
380 GEN_CHECK_OFF(PCNetState, aBCR[1]);
381 GEN_CHECK_OFF(PCNetState, aBCR[BCR_MAX_RAP - 1]);
382 GEN_CHECK_OFF(PCNetState, aMII);
383 GEN_CHECK_OFF(PCNetState, aMII[1]);
384 GEN_CHECK_OFF(PCNetState, aMII[MII_MAX_REG - 1]);
385 GEN_CHECK_OFF(PCNetState, u16CSR0LastSeenByGuest);
386 GEN_CHECK_OFF(PCNetState, u64LastPoll);
387 GEN_CHECK_OFF(PCNetState, abSendBuf);
388 GEN_CHECK_OFF(PCNetState, abRecvBuf);
389 GEN_CHECK_OFF(PCNetState, iLog2DescSize);
390 GEN_CHECK_OFF(PCNetState, GCUpperPhys);
391 GEN_CHECK_OFF(PCNetState, pXmitQueueR3);
392 GEN_CHECK_OFF(PCNetState, pXmitQueueR0);
393 GEN_CHECK_OFF(PCNetState, pXmitQueueRC);
394 GEN_CHECK_OFF(PCNetState, pCanRxQueueR3);
395 GEN_CHECK_OFF(PCNetState, pCanRxQueueR0);
396 GEN_CHECK_OFF(PCNetState, pCanRxQueueRC);
397 GEN_CHECK_OFF(PCNetState, pTimerRestore);
398 GEN_CHECK_OFF(PCNetState, pDevInsR3);
399 GEN_CHECK_OFF(PCNetState, pDevInsR0);
400 GEN_CHECK_OFF(PCNetState, pDevInsRC);
401 GEN_CHECK_OFF(PCNetState, pDrv);
402 GEN_CHECK_OFF(PCNetState, pDrvBase);
403 GEN_CHECK_OFF(PCNetState, IBase);
404 GEN_CHECK_OFF(PCNetState, INetworkPort);
405 GEN_CHECK_OFF(PCNetState, INetworkConfig);
406 GEN_CHECK_OFF(PCNetState, MMIOBase);
407 GEN_CHECK_OFF(PCNetState, IOPortBase);
408 GEN_CHECK_OFF(PCNetState, fLinkUp);
409 GEN_CHECK_OFF(PCNetState, fLinkTempDown);
410 GEN_CHECK_OFF(PCNetState, cLinkDownReported);
411 GEN_CHECK_OFF(PCNetState, MacConfigured);
412 GEN_CHECK_OFF(PCNetState, Led);
413 GEN_CHECK_OFF(PCNetState, ILeds);
414 GEN_CHECK_OFF(PCNetState, pLedsConnector);
415 GEN_CHECK_OFF(PCNetState, hSendEventSem);
416 GEN_CHECK_OFF(PCNetState, pSendThread);
417 GEN_CHECK_OFF(PCNetState, CritSect);
418 GEN_CHECK_OFF(PCNetState, cPendingSends);
419#ifdef PCNET_NO_POLLING
420 GEN_CHECK_OFF(PCNetState, TDRAPhysOld);
421 GEN_CHECK_OFF(PCNetState, cbTDRAOld);
422 GEN_CHECK_OFF(PCNetState, RDRAPhysOld);
423 GEN_CHECK_OFF(PCNetState, cbRDRAOld);
424 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionGC
425 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionR0
426#endif
427 GEN_CHECK_OFF(PCNetState, pSharedMMIOR3);
428 GEN_CHECK_OFF(PCNetState, pSharedMMIOR0);
429 GEN_CHECK_OFF(PCNetState, pSharedMMIORC);
430 GEN_CHECK_OFF(PCNetState, fPrivIfEnabled);
431 GEN_CHECK_OFF(PCNetState, fGCEnabled);
432 GEN_CHECK_OFF(PCNetState, fR0Enabled);
433 GEN_CHECK_OFF(PCNetState, fAm79C973);
434 GEN_CHECK_OFF(PCNetState, u32LinkSpeed);
435#ifdef VBOX_WITH_STATISTICS
436 GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
437 GEN_CHECK_OFF(PCNetState, StatMIIReads);
438# ifdef PCNET_NO_POLLING
439 GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
440 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
441# endif
442#endif
443
444 /* PC/DevACPI.cpp */
445 GEN_CHECK_SIZE(ACPIState);
446 GEN_CHECK_OFF(ACPIState, dev);
447 GEN_CHECK_OFF(ACPIState, pm1a_en);
448 GEN_CHECK_OFF(ACPIState, pm1a_sts);
449 GEN_CHECK_OFF(ACPIState, pm1a_ctl);
450 GEN_CHECK_OFF(ACPIState, pm_timer_initial);
451 GEN_CHECK_OFF(ACPIState, tsR3);
452 GEN_CHECK_OFF(ACPIState, tsR0);
453 GEN_CHECK_OFF(ACPIState, tsRC);
454 GEN_CHECK_OFF(ACPIState, gpe0_en);
455 GEN_CHECK_OFF(ACPIState, gpe0_sts);
456 GEN_CHECK_OFF(ACPIState, uBatteryIndex);
457 GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
458 GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
459 GEN_CHECK_OFF(ACPIState, u64RamSize);
460 GEN_CHECK_OFF(ACPIState, uSleepState);
461 GEN_CHECK_OFF(ACPIState, au8RSDPPage);
462 GEN_CHECK_OFF(ACPIState, u8IndexShift);
463 GEN_CHECK_OFF(ACPIState, u8UseIOApic);
464 GEN_CHECK_OFF(ACPIState, fUseFdc);
465 GEN_CHECK_OFF(ACPIState, fUseHpet);
466 GEN_CHECK_OFF(ACPIState, fUseSmc);
467 GEN_CHECK_OFF(ACPIState, IBase);
468 GEN_CHECK_OFF(ACPIState, IACPIPort);
469 GEN_CHECK_OFF(ACPIState, pDevIns);
470 GEN_CHECK_OFF(ACPIState, pDrvBase);
471 GEN_CHECK_OFF(ACPIState, pDrv);
472
473 /* PC/DevPIC.cpp */
474 GEN_CHECK_SIZE(PicState);
475 GEN_CHECK_OFF(PicState, last_irr);
476 GEN_CHECK_OFF(PicState, irr);
477 GEN_CHECK_OFF(PicState, imr);
478 GEN_CHECK_OFF(PicState, isr);
479 GEN_CHECK_OFF(PicState, priority_add);
480 GEN_CHECK_OFF(PicState, irq_base);
481 GEN_CHECK_OFF(PicState, read_reg_select);
482 GEN_CHECK_OFF(PicState, poll);
483 GEN_CHECK_OFF(PicState, special_mask);
484 GEN_CHECK_OFF(PicState, init_state);
485 GEN_CHECK_OFF(PicState, auto_eoi);
486 GEN_CHECK_OFF(PicState, rotate_on_auto_eoi);
487 GEN_CHECK_OFF(PicState, special_fully_nested_mode);
488 GEN_CHECK_OFF(PicState, init4);
489 GEN_CHECK_OFF(PicState, elcr);
490 GEN_CHECK_OFF(PicState, elcr_mask);
491 GEN_CHECK_OFF(PicState, pDevInsR3);
492 GEN_CHECK_OFF(PicState, pDevInsR0);
493 GEN_CHECK_OFF(PicState, pDevInsRC);
494
495 GEN_CHECK_SIZE(DEVPIC);
496 GEN_CHECK_OFF(DEVPIC, aPics);
497 GEN_CHECK_OFF(DEVPIC, aPics[1]);
498 GEN_CHECK_OFF(DEVPIC, pDevInsR3);
499 GEN_CHECK_OFF(DEVPIC, pDevInsR0);
500 GEN_CHECK_OFF(DEVPIC, pDevInsRC);
501 GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
502 GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
503 GEN_CHECK_OFF(DEVPIC, pPicHlpRC);
504#ifdef VBOX_WITH_STATISTICS
505 GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
506 GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
507#endif
508
509 /* PC/DevPit-i8254.cpp */
510 GEN_CHECK_SIZE(PITChannelState);
511 GEN_CHECK_OFF(PITChannelState, pPitR3);
512 GEN_CHECK_OFF(PITChannelState, pTimerR3);
513 GEN_CHECK_OFF(PITChannelState, pPitR0);
514 GEN_CHECK_OFF(PITChannelState, pTimerR0);
515 GEN_CHECK_OFF(PITChannelState, pPitRC);
516 GEN_CHECK_OFF(PITChannelState, pTimerRC);
517 GEN_CHECK_OFF(PITChannelState, u64ReloadTS);
518 GEN_CHECK_OFF(PITChannelState, u64NextTS);
519 GEN_CHECK_OFF(PITChannelState, count_load_time);
520 GEN_CHECK_OFF(PITChannelState, next_transition_time);
521 GEN_CHECK_OFF(PITChannelState, irq);
522 GEN_CHECK_OFF(PITChannelState, cRelLogEntries);
523 GEN_CHECK_OFF(PITChannelState, count);
524 GEN_CHECK_OFF(PITChannelState, latched_count);
525 GEN_CHECK_OFF(PITChannelState, count_latched);
526 GEN_CHECK_OFF(PITChannelState, status_latched);
527 GEN_CHECK_OFF(PITChannelState, status);
528 GEN_CHECK_OFF(PITChannelState, read_state);
529 GEN_CHECK_OFF(PITChannelState, write_state);
530 GEN_CHECK_OFF(PITChannelState, write_latch);
531 GEN_CHECK_OFF(PITChannelState, rw_mode);
532 GEN_CHECK_OFF(PITChannelState, mode);
533 GEN_CHECK_OFF(PITChannelState, bcd);
534 GEN_CHECK_OFF(PITChannelState, gate);
535 GEN_CHECK_SIZE(PITState);
536 GEN_CHECK_OFF(PITState, channels);
537 GEN_CHECK_OFF(PITState, channels[1]);
538 GEN_CHECK_OFF(PITState, speaker_data_on);
539// GEN_CHECK_OFF(PITState, dummy_refresh_clock);
540 GEN_CHECK_OFF(PITState, IOPortBaseCfg);
541 GEN_CHECK_OFF(PITState, fSpeakerCfg);
542 GEN_CHECK_OFF(PITState, pDevIns);
543 GEN_CHECK_OFF(PITState, StatPITIrq);
544 GEN_CHECK_OFF(PITState, StatPITHandler);
545
546 /* PC/DevRTC.cpp */
547 GEN_CHECK_SIZE(RTCState);
548 GEN_CHECK_OFF(RTCState, cmos_data);
549 GEN_CHECK_OFF(RTCState, cmos_data[1]);
550 GEN_CHECK_OFF(RTCState, cmos_index);
551 GEN_CHECK_OFF(RTCState, current_tm);
552 GEN_CHECK_OFF(RTCState, current_tm.tm_sec);
553 GEN_CHECK_OFF(RTCState, current_tm.tm_min);
554 GEN_CHECK_OFF(RTCState, current_tm.tm_hour);
555 GEN_CHECK_OFF(RTCState, current_tm.tm_mday);
556 GEN_CHECK_OFF(RTCState, current_tm.tm_mon);
557 GEN_CHECK_OFF(RTCState, current_tm.tm_year);
558 GEN_CHECK_OFF(RTCState, current_tm.tm_wday);
559 GEN_CHECK_OFF(RTCState, current_tm.tm_yday);
560 GEN_CHECK_OFF(RTCState, irq);
561 GEN_CHECK_OFF(RTCState, fUTC);
562 GEN_CHECK_OFF(RTCState, IOPortBase);
563 GEN_CHECK_OFF(RTCState, pPeriodicTimerR0);
564 GEN_CHECK_OFF(RTCState, pPeriodicTimerR3);
565 GEN_CHECK_OFF(RTCState, pPeriodicTimerRC);
566 GEN_CHECK_OFF(RTCState, next_periodic_time);
567 GEN_CHECK_OFF(RTCState, next_second_time);
568 GEN_CHECK_OFF(RTCState, pSecondTimerR0);
569 GEN_CHECK_OFF(RTCState, pSecondTimerR3);
570 GEN_CHECK_OFF(RTCState, pSecondTimerRC);
571 GEN_CHECK_OFF(RTCState, pSecondTimer2R0);
572 GEN_CHECK_OFF(RTCState, pSecondTimer2R3);
573 GEN_CHECK_OFF(RTCState, pSecondTimer2RC);
574 GEN_CHECK_OFF(RTCState, pDevInsR0);
575 GEN_CHECK_OFF(RTCState, pDevInsR3);
576 GEN_CHECK_OFF(RTCState, pDevInsRC);
577 GEN_CHECK_OFF(RTCState, RtcReg);
578 GEN_CHECK_OFF(RTCState, pRtcHlpR3);
579 GEN_CHECK_OFF(RTCState, cRelLogEntries);
580 GEN_CHECK_OFF(RTCState, CurPeriod);
581
582 /* PC/apic.c */
583 GEN_CHECK_SIZE(APICState);
584 GEN_CHECK_OFF(APICState, apicbase);
585 GEN_CHECK_OFF(APICState, id);
586 GEN_CHECK_OFF(APICState, arb_id);
587 GEN_CHECK_OFF(APICState, tpr);
588 GEN_CHECK_OFF(APICState, spurious_vec);
589 GEN_CHECK_OFF(APICState, log_dest);
590 GEN_CHECK_OFF(APICState, dest_mode);
591 GEN_CHECK_OFF(APICState, isr);
592 GEN_CHECK_OFF(APICState, isr[1]);
593 GEN_CHECK_OFF(APICState, tmr);
594 GEN_CHECK_OFF(APICState, tmr[1]);
595 GEN_CHECK_OFF(APICState, irr);
596 GEN_CHECK_OFF(APICState, irr[1]);
597 GEN_CHECK_OFF(APICState, lvt);
598 GEN_CHECK_OFF(APICState, lvt[1]);
599 GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);
600 GEN_CHECK_OFF(APICState, esr);
601 GEN_CHECK_OFF(APICState, icr);
602 GEN_CHECK_OFF(APICState, icr[1]);
603 GEN_CHECK_OFF(APICState, divide_conf);
604 GEN_CHECK_OFF(APICState, count_shift);
605 GEN_CHECK_OFF(APICState, initial_count);
606 GEN_CHECK_OFF(APICState, initial_count_load_time);
607 GEN_CHECK_OFF(APICState, next_time);
608 GEN_CHECK_OFF(APICState, pTimerR3);
609 GEN_CHECK_OFF(APICState, pTimerR0);
610 GEN_CHECK_OFF(APICState, pTimerRC);
611 GEN_CHECK_OFF(APICState, fTimerArmed);
612 GEN_CHECK_OFF(APICState, pszDesc);
613#ifdef VBOX_WITH_STATISTICS
614 GEN_CHECK_OFF(APICState, StatTimerSetInitialCount);
615 GEN_CHECK_OFF(APICState, StatTimerSetLvtNoRelevantChange);
616#endif
617
618 GEN_CHECK_SIZE(APICDeviceInfo);
619 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR3);
620 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR3);
621 GEN_CHECK_OFF(APICDeviceInfo, paLapicsR3);
622 GEN_CHECK_OFF(APICDeviceInfo, pCritSectR3);
623 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR0);
624 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR0);
625 GEN_CHECK_OFF(APICDeviceInfo, paLapicsR0);
626 GEN_CHECK_OFF(APICDeviceInfo, pCritSectR0);
627 GEN_CHECK_OFF(APICDeviceInfo, pDevInsRC);
628 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpRC);
629 GEN_CHECK_OFF(APICDeviceInfo, paLapicsRC);
630 GEN_CHECK_OFF(APICDeviceInfo, pCritSectRC);
631 GEN_CHECK_OFF(APICDeviceInfo, enmVersion);
632 GEN_CHECK_OFF(APICDeviceInfo, cTPRPatchAttempts);
633 GEN_CHECK_OFF(APICDeviceInfo, cCpus);
634#ifdef VBOX_WITH_STATISTICS
635 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOReadGC);
636 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOWriteHC);
637#endif
638
639 GEN_CHECK_SIZE(IOAPICState);
640 GEN_CHECK_OFF(IOAPICState, id);
641 GEN_CHECK_OFF(IOAPICState, ioregsel);
642 GEN_CHECK_OFF(IOAPICState, irr);
643 GEN_CHECK_OFF(IOAPICState, ioredtbl);
644 GEN_CHECK_OFF(IOAPICState, ioredtbl[1]);
645 GEN_CHECK_OFF(IOAPICState, ioredtbl[IOAPIC_NUM_PINS - 1]);
646 GEN_CHECK_OFF(IOAPICState, pDevInsR3);
647 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR3);
648 GEN_CHECK_OFF(IOAPICState, pDevInsR0);
649 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR0);
650 GEN_CHECK_OFF(IOAPICState, pDevInsRC);
651 GEN_CHECK_OFF(IOAPICState, pIoApicHlpRC);
652#ifdef VBOX_WITH_STATISTICS
653 GEN_CHECK_OFF(IOAPICState, StatMMIOReadGC);
654 GEN_CHECK_OFF(IOAPICState, StatSetIrqHC);
655#endif
656
657 /* Storage/DevATA.cpp */
658 GEN_CHECK_SIZE(BMDMAState);
659 GEN_CHECK_OFF(BMDMAState, u8Cmd);
660 GEN_CHECK_OFF(BMDMAState, u8Status);
661 GEN_CHECK_OFF(BMDMAState, pvAddr);
662 GEN_CHECK_SIZE(BMDMADesc);
663 GEN_CHECK_OFF(BMDMADesc, pBuffer);
664 GEN_CHECK_OFF(BMDMADesc, cbBuffer);
665 GEN_CHECK_SIZE(ATADevState);
666 GEN_CHECK_OFF(ATADevState, fLBA48);
667 GEN_CHECK_OFF(ATADevState, fATAPI);
668 GEN_CHECK_OFF(ATADevState, fIrqPending);
669 GEN_CHECK_OFF(ATADevState, cMultSectors);
670 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cCylinders);
671 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cHeads);
672 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cSectors);
673 GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
674 GEN_CHECK_OFF(ATADevState, cTotalSectors);
675 GEN_CHECK_OFF(ATADevState, uATARegFeature);
676 GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
677 GEN_CHECK_OFF(ATADevState, uATARegError);
678 GEN_CHECK_OFF(ATADevState, uATARegNSector);
679 GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
680 GEN_CHECK_OFF(ATADevState, uATARegSector);
681 GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
682 GEN_CHECK_OFF(ATADevState, uATARegLCyl);
683 GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
684 GEN_CHECK_OFF(ATADevState, uATARegHCyl);
685 GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
686 GEN_CHECK_OFF(ATADevState, uATARegSelect);
687 GEN_CHECK_OFF(ATADevState, uATARegStatus);
688 GEN_CHECK_OFF(ATADevState, uATARegCommand);
689 GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
690 GEN_CHECK_OFF(ATADevState, uATATransferMode);
691 GEN_CHECK_OFF(ATADevState, uTxDir);
692 GEN_CHECK_OFF(ATADevState, iBeginTransfer);
693 GEN_CHECK_OFF(ATADevState, iSourceSink);
694 GEN_CHECK_OFF(ATADevState, fDMA);
695 GEN_CHECK_OFF(ATADevState, fATAPITransfer);
696 GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
697 GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
698 GEN_CHECK_OFF(ATADevState, iIOBufferCur);
699 GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
700 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
701 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
702 GEN_CHECK_OFF(ATADevState, iATAPILBA);
703 GEN_CHECK_OFF(ATADevState, cbATAPISector);
704 GEN_CHECK_OFF(ATADevState, aATAPICmd);
705 GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
706 GEN_CHECK_OFF(ATADevState, abATAPISense);
707 GEN_CHECK_OFF(ATADevState, abATAPISense[ATAPI_SENSE_SIZE - 1]);
708 GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
709 GEN_CHECK_OFF(ATADevState, MediaEventStatus);
710 GEN_CHECK_OFF(ATADevState, Led);
711 GEN_CHECK_OFF(ATADevState, cbIOBuffer);
712 GEN_CHECK_OFF(ATADevState, pbIOBufferR3);
713 GEN_CHECK_OFF(ATADevState, pbIOBufferR0);
714 GEN_CHECK_OFF(ATADevState, pbIOBufferRC);
715 GEN_CHECK_OFF(ATADevState, StatATADMA);
716 GEN_CHECK_OFF(ATADevState, StatATAPIO);
717 GEN_CHECK_OFF(ATADevState, StatATAPIDMA);
718 GEN_CHECK_OFF(ATADevState, StatATAPIPIO);
719 GEN_CHECK_OFF(ATADevState, StatReads);
720 GEN_CHECK_OFF(ATADevState, StatBytesRead);
721 GEN_CHECK_OFF(ATADevState, StatWrites);
722 GEN_CHECK_OFF(ATADevState, StatBytesWritten);
723 GEN_CHECK_OFF(ATADevState, StatFlushes);
724 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
725 GEN_CHECK_OFF(ATADevState, cErrors);
726 GEN_CHECK_OFF(ATADevState, pDrvBase);
727 GEN_CHECK_OFF(ATADevState, pDrvBlock);
728 GEN_CHECK_OFF(ATADevState, pDrvBlockBios);
729 GEN_CHECK_OFF(ATADevState, pDrvMount);
730 GEN_CHECK_OFF(ATADevState, IBase);
731 GEN_CHECK_OFF(ATADevState, IPort);
732 GEN_CHECK_OFF(ATADevState, IMountNotify);
733 GEN_CHECK_OFF(ATADevState, iLUN);
734 GEN_CHECK_OFF(ATADevState, pDevInsR3);
735 GEN_CHECK_OFF(ATADevState, pDevInsR0);
736 GEN_CHECK_OFF(ATADevState, pDevInsRC);
737 GEN_CHECK_OFF(ATADevState, pControllerR3);
738 GEN_CHECK_OFF(ATADevState, pControllerR0);
739 GEN_CHECK_OFF(ATADevState, pControllerRC);
740 GEN_CHECK_OFF(ATADevState, szSerialNumber);
741 GEN_CHECK_OFF(ATADevState, szSerialNumber[ATA_SERIAL_NUMBER_LENGTH]);
742 GEN_CHECK_OFF(ATADevState, szFirmwareRevision);
743 GEN_CHECK_OFF(ATADevState, szFirmwareRevision[ATA_FIRMWARE_REVISION_LENGTH]);
744 GEN_CHECK_OFF(ATADevState, szModelNumber);
745 GEN_CHECK_OFF(ATADevState, szModelNumber[ATA_MODEL_NUMBER_LENGTH]);
746 GEN_CHECK_OFF(ATADevState, szInquiryVendorId);
747 GEN_CHECK_OFF(ATADevState, szInquiryVendorId[ATAPI_INQUIRY_VENDOR_ID_LENGTH]);
748 GEN_CHECK_OFF(ATADevState, szInquiryProductId);
749 GEN_CHECK_OFF(ATADevState, szInquiryProductId[ATAPI_INQUIRY_PRODUCT_ID_LENGTH]);
750 GEN_CHECK_OFF(ATADevState, szInquiryRevision);
751 GEN_CHECK_OFF(ATADevState, szInquiryRevision[ATAPI_INQUIRY_REVISION_LENGTH]);
752 GEN_CHECK_SIZE(ATATransferRequest);
753 GEN_CHECK_OFF(ATATransferRequest, iIf);
754 GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
755 GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
756 GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
757 GEN_CHECK_OFF(ATATransferRequest, uTxDir);
758 GEN_CHECK_SIZE(ATAAbortRequest);
759 GEN_CHECK_OFF(ATAAbortRequest, iIf);
760 GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
761 GEN_CHECK_SIZE(ATARequest);
762 GEN_CHECK_OFF(ATARequest, ReqType);
763 GEN_CHECK_OFF(ATARequest, u);
764 GEN_CHECK_OFF(ATARequest, u.t);
765 GEN_CHECK_OFF(ATARequest, u.a);
766 GEN_CHECK_SIZE(ATACONTROLLER);
767 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
768 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
769 GEN_CHECK_OFF(ATACONTROLLER, irq);
770 GEN_CHECK_OFF(ATACONTROLLER, lock);
771 GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
772 GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
773 GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
774 GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
775 GEN_CHECK_OFF(ATACONTROLLER, fReset);
776 GEN_CHECK_OFF(ATACONTROLLER, fRedo);
777 GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
778 GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
779 GEN_CHECK_OFF(ATACONTROLLER, BmDma);
780 GEN_CHECK_OFF(ATACONTROLLER, pFirstDMADesc);
781 GEN_CHECK_OFF(ATACONTROLLER, pLastDMADesc);
782 GEN_CHECK_OFF(ATACONTROLLER, pRedoDMABuffer);
783 GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
784 GEN_CHECK_OFF(ATACONTROLLER, aIfs);
785 GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
786 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR3);
787 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR0);
788 GEN_CHECK_OFF(ATACONTROLLER, pDevInsRC);
789 GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
790 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
791 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOSem);
792 GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
793 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
794 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
795 GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestMutex);
796 GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
797 GEN_CHECK_OFF(ATACONTROLLER, fSignalIdle);
798 GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
799 GEN_CHECK_OFF(ATACONTROLLER, u64ResetTime);
800 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
801 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
802 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
803 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
804 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
805 GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
806 GEN_CHECK_SIZE(PCIATAState);
807 GEN_CHECK_OFF(PCIATAState, dev);
808 GEN_CHECK_OFF(PCIATAState, aCts);
809 GEN_CHECK_OFF(PCIATAState, aCts[1]);
810 GEN_CHECK_OFF(PCIATAState, pDevIns);
811 GEN_CHECK_OFF(PCIATAState, IBase);
812 GEN_CHECK_OFF(PCIATAState, ILeds);
813 GEN_CHECK_OFF(PCIATAState, pLedsConnector);
814 GEN_CHECK_OFF(PCIATAState, fGCEnabled);
815 GEN_CHECK_OFF(PCIATAState, fR0Enabled);
816
817#ifdef VBOX_WITH_USB
818 /* USB/DevOHCI.cpp */
819 GEN_CHECK_SIZE(OHCIHUBPORT);
820 GEN_CHECK_OFF(OHCIHUBPORT, fReg);
821 GEN_CHECK_OFF(OHCIHUBPORT, pDev);
822
823 GEN_CHECK_SIZE(OHCIROOTHUB);
824 GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
825 GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
826 GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
827 GEN_CHECK_OFF(OHCIROOTHUB, IBase);
828 GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
829 GEN_CHECK_OFF(OHCIROOTHUB, status);
830 GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
831 GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
832 GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
833 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
834 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP - 1]);
835 GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
836
837 GEN_CHECK_SIZE(OHCI);
838 GEN_CHECK_OFF(OHCI, PciDev);
839 GEN_CHECK_OFF(OHCI, MMIOBase);
840 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR3);
841 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR0);
842 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerRC);
843 GEN_CHECK_OFF(OHCI, pDevInsR3);
844 GEN_CHECK_OFF(OHCI, pDevInsR0);
845 GEN_CHECK_OFF(OHCI, pDevInsRC);
846 GEN_CHECK_OFF(OHCI, SofTime);
847 //GEN_CHECK_OFF(OHCI, dqic:3);
848 //GEN_CHECK_OFF(OHCI, fno:1);
849 GEN_CHECK_OFF(OHCI, RootHub);
850 GEN_CHECK_OFF(OHCI, ctl);
851 GEN_CHECK_OFF(OHCI, status);
852 GEN_CHECK_OFF(OHCI, intr_status);
853 GEN_CHECK_OFF(OHCI, intr);
854 GEN_CHECK_OFF(OHCI, hcca);
855 GEN_CHECK_OFF(OHCI, per_cur);
856 GEN_CHECK_OFF(OHCI, ctrl_cur);
857 GEN_CHECK_OFF(OHCI, ctrl_head);
858 GEN_CHECK_OFF(OHCI, bulk_cur);
859 GEN_CHECK_OFF(OHCI, bulk_head);
860 GEN_CHECK_OFF(OHCI, done);
861 //GEN_CHECK_OFF(OHCI, fsmps:15);
862 //GEN_CHECK_OFF(OHCI, fit:1);
863 //GEN_CHECK_OFF(OHCI, fi:14);
864 //GEN_CHECK_OFF(OHCI, frt:1);
865 GEN_CHECK_OFF(OHCI, HcFmNumber);
866 GEN_CHECK_OFF(OHCI, pstart);
867 GEN_CHECK_OFF(OHCI, cTicksPerFrame);
868 GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
869 GEN_CHECK_OFF(OHCI, cInFlight);
870 GEN_CHECK_OFF(OHCI, aInFlight);
871 GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
872 GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
873 GEN_CHECK_OFF(OHCI, aInFlight[1]);
874 GEN_CHECK_OFF(OHCI, cInDoneQueue);
875 GEN_CHECK_OFF(OHCI, aInDoneQueue);
876 GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
877 GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
878 GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
879 GEN_CHECK_OFF(OHCI, pLoad);
880# ifdef VBOX_WITH_STATISTICS
881 GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
882 GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
883 GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
884 GEN_CHECK_OFF(OHCI, StatTimer);
885# endif
886 /* USB/DevEHCI.cpp */
887 GEN_CHECK_SIZE(EHCIHUBPORT);
888 GEN_CHECK_OFF(EHCIHUBPORT, fReg);
889 GEN_CHECK_OFF(EHCIHUBPORT, pDev);
890
891 GEN_CHECK_SIZE(EHCIROOTHUB);
892 GEN_CHECK_OFF(EHCIROOTHUB, pIBase);
893 GEN_CHECK_OFF(EHCIROOTHUB, pIRhConn);
894 GEN_CHECK_OFF(EHCIROOTHUB, pIDev);
895 GEN_CHECK_OFF(EHCIROOTHUB, IBase);
896 GEN_CHECK_OFF(EHCIROOTHUB, IRhPort);
897 GEN_CHECK_OFF(EHCIROOTHUB, status);
898 GEN_CHECK_OFF(EHCIROOTHUB, desc_a);
899 GEN_CHECK_OFF(EHCIROOTHUB, desc_b);
900 GEN_CHECK_OFF(EHCIROOTHUB, aPorts);
901 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[1]);
902 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[EHCI_NDP - 1]);
903 GEN_CHECK_OFF(EHCIROOTHUB, pEhci);
904
905 GEN_CHECK_SIZE(EHCI);
906 GEN_CHECK_OFF(EHCI, PciDev);
907 GEN_CHECK_OFF(EHCI, MMIOBase);
908 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerR3);
909 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerR0);
910 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerRC);
911 GEN_CHECK_OFF(EHCI, pDevInsR3);
912 GEN_CHECK_OFF(EHCI, pDevInsR0);
913 GEN_CHECK_OFF(EHCI, pDevInsRC);
914 GEN_CHECK_OFF(EHCI, SofTime);
915 GEN_CHECK_OFF(EHCI, RootHub);
916 GEN_CHECK_OFF(EHCI, intr_status);
917 GEN_CHECK_OFF(EHCI, intr);
918 GEN_CHECK_OFF(EHCI, HcFmNumber);
919 GEN_CHECK_OFF(EHCI, cTicksPerFrame);
920 GEN_CHECK_OFF(EHCI, cTicksPerUsbTick);
921 GEN_CHECK_OFF(EHCI, cInFlight);
922 GEN_CHECK_OFF(EHCI, aInFlight);
923 GEN_CHECK_OFF(EHCI, aInFlight[0].GCPhysTD);
924 GEN_CHECK_OFF(EHCI, aInFlight[0].pUrb);
925 GEN_CHECK_OFF(EHCI, aInFlight[1]);
926 GEN_CHECK_OFF(EHCI, pLoad);
927 GEN_CHECK_OFF(EHCI, fAsyncTraversalTimerActive);
928# ifdef VBOX_WITH_STATISTICS
929 GEN_CHECK_OFF(EHCI, StatCanceledIsocUrbs);
930 GEN_CHECK_OFF(EHCI, StatCanceledGenUrbs);
931 GEN_CHECK_OFF(EHCI, StatDroppedUrbs);
932 GEN_CHECK_OFF(EHCI, StatTimer);
933# endif
934#endif /* VBOX_WITH_USB */
935
936 /* VMMDev/VBoxDev.cpp */
937
938 /* Parallel/DevParallel.cpp */
939 GEN_CHECK_SIZE(ParallelState);
940 GEN_CHECK_OFF(ParallelState, pDevInsR3);
941 GEN_CHECK_OFF(ParallelState, pDevInsR0);
942 GEN_CHECK_OFF(ParallelState, pDevInsRC);
943 GEN_CHECK_OFF(ParallelState, IBase);
944 GEN_CHECK_OFF(ParallelState, IHostParallelPort);
945 GEN_CHECK_OFF(ParallelState, pDrvHostParallelConnector);
946 GEN_CHECK_OFF(ParallelState, ReceiveSem);
947 GEN_CHECK_OFF(ParallelState, reg_data);
948 GEN_CHECK_OFF(ParallelState, reg_status);
949 GEN_CHECK_OFF(ParallelState, reg_control);
950 GEN_CHECK_OFF(ParallelState, reg_epp_addr);
951 GEN_CHECK_OFF(ParallelState, reg_epp_data);
952 GEN_CHECK_OFF(ParallelState, reg_ecp_ecr);
953 GEN_CHECK_OFF(ParallelState, reg_ecp_base_plus_400h);
954 GEN_CHECK_OFF(ParallelState, reg_ecp_config_b);
955 GEN_CHECK_OFF(ParallelState, ecp_fifo);
956 GEN_CHECK_OFF(ParallelState, ecp_fifo[1]);
957 GEN_CHECK_OFF(ParallelState, act_fifo_pos_write);
958 GEN_CHECK_OFF(ParallelState, act_fifo_pos_read);
959 GEN_CHECK_OFF(ParallelState, irq);
960 GEN_CHECK_OFF(ParallelState, epp_timeout);
961 GEN_CHECK_OFF(ParallelState, fGCEnabled);
962 GEN_CHECK_OFF(ParallelState, fR0Enabled);
963 GEN_CHECK_OFF(ParallelState, base);
964
965 /* Serial/DevSerial.cpp */
966 GEN_CHECK_SIZE(SerialState);
967 GEN_CHECK_OFF(SerialState, divider);
968 GEN_CHECK_OFF(SerialState, rbr);
969 GEN_CHECK_OFF(SerialState, ier);
970 GEN_CHECK_OFF(SerialState, iir);
971 GEN_CHECK_OFF(SerialState, lcr);
972 GEN_CHECK_OFF(SerialState, mcr);
973 GEN_CHECK_OFF(SerialState, lsr);
974 GEN_CHECK_OFF(SerialState, msr);
975 GEN_CHECK_OFF(SerialState, scr);
976 GEN_CHECK_OFF(SerialState, thr_ipending);
977 GEN_CHECK_OFF(SerialState, irq);
978 GEN_CHECK_OFF(SerialState, msr_changed);
979 GEN_CHECK_OFF(SerialState, fGCEnabled);
980 GEN_CHECK_OFF(SerialState, fR0Enabled);
981 GEN_CHECK_OFF(SerialState, pDevInsR3);
982 GEN_CHECK_OFF(SerialState, pDevInsR0);
983 GEN_CHECK_OFF(SerialState, pDevInsRC);
984 GEN_CHECK_OFF(SerialState, IBase);
985 GEN_CHECK_OFF(SerialState, ICharPort);
986 GEN_CHECK_OFF(SerialState, pDrvBase);
987 GEN_CHECK_OFF(SerialState, pDrvChar);
988 GEN_CHECK_OFF(SerialState, CritSect);
989 GEN_CHECK_OFF(SerialState, ReceiveSem);
990 GEN_CHECK_OFF(SerialState, last_break_enable);
991 GEN_CHECK_OFF(SerialState, base);
992
993#ifdef VBOX_WITH_AHCI
994 /* Storage/ATAController.h */
995 GEN_CHECK_SIZE(AHCIATADevState);
996 GEN_CHECK_OFF(AHCIATADevState, fLBA48);
997 GEN_CHECK_OFF(AHCIATADevState, fATAPI);
998 GEN_CHECK_OFF(AHCIATADevState, fIrqPending);
999 GEN_CHECK_OFF(AHCIATADevState, cMultSectors);
1000 GEN_CHECK_OFF(AHCIATADevState, PCHSGeometry.cCylinders);
1001 GEN_CHECK_OFF(AHCIATADevState, PCHSGeometry.cHeads);
1002 GEN_CHECK_OFF(AHCIATADevState, PCHSGeometry.cSectors);
1003 GEN_CHECK_OFF(AHCIATADevState, cSectorsPerIRQ);
1004 GEN_CHECK_OFF(AHCIATADevState, cTotalSectors);
1005 GEN_CHECK_OFF(AHCIATADevState, uATARegFeature);
1006 GEN_CHECK_OFF(AHCIATADevState, uATARegFeatureHOB);
1007 GEN_CHECK_OFF(AHCIATADevState, uATARegError);
1008 GEN_CHECK_OFF(AHCIATADevState, uATARegNSector);
1009 GEN_CHECK_OFF(AHCIATADevState, uATARegNSectorHOB);
1010 GEN_CHECK_OFF(AHCIATADevState, uATARegSector);
1011 GEN_CHECK_OFF(AHCIATADevState, uATARegSectorHOB);
1012 GEN_CHECK_OFF(AHCIATADevState, uATARegLCyl);
1013 GEN_CHECK_OFF(AHCIATADevState, uATARegLCylHOB);
1014 GEN_CHECK_OFF(AHCIATADevState, uATARegHCyl);
1015 GEN_CHECK_OFF(AHCIATADevState, uATARegHCylHOB);
1016 GEN_CHECK_OFF(AHCIATADevState, uATARegSelect);
1017 GEN_CHECK_OFF(AHCIATADevState, uATARegStatus);
1018 GEN_CHECK_OFF(AHCIATADevState, uATARegCommand);
1019 GEN_CHECK_OFF(AHCIATADevState, uATARegDevCtl);
1020 GEN_CHECK_OFF(AHCIATADevState, uATATransferMode);
1021 GEN_CHECK_OFF(AHCIATADevState, uTxDir);
1022 GEN_CHECK_OFF(AHCIATADevState, iBeginTransfer);
1023 GEN_CHECK_OFF(AHCIATADevState, iSourceSink);
1024 GEN_CHECK_OFF(AHCIATADevState, fDMA);
1025 GEN_CHECK_OFF(AHCIATADevState, fATAPITransfer);
1026 GEN_CHECK_OFF(AHCIATADevState, cbTotalTransfer);
1027 GEN_CHECK_OFF(AHCIATADevState, cbElementaryTransfer);
1028 GEN_CHECK_OFF(AHCIATADevState, iIOBufferCur);
1029 GEN_CHECK_OFF(AHCIATADevState, iIOBufferEnd);
1030 GEN_CHECK_OFF(AHCIATADevState, iIOBufferPIODataStart);
1031 GEN_CHECK_OFF(AHCIATADevState, iIOBufferPIODataEnd);
1032 GEN_CHECK_OFF(AHCIATADevState, iATAPILBA);
1033 GEN_CHECK_OFF(AHCIATADevState, cbATAPISector);
1034 GEN_CHECK_OFF(AHCIATADevState, aATAPICmd);
1035 GEN_CHECK_OFF(AHCIATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
1036 GEN_CHECK_OFF(AHCIATADevState, abATAPISense);
1037 GEN_CHECK_OFF(AHCIATADevState, abATAPISense[ATAPI_SENSE_SIZE - 1]);
1038 GEN_CHECK_OFF(AHCIATADevState, cNotifiedMediaChange);
1039 GEN_CHECK_OFF(AHCIATADevState, MediaEventStatus);
1040 GEN_CHECK_OFF(AHCIATADevState, pLed);
1041 GEN_CHECK_OFF(AHCIATADevState, cbIOBuffer);
1042 GEN_CHECK_OFF(AHCIATADevState, pbIOBufferR3);
1043 GEN_CHECK_OFF(AHCIATADevState, pbIOBufferR0);
1044 GEN_CHECK_OFF(AHCIATADevState, pbIOBufferRC);
1045 GEN_CHECK_OFF(AHCIATADevState, StatATADMA);
1046 GEN_CHECK_OFF(AHCIATADevState, StatATAPIO);
1047 GEN_CHECK_OFF(AHCIATADevState, StatATAPIDMA);
1048 GEN_CHECK_OFF(AHCIATADevState, StatATAPIPIO);
1049 GEN_CHECK_OFF(AHCIATADevState, StatReads);
1050 GEN_CHECK_OFF(AHCIATADevState, pStatBytesRead);
1051 GEN_CHECK_OFF(AHCIATADevState, StatWrites);
1052 GEN_CHECK_OFF(AHCIATADevState, pStatBytesWritten);
1053 GEN_CHECK_OFF(AHCIATADevState, StatFlushes);
1054 GEN_CHECK_OFF(AHCIATADevState, fATAPIPassthrough);
1055 GEN_CHECK_OFF(AHCIATADevState, cErrors);
1056 GEN_CHECK_OFF(AHCIATADevState, pDrvBase);
1057 GEN_CHECK_OFF(AHCIATADevState, pDrvBlock);
1058 GEN_CHECK_OFF(AHCIATADevState, pDrvBlockBios);
1059 GEN_CHECK_OFF(AHCIATADevState, pDrvMount);
1060 GEN_CHECK_OFF(AHCIATADevState, IBase);
1061 GEN_CHECK_OFF(AHCIATADevState, IPort);
1062 GEN_CHECK_OFF(AHCIATADevState, IMountNotify);
1063 GEN_CHECK_OFF(AHCIATADevState, iLUN);
1064 GEN_CHECK_OFF(AHCIATADevState, pDevInsR3);
1065 GEN_CHECK_OFF(AHCIATADevState, pDevInsR0);
1066 GEN_CHECK_OFF(AHCIATADevState, pDevInsRC);
1067 GEN_CHECK_OFF(AHCIATADevState, pControllerR3);
1068 GEN_CHECK_OFF(AHCIATADevState, pControllerR0);
1069 GEN_CHECK_OFF(AHCIATADevState, pControllerRC);
1070 GEN_CHECK_SIZE(AHCIATATransferRequest);
1071 GEN_CHECK_OFF(AHCIATATransferRequest, iIf);
1072 GEN_CHECK_OFF(AHCIATATransferRequest, iBeginTransfer);
1073 GEN_CHECK_OFF(AHCIATATransferRequest, iSourceSink);
1074 GEN_CHECK_OFF(AHCIATATransferRequest, cbTotalTransfer);
1075 GEN_CHECK_OFF(AHCIATATransferRequest, uTxDir);
1076 GEN_CHECK_SIZE(AHCIATAAbortRequest);
1077 GEN_CHECK_OFF(AHCIATAAbortRequest, iIf);
1078 GEN_CHECK_OFF(AHCIATAAbortRequest, fResetDrive);
1079 GEN_CHECK_SIZE(AHCIATARequest);
1080 GEN_CHECK_OFF(AHCIATARequest, ReqType);
1081 GEN_CHECK_OFF(AHCIATARequest, u);
1082 GEN_CHECK_OFF(AHCIATARequest, u.t);
1083 GEN_CHECK_OFF(AHCIATARequest, u.a);
1084 GEN_CHECK_SIZE(AHCIATACONTROLLER);
1085 GEN_CHECK_OFF(AHCIATACONTROLLER, IOPortBase1);
1086 GEN_CHECK_OFF(AHCIATACONTROLLER, IOPortBase2);
1087 GEN_CHECK_OFF(AHCIATACONTROLLER, irq);
1088 GEN_CHECK_OFF(AHCIATACONTROLLER, lock);
1089 GEN_CHECK_OFF(AHCIATACONTROLLER, iSelectedIf);
1090 GEN_CHECK_OFF(AHCIATACONTROLLER, iAIOIf);
1091 GEN_CHECK_OFF(AHCIATACONTROLLER, uAsyncIOState);
1092 GEN_CHECK_OFF(AHCIATACONTROLLER, fChainedTransfer);
1093 GEN_CHECK_OFF(AHCIATACONTROLLER, fReset);
1094 GEN_CHECK_OFF(AHCIATACONTROLLER, fRedo);
1095 GEN_CHECK_OFF(AHCIATACONTROLLER, fRedoIdle);
1096 GEN_CHECK_OFF(AHCIATACONTROLLER, fRedoDMALastDesc);
1097 GEN_CHECK_OFF(AHCIATACONTROLLER, BmDma);
1098 GEN_CHECK_OFF(AHCIATACONTROLLER, pFirstDMADesc);
1099 GEN_CHECK_OFF(AHCIATACONTROLLER, pLastDMADesc);
1100 GEN_CHECK_OFF(AHCIATACONTROLLER, pRedoDMABuffer);
1101 GEN_CHECK_OFF(AHCIATACONTROLLER, cbRedoDMABuffer);
1102 GEN_CHECK_OFF(AHCIATACONTROLLER, aIfs);
1103 GEN_CHECK_OFF(AHCIATACONTROLLER, aIfs[1]);
1104 GEN_CHECK_OFF(AHCIATACONTROLLER, pDevInsR3);
1105 GEN_CHECK_OFF(AHCIATACONTROLLER, pDevInsR0);
1106 GEN_CHECK_OFF(AHCIATACONTROLLER, pDevInsRC);
1107 GEN_CHECK_OFF(AHCIATACONTROLLER, fShutdown);
1108 GEN_CHECK_OFF(AHCIATACONTROLLER, AsyncIOThread);
1109 GEN_CHECK_OFF(AHCIATACONTROLLER, AsyncIOSem);
1110 GEN_CHECK_OFF(AHCIATACONTROLLER, aAsyncIORequests[4]);
1111 GEN_CHECK_OFF(AHCIATACONTROLLER, AsyncIOReqHead);
1112 GEN_CHECK_OFF(AHCIATACONTROLLER, AsyncIOReqTail);
1113 GEN_CHECK_OFF(AHCIATACONTROLLER, AsyncIORequestMutex);
1114 GEN_CHECK_OFF(AHCIATACONTROLLER, SuspendIOSem);
1115 GEN_CHECK_OFF(AHCIATACONTROLLER, DelayIRQMillies);
1116 GEN_CHECK_OFF(AHCIATACONTROLLER, fSignalIdle);
1117 GEN_CHECK_OFF(AHCIATACONTROLLER, StatAsyncOps);
1118 GEN_CHECK_OFF(AHCIATACONTROLLER, StatAsyncMinWait);
1119 GEN_CHECK_OFF(AHCIATACONTROLLER, StatAsyncMaxWait);
1120 GEN_CHECK_OFF(AHCIATACONTROLLER, StatAsyncTimeUS);
1121 GEN_CHECK_OFF(AHCIATACONTROLLER, StatAsyncTime);
1122 GEN_CHECK_OFF(AHCIATACONTROLLER, StatLockWait);
1123
1124 /* Storage/DevAHCI.cpp */
1125
1126 GEN_CHECK_SIZE(AHCIPort);
1127 GEN_CHECK_OFF(AHCIPort, pDevInsR3);
1128 GEN_CHECK_OFF(AHCIPort, pDevInsR0);
1129 GEN_CHECK_OFF(AHCIPort, pDevInsRC);
1130 GEN_CHECK_OFF(AHCIPort, pAhciR3);
1131 GEN_CHECK_OFF(AHCIPort, pAhciR0);
1132 GEN_CHECK_OFF(AHCIPort, pAhciRC);
1133 GEN_CHECK_OFF(AHCIPort, regCLB);
1134 GEN_CHECK_OFF(AHCIPort, regCLBU);
1135 GEN_CHECK_OFF(AHCIPort, regFB);
1136 GEN_CHECK_OFF(AHCIPort, regFBU);
1137 GEN_CHECK_OFF(AHCIPort, regIS);
1138 GEN_CHECK_OFF(AHCIPort, regIE);
1139 GEN_CHECK_OFF(AHCIPort, regCMD);
1140 GEN_CHECK_OFF(AHCIPort, regTFD);
1141 GEN_CHECK_OFF(AHCIPort, regSIG);
1142 GEN_CHECK_OFF(AHCIPort, regSSTS);
1143 GEN_CHECK_OFF(AHCIPort, regSCTL);
1144 GEN_CHECK_OFF(AHCIPort, regSERR);
1145 GEN_CHECK_OFF(AHCIPort, regSACT);
1146 GEN_CHECK_OFF(AHCIPort, regCI);
1147 GEN_CHECK_OFF(AHCIPort, GCPhysAddrClb);
1148 GEN_CHECK_OFF(AHCIPort, GCPhysAddrFb);
1149 GEN_CHECK_OFF(AHCIPort, fAsyncInterface);
1150 GEN_CHECK_OFF(AHCIPort, pAsyncIOThread);
1151 GEN_CHECK_OFF(AHCIPort, AsyncIORequestSem);
1152 GEN_CHECK_OFF(AHCIPort, ahciIOTasks);
1153 GEN_CHECK_OFF(AHCIPort, ahciIOTasks[2*AHCI_NR_COMMAND_SLOTS-1]);
1154 GEN_CHECK_OFF(AHCIPort, uActWritePos);
1155 GEN_CHECK_OFF(AHCIPort, uActReadPos);
1156 GEN_CHECK_OFF(AHCIPort, uActTasksActive);
1157 GEN_CHECK_OFF(AHCIPort, fPoweredOn);
1158 GEN_CHECK_OFF(AHCIPort, fSpunUp);
1159 GEN_CHECK_OFF(AHCIPort, fFirstD2HFisSend);
1160 GEN_CHECK_OFF(AHCIPort, fATAPI);
1161 GEN_CHECK_OFF(AHCIPort, pDrvBase);
1162 GEN_CHECK_OFF(AHCIPort, pDrvBlock);
1163 GEN_CHECK_OFF(AHCIPort, pDrvBlockAsync);
1164 GEN_CHECK_OFF(AHCIPort, pDrvBlockBios);
1165 GEN_CHECK_OFF(AHCIPort, pDrvMount);
1166 GEN_CHECK_OFF(AHCIPort, IBase);
1167 GEN_CHECK_OFF(AHCIPort, IPort);
1168 GEN_CHECK_OFF(AHCIPort, IPortAsync);
1169 GEN_CHECK_OFF(AHCIPort, IMountNotify);
1170 GEN_CHECK_OFF(AHCIPort, PCHSGeometry);
1171 GEN_CHECK_OFF(AHCIPort, Led);
1172 GEN_CHECK_OFF(AHCIPort, cTotalSectors);
1173 GEN_CHECK_OFF(AHCIPort, cMultSectors);
1174 GEN_CHECK_OFF(AHCIPort, uATATransferMode);
1175 GEN_CHECK_OFF(AHCIPort, uATAPISenseKey);
1176 GEN_CHECK_OFF(AHCIPort, uATAPIASC);
1177 GEN_CHECK_OFF(AHCIPort, cNotifiedMediaChange);
1178 GEN_CHECK_OFF(AHCIPort, iLUN);
1179 GEN_CHECK_OFF(AHCIPort, fResetDevice);
1180 GEN_CHECK_OFF(AHCIPort, u32TasksFinished);
1181 GEN_CHECK_OFF(AHCIPort, u32QueuedTasksFinished);
1182 GEN_CHECK_OFF(AHCIPort, StatDMA);
1183 GEN_CHECK_OFF(AHCIPort, StatBytesWritten);
1184 GEN_CHECK_OFF(AHCIPort, StatBytesRead);
1185 GEN_CHECK_OFF(AHCIPort, StatIORequestsPerSecond);
1186#ifdef VBOX_WITH_STATISTICS
1187 GEN_CHECK_OFF(AHCIPort, StatProfileProcessTime);
1188 GEN_CHECK_OFF(AHCIPort, StatProfileMapIntoR3);
1189 GEN_CHECK_OFF(AHCIPort, StatProfileReadWrite);
1190 GEN_CHECK_OFF(AHCIPort, StatProfileDestroyScatterGatherList);
1191#endif
1192 GEN_CHECK_OFF(AHCIPort, fNotificationSend);
1193 GEN_CHECK_OFF(AHCIPort, fPortReset);
1194 GEN_CHECK_OFF(AHCIPort, fAsyncIOThreadIdle);
1195 GEN_CHECK_OFF(AHCIPort, szSerialNumber);
1196 GEN_CHECK_OFF(AHCIPort, szSerialNumber[AHCI_SERIAL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
1197 GEN_CHECK_OFF(AHCIPort, szFirmwareRevision);
1198 GEN_CHECK_OFF(AHCIPort, szFirmwareRevision[AHCI_FIRMWARE_REVISION_LENGTH]); /* One additional byte for the termination.*/
1199 GEN_CHECK_OFF(AHCIPort, szModelNumber);
1200 GEN_CHECK_OFF(AHCIPort, szModelNumber[AHCI_MODEL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
1201 GEN_CHECK_OFF(AHCIPort, szInquiryVendorId[AHCI_ATAPI_INQUIRY_VENDOR_ID_LENGTH]);
1202 GEN_CHECK_OFF(AHCIPort, szInquiryProductId);
1203 GEN_CHECK_OFF(AHCIPort, szInquiryProductId[AHCI_ATAPI_INQUIRY_PRODUCT_ID_LENGTH]);
1204 GEN_CHECK_OFF(AHCIPort, szInquiryRevision);
1205 GEN_CHECK_OFF(AHCIPort, szInquiryRevision[AHCI_ATAPI_INQUIRY_REVISION_LENGTH]);
1206
1207 GEN_CHECK_SIZE(AHCI);
1208 GEN_CHECK_OFF(AHCI, dev);
1209 GEN_CHECK_OFF(AHCI, pDevInsR3);
1210 GEN_CHECK_OFF(AHCI, pDevInsR0);
1211 GEN_CHECK_OFF(AHCI, pDevInsRC);
1212 GEN_CHECK_OFF(AHCI, IBase);
1213 GEN_CHECK_OFF(AHCI, ILeds);
1214 GEN_CHECK_OFF(AHCI, pLedsConnector);
1215 GEN_CHECK_OFF(AHCI, MMIOBase);
1216 GEN_CHECK_OFF(AHCI, regHbaCap);
1217 GEN_CHECK_OFF(AHCI, regHbaCtrl);
1218 GEN_CHECK_OFF(AHCI, regHbaIs);
1219 GEN_CHECK_OFF(AHCI, regHbaPi);
1220 GEN_CHECK_OFF(AHCI, regHbaVs);
1221 GEN_CHECK_OFF(AHCI, regHbaCccCtl);
1222 GEN_CHECK_OFF(AHCI, regHbaCccPorts);
1223 GEN_CHECK_OFF(AHCI, pHbaCccTimerR3);
1224 GEN_CHECK_OFF(AHCI, pHbaCccTimerR0);
1225 GEN_CHECK_OFF(AHCI, pHbaCccTimerRC);
1226 GEN_CHECK_OFF(AHCI, pNotifierQueueR3);
1227 GEN_CHECK_OFF(AHCI, pNotifierQueueR0);
1228 GEN_CHECK_OFF(AHCI, pNotifierQueueRC);
1229 GEN_CHECK_OFF(AHCI, uCccPortNr);
1230 GEN_CHECK_OFF(AHCI, uCccTimeout);
1231 GEN_CHECK_OFF(AHCI, uCccNr);
1232 GEN_CHECK_OFF(AHCI, uCccCurrentNr);
1233 GEN_CHECK_OFF(AHCI, ahciPort);
1234 GEN_CHECK_OFF(AHCI, ahciPort[AHCI_MAX_NR_PORTS_IMPL-1]);
1235 GEN_CHECK_OFF(AHCI, aCts);
1236 GEN_CHECK_OFF(AHCI, aCts[1]);
1237 GEN_CHECK_OFF(AHCI, lock);
1238 GEN_CHECK_OFF(AHCI, u32PortsInterrupted);
1239 GEN_CHECK_OFF(AHCI, fReset);
1240 GEN_CHECK_OFF(AHCI, f64BitAddr);
1241 GEN_CHECK_OFF(AHCI, fGCEnabled);
1242 GEN_CHECK_OFF(AHCI, fR0Enabled);
1243 GEN_CHECK_OFF(AHCI, fSignalIdle);
1244 GEN_CHECK_OFF(AHCI, cPortsImpl);
1245 GEN_CHECK_OFF(AHCI, f8ByteMMIO4BytesWrittenSuccessfully);
1246 GEN_CHECK_OFF(AHCI, cHighIOThreshold);
1247 GEN_CHECK_OFF(AHCI, cMillisToSleep);
1248#endif /* VBOX_WITH_AHCI */
1249
1250#ifdef VBOX_WITH_E1000
1251 GEN_CHECK_SIZE(EEPROM93C46);
1252 GEN_CHECK_OFF(EEPROM93C46, m_eState);
1253 GEN_CHECK_OFF(EEPROM93C46, m_au16Data);
1254 GEN_CHECK_OFF(EEPROM93C46, m_fWriteEnabled);
1255 GEN_CHECK_OFF(EEPROM93C46, m_u16Word);
1256 GEN_CHECK_OFF(EEPROM93C46, m_u16Mask);
1257 GEN_CHECK_OFF(EEPROM93C46, m_u16Addr);
1258 GEN_CHECK_OFF(EEPROM93C46, m_u32InternalWires);
1259 GEN_CHECK_OFF(EEPROM93C46, m_eOp);
1260
1261 GEN_CHECK_SIZE(E1KSTATE);
1262 GEN_CHECK_OFF(E1KSTATE, IBase);
1263 GEN_CHECK_OFF(E1KSTATE, INetworkPort);
1264 GEN_CHECK_OFF(E1KSTATE, INetworkConfig);
1265 GEN_CHECK_OFF(E1KSTATE, ILeds);
1266 GEN_CHECK_OFF(E1KSTATE, pDrvBase);
1267 GEN_CHECK_OFF(E1KSTATE, pDrv);
1268 GEN_CHECK_OFF(E1KSTATE, pLedsConnector);
1269 GEN_CHECK_OFF(E1KSTATE, pDevInsR3);
1270 GEN_CHECK_OFF(E1KSTATE, pDevInsR0);
1271 GEN_CHECK_OFF(E1KSTATE, pDevInsRC);
1272 GEN_CHECK_OFF(E1KSTATE, pTxQueueR3);
1273 GEN_CHECK_OFF(E1KSTATE, pTxQueueR0);
1274 GEN_CHECK_OFF(E1KSTATE, pTxQueueRC);
1275 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR3);
1276 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR0);
1277 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueRC);
1278 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR3);
1279 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR0);
1280 GEN_CHECK_OFF(E1KSTATE, pRIDTimerRC);
1281 GEN_CHECK_OFF(E1KSTATE, pRADTimerR3);
1282 GEN_CHECK_OFF(E1KSTATE, pRADTimerR0);
1283 GEN_CHECK_OFF(E1KSTATE, pRADTimerRC);
1284 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR3);
1285 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR0);
1286 GEN_CHECK_OFF(E1KSTATE, pTIDTimerRC);
1287 GEN_CHECK_OFF(E1KSTATE, pTADTimerR3);
1288 GEN_CHECK_OFF(E1KSTATE, pTADTimerR0);
1289 GEN_CHECK_OFF(E1KSTATE, pTADTimerRC);
1290 GEN_CHECK_OFF(E1KSTATE, pIntTimerR3);
1291 GEN_CHECK_OFF(E1KSTATE, pIntTimerR0);
1292 GEN_CHECK_OFF(E1KSTATE, pIntTimerRC);
1293 GEN_CHECK_OFF(E1KSTATE, pLUTimer);
1294 GEN_CHECK_OFF(E1KSTATE, pTxThread);
1295 GEN_CHECK_OFF(E1KSTATE, cs);
1296#ifndef E1K_GLOBAL_MUTEX
1297 GEN_CHECK_OFF(E1KSTATE, csRx);
1298#endif
1299 GEN_CHECK_OFF(E1KSTATE, hTxSem);
1300 GEN_CHECK_OFF(E1KSTATE, addrMMReg);
1301 GEN_CHECK_OFF(E1KSTATE, macConfigured);
1302 GEN_CHECK_OFF(E1KSTATE, addrIOPort);
1303 GEN_CHECK_OFF(E1KSTATE, pciDevice);
1304 GEN_CHECK_OFF(E1KSTATE, u64AckedAt);
1305 GEN_CHECK_OFF(E1KSTATE, fIntRaised);
1306 GEN_CHECK_OFF(E1KSTATE, fCableConnected);
1307 GEN_CHECK_OFF(E1KSTATE, fR0Enabled);
1308 GEN_CHECK_OFF(E1KSTATE, fGCEnabled);
1309 GEN_CHECK_OFF(E1KSTATE, auRegs[E1K_NUM_OF_32BIT_REGS]);
1310 GEN_CHECK_OFF(E1KSTATE, led);
1311 GEN_CHECK_OFF(E1KSTATE, u32PktNo);
1312 GEN_CHECK_OFF(E1KSTATE, uSelectedReg);
1313 GEN_CHECK_OFF(E1KSTATE, auMTA[128]);
1314 GEN_CHECK_OFF(E1KSTATE, aRecAddr);
1315 GEN_CHECK_OFF(E1KSTATE, auVFTA[128]);
1316 GEN_CHECK_OFF(E1KSTATE, u16RxBSize);
1317 GEN_CHECK_OFF(E1KSTATE, fLocked);
1318 GEN_CHECK_OFF(E1KSTATE, fDelayInts);
1319 GEN_CHECK_OFF(E1KSTATE, fIntMaskUsed);
1320 GEN_CHECK_OFF(E1KSTATE, fMaybeOutOfSpace);
1321 GEN_CHECK_OFF(E1KSTATE, hEventMoreRxDescAvail);
1322 GEN_CHECK_OFF(E1KSTATE, contextTSE);
1323 GEN_CHECK_OFF(E1KSTATE, contextNormal);
1324 GEN_CHECK_OFF(E1KSTATE, aTxPacket[E1K_MAX_TX_PKT_SIZE]);
1325 GEN_CHECK_OFF(E1KSTATE, u16TxPktLen);
1326 GEN_CHECK_OFF(E1KSTATE, fIPcsum);
1327 GEN_CHECK_OFF(E1KSTATE, fTCPcsum);
1328 GEN_CHECK_OFF(E1KSTATE, u32PayRemain);
1329 GEN_CHECK_OFF(E1KSTATE, u16HdrRemain);
1330 GEN_CHECK_OFF(E1KSTATE, u16SavedFlags);
1331 GEN_CHECK_OFF(E1KSTATE, u32SavedCsum);
1332 GEN_CHECK_OFF(E1KSTATE, eeprom);
1333 GEN_CHECK_OFF(E1KSTATE, phy);
1334#endif /* VBOX_WITH_E1000 */
1335
1336#ifdef VBOX_WITH_VIRTIO
1337 GEN_CHECK_OFF(VPCISTATE, cs);
1338 GEN_CHECK_OFF(VPCISTATE, szInstance);
1339 GEN_CHECK_OFF(VPCISTATE, IBase);
1340 GEN_CHECK_OFF(VPCISTATE, ILeds);
1341 GEN_CHECK_OFF(VPCISTATE, pLedsConnector);
1342 GEN_CHECK_OFF(VPCISTATE, pDevInsR3);
1343 GEN_CHECK_OFF(VPCISTATE, pDevInsR0);
1344 GEN_CHECK_OFF(VPCISTATE, pDevInsRC);
1345 GEN_CHECK_OFF(VPCISTATE, pciDevice);
1346 GEN_CHECK_OFF(VPCISTATE, addrIOPort);
1347 GEN_CHECK_OFF(VPCISTATE, led);
1348 GEN_CHECK_OFF(VPCISTATE, uGuestFeatures);
1349 GEN_CHECK_OFF(VPCISTATE, uQueueSelector);
1350 GEN_CHECK_OFF(VPCISTATE, uStatus);
1351 GEN_CHECK_OFF(VPCISTATE, uISR);
1352 GEN_CHECK_OFF(VPCISTATE, Queues);
1353 GEN_CHECK_OFF(VPCISTATE, Queues[VIRTIO_MAX_NQUEUES]);
1354 GEN_CHECK_OFF(VNETSTATE, VPCI);
1355 GEN_CHECK_OFF(VNETSTATE, INetworkPort);
1356 GEN_CHECK_OFF(VNETSTATE, INetworkConfig);
1357 GEN_CHECK_OFF(VNETSTATE, pDrvBase);
1358 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR3);
1359 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR0);
1360 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueRC);
1361 GEN_CHECK_OFF(VNETSTATE, pTxBuf);
1362 GEN_CHECK_OFF(VNETSTATE, pLinkUpTimer);
1363#ifdef VNET_TX_DELAY
1364 GEN_CHECK_OFF(VNETSTATE, pTxTimerR3);
1365 GEN_CHECK_OFF(VNETSTATE, pTxTimerR0);
1366 GEN_CHECK_OFF(VNETSTATE, pTxTimerRC);
1367#endif /* VNET_TX_DELAY */
1368 GEN_CHECK_OFF(VNETSTATE, config);
1369 GEN_CHECK_OFF(VNETSTATE, macConfigured);
1370 GEN_CHECK_OFF(VNETSTATE, fCableConnected);
1371 GEN_CHECK_OFF(VNETSTATE, u32PktNo);
1372 GEN_CHECK_OFF(VNETSTATE, fPromiscuous);
1373 GEN_CHECK_OFF(VNETSTATE, fAllMulti);
1374 GEN_CHECK_OFF(VNETSTATE, pRxQueue);
1375 GEN_CHECK_OFF(VNETSTATE, pTxQueue);
1376 GEN_CHECK_OFF(VNETSTATE, pCtlQueue);
1377 GEN_CHECK_OFF(VNETSTATE, fMaybeOutOfSpace);
1378 GEN_CHECK_OFF(VNETSTATE, hEventMoreRxDescAvail);
1379#endif /* VBOX_WITH_VIRTIO */
1380
1381#ifdef VBOX_WITH_SCSI
1382 GEN_CHECK_SIZE(VBOXSCSI);
1383 GEN_CHECK_OFF(VBOXSCSI, regIdentify);
1384 GEN_CHECK_OFF(VBOXSCSI, uTargetDevice);
1385 GEN_CHECK_OFF(VBOXSCSI, uTxDir);
1386 GEN_CHECK_OFF(VBOXSCSI, cbCDB);
1387 GEN_CHECK_OFF(VBOXSCSI, aCDB);
1388 GEN_CHECK_OFF(VBOXSCSI, aCDB[11]);
1389 GEN_CHECK_OFF(VBOXSCSI, iCDB);
1390 GEN_CHECK_OFF(VBOXSCSI, pBuf);
1391 GEN_CHECK_OFF(VBOXSCSI, cbBuf);
1392 GEN_CHECK_OFF(VBOXSCSI, iBuf);
1393 GEN_CHECK_OFF(VBOXSCSI, fBusy);
1394 GEN_CHECK_OFF(VBOXSCSI, enmState);
1395#endif
1396
1397#ifdef VBOX_WITH_BUSLOGIC
1398 GEN_CHECK_SIZE(BUSLOGICDEVICE);
1399 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR3);
1400 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR0);
1401 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicRC);
1402 GEN_CHECK_OFF(BUSLOGICDEVICE, fPresent);
1403 GEN_CHECK_OFF(BUSLOGICDEVICE, iLUN);
1404 GEN_CHECK_OFF(BUSLOGICDEVICE, IBase);
1405 GEN_CHECK_OFF(BUSLOGICDEVICE, ISCSIPort);
1406 GEN_CHECK_OFF(BUSLOGICDEVICE, ILed);
1407 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvBase);
1408 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvSCSIConnector);
1409 GEN_CHECK_OFF(BUSLOGICDEVICE, Led);
1410 GEN_CHECK_OFF(BUSLOGICDEVICE, cOutstandingRequests);
1411
1412 GEN_CHECK_SIZE(BUSLOGIC);
1413 GEN_CHECK_OFF(BUSLOGIC, dev);
1414 GEN_CHECK_OFF(BUSLOGIC, pDevInsR3);
1415 GEN_CHECK_OFF(BUSLOGIC, pDevInsR0);
1416 GEN_CHECK_OFF(BUSLOGIC, pDevInsRC);
1417 GEN_CHECK_OFF(BUSLOGIC, IOPortBase);
1418 GEN_CHECK_OFF(BUSLOGIC, MMIOBase);
1419 GEN_CHECK_OFF(BUSLOGIC, regStatus);
1420 GEN_CHECK_OFF(BUSLOGIC, regInterrupt);
1421 GEN_CHECK_OFF(BUSLOGIC, regGeometry);
1422 GEN_CHECK_OFF(BUSLOGIC, LocalRam);
1423 GEN_CHECK_OFF(BUSLOGIC, uOperationCode);
1424 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer);
1425 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer[BUSLOGIC_COMMAND_SIZE_MAX]);
1426 GEN_CHECK_OFF(BUSLOGIC, iParameter);
1427 GEN_CHECK_OFF(BUSLOGIC, cbCommandParametersLeft);
1428 GEN_CHECK_OFF(BUSLOGIC, fUseLocalRam);
1429 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer);
1430 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer[BUSLOGIC_REPLY_SIZE_MAX]);
1431 GEN_CHECK_OFF(BUSLOGIC, iReply);
1432 GEN_CHECK_OFF(BUSLOGIC, cbReplyParametersLeft);
1433 GEN_CHECK_OFF(BUSLOGIC, fIRQEnabled);
1434 GEN_CHECK_OFF(BUSLOGIC, cMailbox);
1435 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxOutgoingBase);
1436 GEN_CHECK_OFF(BUSLOGIC, uMailboxOutgoingPositionCurrent);
1437 GEN_CHECK_OFF(BUSLOGIC, cMailboxesReady);
1438 GEN_CHECK_OFF(BUSLOGIC, fNotificationSend);
1439 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxIncomingBase);
1440 GEN_CHECK_OFF(BUSLOGIC, uMailboxIncomingPositionCurrent);
1441 GEN_CHECK_OFF(BUSLOGIC, fStrictRoundRobinMode);
1442 GEN_CHECK_OFF(BUSLOGIC, fExtendedLunCCBFormat);
1443 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR3);
1444 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR0);
1445 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueRC);
1446 GEN_CHECK_OFF(BUSLOGIC, pTaskCache);
1447 GEN_CHECK_OFF(BUSLOGIC, VBoxSCSI);
1448 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates);
1449 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates[BUSLOGIC_MAX_DEVICES-1]);
1450 GEN_CHECK_OFF(BUSLOGIC, IBase);
1451 GEN_CHECK_OFF(BUSLOGIC, ILeds);
1452 GEN_CHECK_OFF(BUSLOGIC, pLedsConnector);
1453#endif /* VBOX_WITH_BUSLOGIC */
1454
1455#ifdef VBOX_WITH_LSILOGIC
1456 GEN_CHECK_SIZE(LSILOGICDEVICE);
1457 GEN_CHECK_OFF(LSILOGICDEVICE, pLsiLogicR3);
1458 GEN_CHECK_OFF(LSILOGICDEVICE, pLsiLogicR0);
1459 GEN_CHECK_OFF(LSILOGICDEVICE, pLsiLogicRC);
1460 GEN_CHECK_OFF(LSILOGICDEVICE, iLUN);
1461 GEN_CHECK_OFF(LSILOGICDEVICE, cOutstandingRequests);
1462 GEN_CHECK_OFF(LSILOGICDEVICE, IBase);
1463 GEN_CHECK_OFF(LSILOGICDEVICE, ISCSIPort);
1464 GEN_CHECK_OFF(LSILOGICDEVICE, ILed);
1465 GEN_CHECK_OFF(LSILOGICDEVICE, pDrvBase);
1466 GEN_CHECK_OFF(LSILOGICDEVICE, pDrvSCSIConnector);
1467 GEN_CHECK_OFF(LSILOGICDEVICE, Led);
1468
1469 GEN_CHECK_SIZE(LSILOGICSCSI);
1470 GEN_CHECK_OFF(LSILOGICSCSI, PciDev);
1471 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsR3);
1472 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsR0);
1473 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsRC);
1474 GEN_CHECK_OFF(LSILOGICSCSI, fGCEnabled);
1475 GEN_CHECK_OFF(LSILOGICSCSI, fR0Enabled);
1476 GEN_CHECK_OFF(LSILOGICSCSI, enmState);
1477 GEN_CHECK_OFF(LSILOGICSCSI, enmWhoInit);
1478 GEN_CHECK_OFF(LSILOGICSCSI, fDoorbellInProgress);
1479 GEN_CHECK_OFF(LSILOGICSCSI, fDiagnosticEnabled);
1480 GEN_CHECK_OFF(LSILOGICSCSI, fNotificationSend);
1481 GEN_CHECK_OFF(LSILOGICSCSI, fEventNotificationEnabled);
1482 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueR3);
1483 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueR0);
1484 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueRC);
1485 GEN_CHECK_OFF(LSILOGICSCSI, aDeviceStates);
1486 GEN_CHECK_OFF(LSILOGICSCSI, aDeviceStates[LSILOGIC_DEVICES_MAX-1]);
1487 GEN_CHECK_OFF(LSILOGICSCSI, GCPhysMMIOBase);
1488 GEN_CHECK_OFF(LSILOGICSCSI, IOPortBase);
1489 GEN_CHECK_OFF(LSILOGICSCSI, uInterruptMask);
1490 GEN_CHECK_OFF(LSILOGICSCSI, uInterruptStatus);
1491 GEN_CHECK_OFF(LSILOGICSCSI, aMessage);
1492 GEN_CHECK_OFF(LSILOGICSCSI, aMessage[sizeof(MptConfigurationRequest)-1]);
1493 GEN_CHECK_OFF(LSILOGICSCSI, iMessage);
1494 GEN_CHECK_OFF(LSILOGICSCSI, cMessage);
1495 GEN_CHECK_OFF(LSILOGICSCSI, ReplyBuffer);
1496 GEN_CHECK_OFF(LSILOGICSCSI, uNextReplyEntryRead);
1497 GEN_CHECK_OFF(LSILOGICSCSI, cReplySize);
1498 GEN_CHECK_OFF(LSILOGICSCSI, u16IOCFaultCode);
1499 GEN_CHECK_OFF(LSILOGICSCSI, u32HostMFAHighAddr);
1500 GEN_CHECK_OFF(LSILOGICSCSI, u32SenseBufferHighAddr);
1501 GEN_CHECK_OFF(LSILOGICSCSI, cMaxDevices);
1502 GEN_CHECK_OFF(LSILOGICSCSI, cMaxBuses);
1503 GEN_CHECK_OFF(LSILOGICSCSI, cbReplyFrame);
1504 GEN_CHECK_OFF(LSILOGICSCSI, iDiagnosticAccess);
1505 GEN_CHECK_OFF(LSILOGICSCSI, cReplyQueueEntries);
1506 GEN_CHECK_OFF(LSILOGICSCSI, cRequestQueueEntries);
1507 GEN_CHECK_OFF(LSILOGICSCSI, ReplyPostQueueCritSect);
1508 GEN_CHECK_OFF(LSILOGICSCSI, ReplyFreeQueueCritSect);
1509 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseR3);
1510 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseR3);
1511 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseR3);
1512 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseR0);
1513 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseR0);
1514 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseR0);
1515 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseRC);
1516 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseRC);
1517 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseRC);
1518 GEN_CHECK_OFF(LSILOGICSCSI, uReplyFreeQueueNextEntryFreeWrite);
1519 GEN_CHECK_OFF(LSILOGICSCSI, uReplyFreeQueueNextAddressRead);
1520 GEN_CHECK_OFF(LSILOGICSCSI, uReplyPostQueueNextEntryFreeWrite);
1521 GEN_CHECK_OFF(LSILOGICSCSI, uReplyPostQueueNextAddressRead);
1522 GEN_CHECK_OFF(LSILOGICSCSI, uRequestQueueNextEntryFreeWrite);
1523 GEN_CHECK_OFF(LSILOGICSCSI, uRequestQueueNextAddressRead);
1524 GEN_CHECK_OFF(LSILOGICSCSI, ConfigurationPages);
1525 GEN_CHECK_OFF(LSILOGICSCSI, VBoxSCSI);
1526 GEN_CHECK_OFF(LSILOGICSCSI, pTaskCache);
1527 GEN_CHECK_OFF(LSILOGICSCSI, IBase);
1528 GEN_CHECK_OFF(LSILOGICSCSI, ILeds);
1529 GEN_CHECK_OFF(LSILOGICSCSI, pLedsConnector);
1530#endif /* VBOX_WITH_LSILOGIC */
1531
1532#ifdef VBOX_WITH_HPET
1533 GEN_CHECK_SIZE(HpetState);
1534 GEN_CHECK_OFF(HpetState, pDevInsR3);
1535 GEN_CHECK_OFF(HpetState, pDevInsR0);
1536 GEN_CHECK_OFF(HpetState, pDevInsRC);
1537 GEN_CHECK_OFF(HpetState, u64HpetOffset);
1538 GEN_CHECK_OFF(HpetState, u64Capabilities);
1539 GEN_CHECK_OFF(HpetState, u64Config);
1540 GEN_CHECK_OFF(HpetState, u64Isr);
1541 GEN_CHECK_OFF(HpetState, u64HpetCounter);
1542
1543 GEN_CHECK_SIZE(HpetTimer);
1544 GEN_CHECK_OFF(HpetTimer, pTimerR3);
1545 GEN_CHECK_OFF(HpetTimer, pHpetR3);
1546 GEN_CHECK_OFF(HpetTimer, pTimerR0);
1547 GEN_CHECK_OFF(HpetTimer, pHpetR0);
1548 GEN_CHECK_OFF(HpetTimer, pTimerRC);
1549 GEN_CHECK_OFF(HpetTimer, pHpetRC);
1550 GEN_CHECK_OFF(HpetTimer, u8TimerNumber);
1551 GEN_CHECK_OFF(HpetTimer, u64Config);
1552 GEN_CHECK_OFF(HpetTimer, u64Cmp);
1553 GEN_CHECK_OFF(HpetTimer, u64Fsb);
1554 GEN_CHECK_OFF(HpetTimer, u64Period);
1555 GEN_CHECK_OFF(HpetTimer, u8Wrap);
1556#endif
1557
1558 return (0);
1559}
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