VirtualBox

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

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

DevPCI: Put the bridge cache array on the normal heap.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 46.0 KB
Line 
1/* $Id: tstDeviceStructSizeGC.cpp 13404 2008-10-20 17:58:02Z 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 "../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_BUSLOGIC
81# undef LOG_GROUP
82# include "../Storage/DevBusLogic.cpp"
83#endif
84
85/* we don't use iprt here because we're pretending to be in GC! */
86#include <stdio.h>
87
88#define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
89#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
90#define GEN_CHECK_PADDING(s, m) printf(" CHECK_PADDING(%s, %s);\n", #s, #m)
91
92int main()
93{
94 /* misc */
95 GEN_CHECK_SIZE(PDMDEVINS);
96 GEN_CHECK_OFF(PDMDEVINS, Internal);
97 GEN_CHECK_OFF(PDMDEVINS, pDevReg);
98 GEN_CHECK_OFF(PDMDEVINS, pCfgHandle);
99 GEN_CHECK_OFF(PDMDEVINS, iInstance);
100 GEN_CHECK_OFF(PDMDEVINS, IBase);
101 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR3);
102 GEN_CHECK_OFF(PDMDEVINS, pDevHlpR0);
103 GEN_CHECK_OFF(PDMDEVINS, pDevHlpRC);
104 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR3);
105 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR0);
106 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataRC);
107 GEN_CHECK_OFF(PDMDEVINS, achInstanceData);
108
109 /* DevPCI.cpp */
110 GEN_CHECK_SIZE(PCIDEVICE);
111 GEN_CHECK_SIZE(PCIDEVICEINT);
112 GEN_CHECK_SIZE(PCIIOREGION);
113 GEN_CHECK_OFF(PCIDEVICE, config);
114 GEN_CHECK_OFF(PCIDEVICE, devfn);
115 GEN_CHECK_OFF(PCIDEVICE, name);
116 GEN_CHECK_OFF(PCIDEVICE, pDevIns);
117 GEN_CHECK_OFF(PCIDEVICE, Int);
118 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions);
119 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[1]);
120 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[PCI_NUM_REGIONS - 1]);
121 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].addr);
122 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].size);
123 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].type);
124 GEN_CHECK_OFF(PCIDEVICE, Int.s.aIORegions[0].padding);
125 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusR3);
126 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusR0);
127 GEN_CHECK_OFF(PCIDEVICE, Int.s.pBusRC);
128 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigRead);
129 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnConfigWrite);
130 GEN_CHECK_OFF(PCIDEVICE, Int.s.fRequestedDevFn);
131 GEN_CHECK_OFF(PCIDEVICE, Int.s.fPciToPciBridge);
132 GEN_CHECK_OFF(PCIDEVICE, Int.s.uIrqPinState);
133 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigRead);
134 GEN_CHECK_OFF(PCIDEVICE, Int.s.pfnBridgeConfigWrite);
135 GEN_CHECK_PADDING(PCIDEVICE, Int);
136 GEN_CHECK_SIZE(PIIX3State);
137 GEN_CHECK_SIZE(PCIBUS);
138 GEN_CHECK_OFF(PCIBUS, iBus);
139 GEN_CHECK_OFF(PCIBUS, iDevSearch);
140 GEN_CHECK_OFF(PCIBUS, cBridges);
141 GEN_CHECK_OFF(PCIBUS, devices);
142 GEN_CHECK_OFF(PCIBUS, devices[1]);
143 GEN_CHECK_OFF(PCIBUS, pDevInsR3);
144 GEN_CHECK_OFF(PCIBUS, pPciHlpR3);
145 GEN_CHECK_OFF(PCIBUS, papBridgesR3);
146 GEN_CHECK_OFF(PCIBUS, pDevInsR0);
147 GEN_CHECK_OFF(PCIBUS, pPciHlpR0);
148 GEN_CHECK_OFF(PCIBUS, pDevInsRC);
149 GEN_CHECK_OFF(PCIBUS, pPciHlpRC);
150 GEN_CHECK_OFF(PCIBUS, PciDev);
151 GEN_CHECK_SIZE(PCIGLOBALS);
152 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_io_addr);
153 GEN_CHECK_OFF(PCIGLOBALS, pci_bios_mem_addr);
154 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels);
155 GEN_CHECK_OFF(PCIGLOBALS, pci_irq_levels[1]);
156 GEN_CHECK_OFF(PCIGLOBALS, fUseIoApic);
157 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels);
158 GEN_CHECK_OFF(PCIGLOBALS, pci_apic_irq_levels[1]);
159 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq_level);
160 GEN_CHECK_OFF(PCIGLOBALS, acpi_irq);
161 GEN_CHECK_OFF(PCIGLOBALS, uConfigReg);
162 GEN_CHECK_OFF(PCIGLOBALS, pDevInsR3);
163 GEN_CHECK_OFF(PCIGLOBALS, pDevInsR0);
164 GEN_CHECK_OFF(PCIGLOBALS, pDevInsRC);
165 GEN_CHECK_OFF(PCIGLOBALS, PIIX3State);
166 GEN_CHECK_OFF(PCIGLOBALS, PciBus);
167
168 /* DevVGA.cpp */
169 GEN_CHECK_SIZE(VGASTATE);
170 GEN_CHECK_OFF(VGASTATE, vram_ptrR3);
171 GEN_CHECK_OFF(VGASTATE, vram_size);
172 GEN_CHECK_OFF(VGASTATE, latch);
173 GEN_CHECK_OFF(VGASTATE, sr_index);
174 GEN_CHECK_OFF(VGASTATE, sr);
175 GEN_CHECK_OFF(VGASTATE, sr[1]);
176 GEN_CHECK_OFF(VGASTATE, gr_index);
177 GEN_CHECK_OFF(VGASTATE, gr);
178 GEN_CHECK_OFF(VGASTATE, gr[1]);
179 GEN_CHECK_OFF(VGASTATE, ar_index);
180 GEN_CHECK_OFF(VGASTATE, ar);
181 GEN_CHECK_OFF(VGASTATE, ar[1]);
182 GEN_CHECK_OFF(VGASTATE, ar_flip_flop);
183 GEN_CHECK_OFF(VGASTATE, cr_index);
184 GEN_CHECK_OFF(VGASTATE, cr);
185 GEN_CHECK_OFF(VGASTATE, cr[1]);
186 GEN_CHECK_OFF(VGASTATE, msr);
187 GEN_CHECK_OFF(VGASTATE, msr);
188 GEN_CHECK_OFF(VGASTATE, fcr);
189 GEN_CHECK_OFF(VGASTATE, st00);
190 GEN_CHECK_OFF(VGASTATE, st01);
191 GEN_CHECK_OFF(VGASTATE, dac_state);
192 GEN_CHECK_OFF(VGASTATE, dac_sub_index);
193 GEN_CHECK_OFF(VGASTATE, dac_read_index);
194 GEN_CHECK_OFF(VGASTATE, dac_write_index);
195 GEN_CHECK_OFF(VGASTATE, dac_cache);
196 GEN_CHECK_OFF(VGASTATE, dac_cache[1]);
197 GEN_CHECK_OFF(VGASTATE, palette);
198 GEN_CHECK_OFF(VGASTATE, palette[1]);
199 GEN_CHECK_OFF(VGASTATE, bank_offset);
200 GEN_CHECK_OFF(VGASTATE, get_bpp);
201 GEN_CHECK_OFF(VGASTATE, get_offsets);
202 GEN_CHECK_OFF(VGASTATE, get_resolution);
203#ifdef CONFIG_BOCHS_VBE
204 GEN_CHECK_OFF(VGASTATE, vbe_index);
205 GEN_CHECK_OFF(VGASTATE, vbe_regs);
206 GEN_CHECK_OFF(VGASTATE, vbe_regs[1]);
207 GEN_CHECK_OFF(VGASTATE, vbe_regs[VBE_DISPI_INDEX_NB - 1]);
208 GEN_CHECK_OFF(VGASTATE, vbe_start_addr);
209 GEN_CHECK_OFF(VGASTATE, vbe_line_offset);
210 GEN_CHECK_OFF(VGASTATE, vbe_bank_mask);
211#endif
212 GEN_CHECK_OFF(VGASTATE, font_offsets);
213 GEN_CHECK_OFF(VGASTATE, font_offsets[1]);
214 GEN_CHECK_OFF(VGASTATE, graphic_mode);
215 GEN_CHECK_OFF(VGASTATE, shift_control);
216 GEN_CHECK_OFF(VGASTATE, double_scan);
217 GEN_CHECK_OFF(VGASTATE, line_offset);
218 GEN_CHECK_OFF(VGASTATE, line_compare);
219 GEN_CHECK_OFF(VGASTATE, start_addr);
220 GEN_CHECK_OFF(VGASTATE, plane_updated);
221 GEN_CHECK_OFF(VGASTATE, last_cw);
222 GEN_CHECK_OFF(VGASTATE, last_ch);
223 GEN_CHECK_OFF(VGASTATE, last_width);
224 GEN_CHECK_OFF(VGASTATE, last_height);
225 GEN_CHECK_OFF(VGASTATE, last_scr_width);
226 GEN_CHECK_OFF(VGASTATE, last_scr_height);
227 GEN_CHECK_OFF(VGASTATE, last_bpp);
228 GEN_CHECK_OFF(VGASTATE, cursor_start);
229 GEN_CHECK_OFF(VGASTATE, cursor_end);
230 GEN_CHECK_OFF(VGASTATE, cursor_offset);
231 GEN_CHECK_OFF(VGASTATE, rgb_to_pixel);
232 GEN_CHECK_OFF(VGASTATE, invalidated_y_table);
233 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[1]);
234 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[(VGA_MAX_HEIGHT / 32) - 1]);
235 GEN_CHECK_OFF(VGASTATE, cursor_invalidate);
236 GEN_CHECK_OFF(VGASTATE, cursor_draw_line);
237 GEN_CHECK_OFF(VGASTATE, last_palette);
238 GEN_CHECK_OFF(VGASTATE, last_palette[1]);
239 GEN_CHECK_OFF(VGASTATE, last_ch_attr);
240 GEN_CHECK_OFF(VGASTATE, last_ch_attr[CH_ATTR_SIZE - 1]);
241 GEN_CHECK_OFF(VGASTATE, u32Marker);
242 GEN_CHECK_OFF(VGASTATE, GCPhysVRAM);
243 GEN_CHECK_OFF(VGASTATE, vram_ptrR0);
244 GEN_CHECK_OFF(VGASTATE, vram_ptrRC);
245 GEN_CHECK_OFF(VGASTATE, fLFBUpdated);
246 GEN_CHECK_OFF(VGASTATE, fGCEnabled);
247 GEN_CHECK_OFF(VGASTATE, fR0Enabled);
248 GEN_CHECK_OFF(VGASTATE, RCPtrLFBHandler);
249 GEN_CHECK_OFF(VGASTATE, fHaveDirtyBits);
250 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap);
251 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[1]);
252 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[(VGA_VRAM_MAX / PAGE_SIZE / 32) - 1]);
253 GEN_CHECK_OFF(VGASTATE, pDevInsR3);
254 GEN_CHECK_OFF(VGASTATE, pDevInsR0);
255 GEN_CHECK_OFF(VGASTATE, pDevInsRC);
256 GEN_CHECK_OFF(VGASTATE, Base);
257 GEN_CHECK_OFF(VGASTATE, Port);
258 GEN_CHECK_OFF(VGASTATE, pDrvBase);
259 GEN_CHECK_OFF(VGASTATE, pDrv);
260 GEN_CHECK_OFF(VGASTATE, RefreshTimer);
261 GEN_CHECK_OFF(VGASTATE, cMilliesRefreshInterval);
262 GEN_CHECK_OFF(VGASTATE, fRenderVRAM);
263 GEN_CHECK_OFF(VGASTATE, Dev);
264 GEN_CHECK_OFF(VGASTATE, StatGCMemoryRead);
265 GEN_CHECK_OFF(VGASTATE, StatGCMemoryWrite);
266 GEN_CHECK_OFF(VGASTATE, StatGCIOPortRead);
267 GEN_CHECK_OFF(VGASTATE, StatGCIOPortWrite);
268#ifdef VBE_BYTEWISE_IO
269 GEN_CHECK_OFF(VGASTATE, fReadVBEData);
270 GEN_CHECK_OFF(VGASTATE, fWriteVBEData);
271 GEN_CHECK_OFF(VGASTATE, fReadVBEIndex);
272 GEN_CHECK_OFF(VGASTATE, fWriteVBEIndex);
273 GEN_CHECK_OFF(VGASTATE, cbWriteVBEData);
274 GEN_CHECK_OFF(VGASTATE, cbWriteVBEIndex);
275#ifdef VBE_NEW_DYN_LIST
276 GEN_CHECK_OFF(VGASTATE, cbWriteVBEExtraAddress);
277#endif
278#endif
279#ifdef VBE_NEW_DYN_LIST
280 GEN_CHECK_OFF(VGASTATE, cbVBEExtraData);
281 GEN_CHECK_OFF(VGASTATE, pu8VBEExtraData);
282 GEN_CHECK_OFF(VGASTATE, u16VBEExtraAddress);
283#endif
284
285 /* Input/pckbd.c */
286 GEN_CHECK_SIZE(KBDQueue);
287 GEN_CHECK_OFF(KBDQueue, data);
288 GEN_CHECK_OFF(KBDQueue, rptr);
289 GEN_CHECK_OFF(KBDQueue, wptr);
290 GEN_CHECK_OFF(KBDQueue, count);
291 GEN_CHECK_SIZE(MouseCmdQueue);
292 GEN_CHECK_OFF(MouseCmdQueue, data);
293 GEN_CHECK_OFF(MouseCmdQueue, rptr);
294 GEN_CHECK_OFF(MouseCmdQueue, wptr);
295 GEN_CHECK_OFF(MouseCmdQueue, count);
296 GEN_CHECK_SIZE(MouseEventQueue);
297 GEN_CHECK_OFF(MouseEventQueue, data);
298 GEN_CHECK_OFF(MouseEventQueue, rptr);
299 GEN_CHECK_OFF(MouseEventQueue, wptr);
300 GEN_CHECK_OFF(MouseEventQueue, count);
301 GEN_CHECK_SIZE(KBDState);
302 GEN_CHECK_OFF(KBDState, queue);
303 GEN_CHECK_OFF(KBDState, mouse_command_queue);
304 GEN_CHECK_OFF(KBDState, mouse_event_queue);
305 GEN_CHECK_OFF(KBDState, write_cmd);
306 GEN_CHECK_OFF(KBDState, status);
307 GEN_CHECK_OFF(KBDState, mode);
308 GEN_CHECK_OFF(KBDState, kbd_write_cmd);
309 GEN_CHECK_OFF(KBDState, scan_enabled);
310 GEN_CHECK_OFF(KBDState, mouse_write_cmd);
311 GEN_CHECK_OFF(KBDState, mouse_status);
312 GEN_CHECK_OFF(KBDState, mouse_resolution);
313 GEN_CHECK_OFF(KBDState, mouse_sample_rate);
314 GEN_CHECK_OFF(KBDState, mouse_wrap);
315 GEN_CHECK_OFF(KBDState, mouse_type);
316 GEN_CHECK_OFF(KBDState, mouse_detect_state);
317 GEN_CHECK_OFF(KBDState, mouse_dx);
318 GEN_CHECK_OFF(KBDState, mouse_dy);
319 GEN_CHECK_OFF(KBDState, mouse_dz);
320 GEN_CHECK_OFF(KBDState, mouse_buttons);
321 GEN_CHECK_OFF(KBDState, pDevInsR3);
322 GEN_CHECK_OFF(KBDState, pDevInsR0);
323 GEN_CHECK_OFF(KBDState, pDevInsRC);
324 GEN_CHECK_OFF(KBDState, Keyboard.Base);
325 GEN_CHECK_OFF(KBDState, Keyboard.Port);
326 GEN_CHECK_OFF(KBDState, Keyboard.pDrvBase);
327 GEN_CHECK_OFF(KBDState, Keyboard.pDrv);
328 GEN_CHECK_OFF(KBDState, Mouse.Base);
329 GEN_CHECK_OFF(KBDState, Mouse.Port);
330 GEN_CHECK_OFF(KBDState, Mouse.pDrvBase);
331 GEN_CHECK_OFF(KBDState, Mouse.pDrv);
332
333 /* Network/DevPCNet.cpp */
334 GEN_CHECK_SIZE(PCNetState);
335 GEN_CHECK_OFF(PCNetState, PciDev);
336#ifndef PCNET_NO_POLLING
337 GEN_CHECK_OFF(PCNetState, pTimerPollR3);
338 GEN_CHECK_OFF(PCNetState, pTimerPollR0);
339 GEN_CHECK_OFF(PCNetState, pTimerPollRC);
340#endif
341 GEN_CHECK_OFF(PCNetState, pTimerSoftIntR3);
342 GEN_CHECK_OFF(PCNetState, pTimerSoftIntR0);
343 GEN_CHECK_OFF(PCNetState, pTimerSoftIntRC);
344 GEN_CHECK_OFF(PCNetState, u32RAP);
345 GEN_CHECK_OFF(PCNetState, iISR);
346 GEN_CHECK_OFF(PCNetState, u32Lnkst);
347 GEN_CHECK_OFF(PCNetState, GCRDRA);
348 GEN_CHECK_OFF(PCNetState, GCTDRA);
349 GEN_CHECK_OFF(PCNetState, aPROM);
350 GEN_CHECK_OFF(PCNetState, aPROM[1]);
351 GEN_CHECK_OFF(PCNetState, aCSR);
352 GEN_CHECK_OFF(PCNetState, aCSR[1]);
353 GEN_CHECK_OFF(PCNetState, aCSR[CSR_MAX_REG - 1]);
354 GEN_CHECK_OFF(PCNetState, aBCR);
355 GEN_CHECK_OFF(PCNetState, aBCR[1]);
356 GEN_CHECK_OFF(PCNetState, aBCR[BCR_MAX_RAP - 1]);
357 GEN_CHECK_OFF(PCNetState, aMII);
358 GEN_CHECK_OFF(PCNetState, aMII[1]);
359 GEN_CHECK_OFF(PCNetState, aMII[MII_MAX_REG - 1]);
360 GEN_CHECK_OFF(PCNetState, u16CSR0LastSeenByGuest);
361 GEN_CHECK_OFF(PCNetState, u64LastPoll);
362 GEN_CHECK_OFF(PCNetState, abSendBuf);
363 GEN_CHECK_OFF(PCNetState, abRecvBuf);
364 GEN_CHECK_OFF(PCNetState, iLog2DescSize);
365 GEN_CHECK_OFF(PCNetState, GCUpperPhys);
366 GEN_CHECK_OFF(PCNetState, pXmitQueueR3);
367 GEN_CHECK_OFF(PCNetState, pXmitQueueR0);
368 GEN_CHECK_OFF(PCNetState, pXmitQueueRC);
369 GEN_CHECK_OFF(PCNetState, pCanRxQueueR3);
370 GEN_CHECK_OFF(PCNetState, pCanRxQueueR0);
371 GEN_CHECK_OFF(PCNetState, pCanRxQueueRC);
372 GEN_CHECK_OFF(PCNetState, pTimerRestore);
373 GEN_CHECK_OFF(PCNetState, pDevInsR3);
374 GEN_CHECK_OFF(PCNetState, pDevInsR0);
375 GEN_CHECK_OFF(PCNetState, pDevInsRC);
376 GEN_CHECK_OFF(PCNetState, pDrv);
377 GEN_CHECK_OFF(PCNetState, pDrvBase);
378 GEN_CHECK_OFF(PCNetState, IBase);
379 GEN_CHECK_OFF(PCNetState, INetworkPort);
380 GEN_CHECK_OFF(PCNetState, INetworkConfig);
381 GEN_CHECK_OFF(PCNetState, MMIOBase);
382 GEN_CHECK_OFF(PCNetState, IOPortBase);
383 GEN_CHECK_OFF(PCNetState, fLinkUp);
384 GEN_CHECK_OFF(PCNetState, fLinkTempDown);
385 GEN_CHECK_OFF(PCNetState, cLinkDownReported);
386 GEN_CHECK_OFF(PCNetState, MacConfigured);
387 GEN_CHECK_OFF(PCNetState, Led);
388 GEN_CHECK_OFF(PCNetState, ILeds);
389 GEN_CHECK_OFF(PCNetState, pLedsConnector);
390 GEN_CHECK_OFF(PCNetState, hSendEventSem);
391 GEN_CHECK_OFF(PCNetState, pSendThread);
392 GEN_CHECK_OFF(PCNetState, CritSect);
393 GEN_CHECK_OFF(PCNetState, cPendingSends);
394#ifdef PCNET_NO_POLLING
395 GEN_CHECK_OFF(PCNetState, TDRAPhysOld);
396 GEN_CHECK_OFF(PCNetState, cbTDRAOld);
397 GEN_CHECK_OFF(PCNetState, RDRAPhysOld);
398 GEN_CHECK_OFF(PCNetState, cbRDRAOld);
399 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionGC
400 GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionR0
401#endif
402 GEN_CHECK_OFF(PCNetState, pSharedMMIOR3);
403 GEN_CHECK_OFF(PCNetState, pSharedMMIOR0);
404 GEN_CHECK_OFF(PCNetState, pSharedMMIORC);
405 GEN_CHECK_OFF(PCNetState, fPrivIfEnabled);
406 GEN_CHECK_OFF(PCNetState, fGCEnabled);
407 GEN_CHECK_OFF(PCNetState, fR0Enabled);
408 GEN_CHECK_OFF(PCNetState, fAm79C973);
409 GEN_CHECK_OFF(PCNetState, u32LinkSpeed);
410#ifdef VBOX_WITH_STATISTICS
411 GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
412 GEN_CHECK_OFF(PCNetState, StatMIIReads);
413# ifdef PCNET_NO_POLLING
414 GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
415 GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
416# endif
417#endif
418
419 /* PC/DevACPI.cpp */
420 GEN_CHECK_SIZE(ACPIState);
421 GEN_CHECK_OFF(ACPIState, dev);
422 GEN_CHECK_OFF(ACPIState, pm1a_en);
423 GEN_CHECK_OFF(ACPIState, pm1a_sts);
424 GEN_CHECK_OFF(ACPIState, pm1a_ctl);
425 GEN_CHECK_OFF(ACPIState, pm_timer_initial);
426 GEN_CHECK_OFF(ACPIState, tsR3);
427 GEN_CHECK_OFF(ACPIState, tsR0);
428 GEN_CHECK_OFF(ACPIState, tsRC);
429 GEN_CHECK_OFF(ACPIState, gpe0_en);
430 GEN_CHECK_OFF(ACPIState, gpe0_sts);
431 GEN_CHECK_OFF(ACPIState, uBatteryIndex);
432 GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
433 GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
434 GEN_CHECK_OFF(ACPIState, u64RamSize);
435 GEN_CHECK_OFF(ACPIState, uSleepState);
436 GEN_CHECK_OFF(ACPIState, au8RSDPPage);
437 GEN_CHECK_OFF(ACPIState, u8IndexShift);
438 GEN_CHECK_OFF(ACPIState, u8UseIOApic);
439 GEN_CHECK_OFF(ACPIState, IBase);
440 GEN_CHECK_OFF(ACPIState, IACPIPort);
441 GEN_CHECK_OFF(ACPIState, pDevIns);
442 GEN_CHECK_OFF(ACPIState, pDrvBase);
443 GEN_CHECK_OFF(ACPIState, pDrv);
444
445 /* PC/DevPIC.cpp */
446 GEN_CHECK_SIZE(PicState);
447 GEN_CHECK_OFF(PicState, last_irr);
448 GEN_CHECK_OFF(PicState, irr);
449 GEN_CHECK_OFF(PicState, imr);
450 GEN_CHECK_OFF(PicState, isr);
451 GEN_CHECK_OFF(PicState, priority_add);
452 GEN_CHECK_OFF(PicState, irq_base);
453 GEN_CHECK_OFF(PicState, read_reg_select);
454 GEN_CHECK_OFF(PicState, poll);
455 GEN_CHECK_OFF(PicState, special_mask);
456 GEN_CHECK_OFF(PicState, init_state);
457 GEN_CHECK_OFF(PicState, auto_eoi);
458 GEN_CHECK_OFF(PicState, rotate_on_auto_eoi);
459 GEN_CHECK_OFF(PicState, special_fully_nested_mode);
460 GEN_CHECK_OFF(PicState, init4);
461 GEN_CHECK_OFF(PicState, elcr);
462 GEN_CHECK_OFF(PicState, elcr_mask);
463 GEN_CHECK_OFF(PicState, pDevInsR3);
464 GEN_CHECK_OFF(PicState, pDevInsR0);
465 GEN_CHECK_OFF(PicState, pDevInsRC);
466
467 GEN_CHECK_SIZE(DEVPIC);
468 GEN_CHECK_OFF(DEVPIC, aPics);
469 GEN_CHECK_OFF(DEVPIC, aPics[1]);
470 GEN_CHECK_OFF(DEVPIC, pDevInsR3);
471 GEN_CHECK_OFF(DEVPIC, pDevInsR0);
472 GEN_CHECK_OFF(DEVPIC, pDevInsRC);
473 GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
474 GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
475 GEN_CHECK_OFF(DEVPIC, pPicHlpRC);
476#ifdef VBOX_WITH_STATISTICS
477 GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
478 GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
479#endif
480
481 /* PC/DevPit-i8254.cpp */
482 GEN_CHECK_SIZE(PITChannelState);
483 GEN_CHECK_OFF(PITChannelState, pPitR3);
484 GEN_CHECK_OFF(PITChannelState, pTimerR3);
485 GEN_CHECK_OFF(PITChannelState, pPitR0);
486 GEN_CHECK_OFF(PITChannelState, pTimerR0);
487 GEN_CHECK_OFF(PITChannelState, pPitRC);
488 GEN_CHECK_OFF(PITChannelState, pTimerRC);
489 GEN_CHECK_OFF(PITChannelState, u64ReloadTS);
490 GEN_CHECK_OFF(PITChannelState, u64NextTS);
491 GEN_CHECK_OFF(PITChannelState, count_load_time);
492 GEN_CHECK_OFF(PITChannelState, next_transition_time);
493 GEN_CHECK_OFF(PITChannelState, irq);
494 GEN_CHECK_OFF(PITChannelState, cRelLogEntries);
495 GEN_CHECK_OFF(PITChannelState, count);
496 GEN_CHECK_OFF(PITChannelState, latched_count);
497 GEN_CHECK_OFF(PITChannelState, count_latched);
498 GEN_CHECK_OFF(PITChannelState, status_latched);
499 GEN_CHECK_OFF(PITChannelState, status);
500 GEN_CHECK_OFF(PITChannelState, read_state);
501 GEN_CHECK_OFF(PITChannelState, write_state);
502 GEN_CHECK_OFF(PITChannelState, write_latch);
503 GEN_CHECK_OFF(PITChannelState, rw_mode);
504 GEN_CHECK_OFF(PITChannelState, mode);
505 GEN_CHECK_OFF(PITChannelState, bcd);
506 GEN_CHECK_OFF(PITChannelState, gate);
507 GEN_CHECK_SIZE(PITState);
508 GEN_CHECK_OFF(PITState, channels);
509 GEN_CHECK_OFF(PITState, channels[1]);
510 GEN_CHECK_OFF(PITState, speaker_data_on);
511// GEN_CHECK_OFF(PITState, dummy_refresh_clock);
512 GEN_CHECK_OFF(PITState, pDevIns);
513 GEN_CHECK_OFF(PITState, StatPITIrq);
514 GEN_CHECK_OFF(PITState, StatPITHandler);
515
516 /* PC/DevRTC.cpp */
517 GEN_CHECK_SIZE(RTCState);
518 GEN_CHECK_OFF(RTCState, cmos_data);
519 GEN_CHECK_OFF(RTCState, cmos_data[1]);
520 GEN_CHECK_OFF(RTCState, cmos_index);
521 GEN_CHECK_OFF(RTCState, current_tm);
522 GEN_CHECK_OFF(RTCState, current_tm.tm_sec);
523 GEN_CHECK_OFF(RTCState, current_tm.tm_min);
524 GEN_CHECK_OFF(RTCState, current_tm.tm_hour);
525 GEN_CHECK_OFF(RTCState, current_tm.tm_mday);
526 GEN_CHECK_OFF(RTCState, current_tm.tm_mon);
527 GEN_CHECK_OFF(RTCState, current_tm.tm_year);
528 GEN_CHECK_OFF(RTCState, current_tm.tm_wday);
529 GEN_CHECK_OFF(RTCState, current_tm.tm_yday);
530 GEN_CHECK_OFF(RTCState, irq);
531 GEN_CHECK_OFF(RTCState, pPeriodicTimerR0);
532 GEN_CHECK_OFF(RTCState, pPeriodicTimerR3);
533 GEN_CHECK_OFF(RTCState, pPeriodicTimerRC);
534 GEN_CHECK_OFF(RTCState, next_periodic_time);
535 GEN_CHECK_OFF(RTCState, next_second_time);
536 GEN_CHECK_OFF(RTCState, pSecondTimerR0);
537 GEN_CHECK_OFF(RTCState, pSecondTimerR3);
538 GEN_CHECK_OFF(RTCState, pSecondTimerRC);
539 GEN_CHECK_OFF(RTCState, pSecondTimer2R0);
540 GEN_CHECK_OFF(RTCState, pSecondTimer2R3);
541 GEN_CHECK_OFF(RTCState, pSecondTimer2RC);
542 GEN_CHECK_OFF(RTCState, pDevInsR0);
543 GEN_CHECK_OFF(RTCState, pDevInsR3);
544 GEN_CHECK_OFF(RTCState, pDevInsRC);
545 GEN_CHECK_OFF(RTCState, fUTC);
546 GEN_CHECK_OFF(RTCState, RtcReg);
547 GEN_CHECK_OFF(RTCState, pRtcHlpR3);
548 GEN_CHECK_OFF(RTCState, cRelLogEntries);
549 GEN_CHECK_OFF(RTCState, CurPeriod);
550
551 /* PC/apic.c */
552 GEN_CHECK_SIZE(APICState);
553 GEN_CHECK_OFF(APICState, apicbase);
554 GEN_CHECK_OFF(APICState, id);
555 GEN_CHECK_OFF(APICState, arb_id);
556 GEN_CHECK_OFF(APICState, tpr);
557 GEN_CHECK_OFF(APICState, spurious_vec);
558 GEN_CHECK_OFF(APICState, log_dest);
559 GEN_CHECK_OFF(APICState, dest_mode);
560 GEN_CHECK_OFF(APICState, isr);
561 GEN_CHECK_OFF(APICState, isr[1]);
562 GEN_CHECK_OFF(APICState, tmr);
563 GEN_CHECK_OFF(APICState, tmr[1]);
564 GEN_CHECK_OFF(APICState, irr);
565 GEN_CHECK_OFF(APICState, irr[1]);
566 GEN_CHECK_OFF(APICState, lvt);
567 GEN_CHECK_OFF(APICState, lvt[1]);
568 GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);
569 GEN_CHECK_OFF(APICState, esr);
570 GEN_CHECK_OFF(APICState, icr);
571 GEN_CHECK_OFF(APICState, icr[1]);
572 GEN_CHECK_OFF(APICState, divide_conf);
573 GEN_CHECK_OFF(APICState, count_shift);
574 GEN_CHECK_OFF(APICState, initial_count);
575 GEN_CHECK_OFF(APICState, initial_count_load_time);
576 GEN_CHECK_OFF(APICState, next_time);
577 GEN_CHECK_OFF(APICState, pTimerR3);
578 GEN_CHECK_OFF(APICState, pTimerR0);
579 GEN_CHECK_OFF(APICState, pTimerRC);
580
581 GEN_CHECK_SIZE(APICDeviceInfo);
582 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR3);
583 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR3);
584 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR0);
585 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR0);
586 GEN_CHECK_OFF(APICDeviceInfo, pDevInsRC);
587 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpRC);
588 GEN_CHECK_OFF(APICDeviceInfo, ulTPRPatchAttempts);
589#ifdef VBOX_WITH_STATISTICS
590 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOReadGC);
591 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOWriteHC);
592#endif
593
594 GEN_CHECK_SIZE(IOAPICState);
595 GEN_CHECK_OFF(IOAPICState, id);
596 GEN_CHECK_OFF(IOAPICState, ioregsel);
597 GEN_CHECK_OFF(IOAPICState, irr);
598 GEN_CHECK_OFF(IOAPICState, ioredtbl);
599 GEN_CHECK_OFF(IOAPICState, ioredtbl[1]);
600 GEN_CHECK_OFF(IOAPICState, ioredtbl[IOAPIC_NUM_PINS - 1]);
601 GEN_CHECK_OFF(IOAPICState, pDevInsR3);
602 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR3);
603 GEN_CHECK_OFF(IOAPICState, pDevInsR0);
604 GEN_CHECK_OFF(IOAPICState, pIoApicHlpR0);
605 GEN_CHECK_OFF(IOAPICState, pDevInsRC);
606 GEN_CHECK_OFF(IOAPICState, pIoApicHlpRC);
607#ifdef VBOX_WITH_STATISTICS
608 GEN_CHECK_OFF(IOAPICState, StatMMIOReadGC);
609 GEN_CHECK_OFF(IOAPICState, StatSetIrqHC);
610#endif
611
612 /* Storage/DevATA.cpp */
613 GEN_CHECK_SIZE(BMDMAState);
614 GEN_CHECK_OFF(BMDMAState, u8Cmd);
615 GEN_CHECK_OFF(BMDMAState, u8Status);
616 GEN_CHECK_OFF(BMDMAState, pvAddr);
617 GEN_CHECK_SIZE(BMDMADesc);
618 GEN_CHECK_OFF(BMDMADesc, pBuffer);
619 GEN_CHECK_OFF(BMDMADesc, cbBuffer);
620 GEN_CHECK_SIZE(ATADevState);
621 GEN_CHECK_OFF(ATADevState, fLBA48);
622 GEN_CHECK_OFF(ATADevState, fATAPI);
623 GEN_CHECK_OFF(ATADevState, fIrqPending);
624 GEN_CHECK_OFF(ATADevState, cMultSectors);
625 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cCylinders);
626 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cHeads);
627 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cSectors);
628 GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
629 GEN_CHECK_OFF(ATADevState, cTotalSectors);
630 GEN_CHECK_OFF(ATADevState, uATARegFeature);
631 GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
632 GEN_CHECK_OFF(ATADevState, uATARegError);
633 GEN_CHECK_OFF(ATADevState, uATARegNSector);
634 GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
635 GEN_CHECK_OFF(ATADevState, uATARegSector);
636 GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
637 GEN_CHECK_OFF(ATADevState, uATARegLCyl);
638 GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
639 GEN_CHECK_OFF(ATADevState, uATARegHCyl);
640 GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
641 GEN_CHECK_OFF(ATADevState, uATARegSelect);
642 GEN_CHECK_OFF(ATADevState, uATARegStatus);
643 GEN_CHECK_OFF(ATADevState, uATARegCommand);
644 GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
645 GEN_CHECK_OFF(ATADevState, uATATransferMode);
646 GEN_CHECK_OFF(ATADevState, uTxDir);
647 GEN_CHECK_OFF(ATADevState, iBeginTransfer);
648 GEN_CHECK_OFF(ATADevState, iSourceSink);
649 GEN_CHECK_OFF(ATADevState, fDMA);
650 GEN_CHECK_OFF(ATADevState, fATAPITransfer);
651 GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
652 GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
653 GEN_CHECK_OFF(ATADevState, iIOBufferCur);
654 GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
655 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
656 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
657 GEN_CHECK_OFF(ATADevState, iATAPILBA);
658 GEN_CHECK_OFF(ATADevState, cbATAPISector);
659 GEN_CHECK_OFF(ATADevState, aATAPICmd);
660 GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
661 GEN_CHECK_OFF(ATADevState, abATAPISense);
662 GEN_CHECK_OFF(ATADevState, abATAPISense[ATAPI_SENSE_SIZE - 1]);
663 GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
664 GEN_CHECK_OFF(ATADevState, MediaEventStatus);
665 GEN_CHECK_OFF(ATADevState, Led);
666 GEN_CHECK_OFF(ATADevState, cbIOBuffer);
667 GEN_CHECK_OFF(ATADevState, pbIOBufferR3);
668 GEN_CHECK_OFF(ATADevState, pbIOBufferR0);
669 GEN_CHECK_OFF(ATADevState, pbIOBufferRC);
670 GEN_CHECK_OFF(ATADevState, StatATADMA);
671 GEN_CHECK_OFF(ATADevState, StatATAPIO);
672 GEN_CHECK_OFF(ATADevState, StatATAPIDMA);
673 GEN_CHECK_OFF(ATADevState, StatATAPIPIO);
674 GEN_CHECK_OFF(ATADevState, StatReads);
675 GEN_CHECK_OFF(ATADevState, StatBytesRead);
676 GEN_CHECK_OFF(ATADevState, StatWrites);
677 GEN_CHECK_OFF(ATADevState, StatBytesWritten);
678 GEN_CHECK_OFF(ATADevState, StatFlushes);
679 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
680 GEN_CHECK_OFF(ATADevState, cErrors);
681 GEN_CHECK_OFF(ATADevState, pDrvBase);
682 GEN_CHECK_OFF(ATADevState, pDrvBlock);
683 GEN_CHECK_OFF(ATADevState, pDrvBlockBios);
684 GEN_CHECK_OFF(ATADevState, pDrvMount);
685 GEN_CHECK_OFF(ATADevState, IBase);
686 GEN_CHECK_OFF(ATADevState, IPort);
687 GEN_CHECK_OFF(ATADevState, IMountNotify);
688 GEN_CHECK_OFF(ATADevState, iLUN);
689 GEN_CHECK_OFF(ATADevState, pDevInsR3);
690 GEN_CHECK_OFF(ATADevState, pDevInsR0);
691 GEN_CHECK_OFF(ATADevState, pDevInsRC);
692 GEN_CHECK_OFF(ATADevState, pControllerR3);
693 GEN_CHECK_OFF(ATADevState, pControllerR0);
694 GEN_CHECK_OFF(ATADevState, pControllerRC);
695 GEN_CHECK_SIZE(ATATransferRequest);
696 GEN_CHECK_OFF(ATATransferRequest, iIf);
697 GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
698 GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
699 GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
700 GEN_CHECK_OFF(ATATransferRequest, uTxDir);
701 GEN_CHECK_SIZE(ATAAbortRequest);
702 GEN_CHECK_OFF(ATAAbortRequest, iIf);
703 GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
704 GEN_CHECK_SIZE(ATARequest);
705 GEN_CHECK_OFF(ATARequest, ReqType);
706 GEN_CHECK_OFF(ATARequest, u);
707 GEN_CHECK_OFF(ATARequest, u.t);
708 GEN_CHECK_OFF(ATARequest, u.a);
709 GEN_CHECK_SIZE(ATACONTROLLER);
710 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
711 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
712 GEN_CHECK_OFF(ATACONTROLLER, irq);
713 GEN_CHECK_OFF(ATACONTROLLER, lock);
714 GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
715 GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
716 GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
717 GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
718 GEN_CHECK_OFF(ATACONTROLLER, fReset);
719 GEN_CHECK_OFF(ATACONTROLLER, fRedo);
720 GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
721 GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
722 GEN_CHECK_OFF(ATACONTROLLER, BmDma);
723 GEN_CHECK_OFF(ATACONTROLLER, pFirstDMADesc);
724 GEN_CHECK_OFF(ATACONTROLLER, pLastDMADesc);
725 GEN_CHECK_OFF(ATACONTROLLER, pRedoDMABuffer);
726 GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
727 GEN_CHECK_OFF(ATACONTROLLER, aIfs);
728 GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
729 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR3);
730 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR0);
731 GEN_CHECK_OFF(ATACONTROLLER, pDevInsRC);
732 GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
733 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
734 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOSem);
735 GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
736 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
737 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
738 GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestMutex);
739 GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
740 GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
741 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
742 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
743 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
744 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
745 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
746 GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
747 GEN_CHECK_SIZE(PCIATAState);
748 GEN_CHECK_OFF(PCIATAState, dev);
749 GEN_CHECK_OFF(PCIATAState, aCts);
750 GEN_CHECK_OFF(PCIATAState, aCts[1]);
751 GEN_CHECK_OFF(PCIATAState, pDevIns);
752 GEN_CHECK_OFF(PCIATAState, IBase);
753 GEN_CHECK_OFF(PCIATAState, ILeds);
754 GEN_CHECK_OFF(PCIATAState, pLedsConnector);
755 GEN_CHECK_OFF(PCIATAState, fGCEnabled);
756 GEN_CHECK_OFF(PCIATAState, fR0Enabled);
757
758#ifdef VBOX_WITH_USB
759 /* USB/DevOHCI.cpp */
760 GEN_CHECK_SIZE(OHCIHUBPORT);
761 GEN_CHECK_OFF(OHCIHUBPORT, fReg);
762 GEN_CHECK_OFF(OHCIHUBPORT, pDev);
763
764 GEN_CHECK_SIZE(OHCIROOTHUB);
765 GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
766 GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
767 GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
768 GEN_CHECK_OFF(OHCIROOTHUB, IBase);
769 GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
770 GEN_CHECK_OFF(OHCIROOTHUB, status);
771 GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
772 GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
773 GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
774 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
775 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP - 1]);
776 GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
777
778 GEN_CHECK_SIZE(OHCI);
779 GEN_CHECK_OFF(OHCI, PciDev);
780 GEN_CHECK_OFF(OHCI, MMIOBase);
781 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR3);
782 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR0);
783 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerRC);
784 GEN_CHECK_OFF(OHCI, pDevInsR3);
785 GEN_CHECK_OFF(OHCI, pDevInsR0);
786 GEN_CHECK_OFF(OHCI, pDevInsRC);
787 GEN_CHECK_OFF(OHCI, SofTime);
788 //GEN_CHECK_OFF(OHCI, dqic:3);
789 //GEN_CHECK_OFF(OHCI, fno:1);
790 GEN_CHECK_OFF(OHCI, RootHub);
791 GEN_CHECK_OFF(OHCI, ctl);
792 GEN_CHECK_OFF(OHCI, status);
793 GEN_CHECK_OFF(OHCI, intr_status);
794 GEN_CHECK_OFF(OHCI, intr);
795 GEN_CHECK_OFF(OHCI, hcca);
796 GEN_CHECK_OFF(OHCI, per_cur);
797 GEN_CHECK_OFF(OHCI, ctrl_cur);
798 GEN_CHECK_OFF(OHCI, ctrl_head);
799 GEN_CHECK_OFF(OHCI, bulk_cur);
800 GEN_CHECK_OFF(OHCI, bulk_head);
801 GEN_CHECK_OFF(OHCI, done);
802 //GEN_CHECK_OFF(OHCI, fsmps:15);
803 //GEN_CHECK_OFF(OHCI, fit:1);
804 //GEN_CHECK_OFF(OHCI, fi:14);
805 //GEN_CHECK_OFF(OHCI, frt:1);
806 GEN_CHECK_OFF(OHCI, HcFmNumber);
807 GEN_CHECK_OFF(OHCI, pstart);
808 GEN_CHECK_OFF(OHCI, cTicksPerFrame);
809 GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
810 GEN_CHECK_OFF(OHCI, cInFlight);
811 GEN_CHECK_OFF(OHCI, aInFlight);
812 GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
813 GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
814 GEN_CHECK_OFF(OHCI, aInFlight[1]);
815 GEN_CHECK_OFF(OHCI, cInDoneQueue);
816 GEN_CHECK_OFF(OHCI, aInDoneQueue);
817 GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
818 GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
819 GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
820 GEN_CHECK_OFF(OHCI, pLoad);
821# ifdef VBOX_WITH_STATISTICS
822 GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
823 GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
824 GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
825 GEN_CHECK_OFF(OHCI, StatTimer);
826# endif
827 /* USB/DevEHCI.cpp */
828 GEN_CHECK_SIZE(EHCIHUBPORT);
829 GEN_CHECK_OFF(EHCIHUBPORT, fReg);
830 GEN_CHECK_OFF(EHCIHUBPORT, pDev);
831
832 GEN_CHECK_SIZE(EHCIROOTHUB);
833 GEN_CHECK_OFF(EHCIROOTHUB, pIBase);
834 GEN_CHECK_OFF(EHCIROOTHUB, pIRhConn);
835 GEN_CHECK_OFF(EHCIROOTHUB, pIDev);
836 GEN_CHECK_OFF(EHCIROOTHUB, IBase);
837 GEN_CHECK_OFF(EHCIROOTHUB, IRhPort);
838 GEN_CHECK_OFF(EHCIROOTHUB, status);
839 GEN_CHECK_OFF(EHCIROOTHUB, desc_a);
840 GEN_CHECK_OFF(EHCIROOTHUB, desc_b);
841 GEN_CHECK_OFF(EHCIROOTHUB, aPorts);
842 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[1]);
843 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[EHCI_NDP - 1]);
844 GEN_CHECK_OFF(EHCIROOTHUB, pEhci);
845
846 GEN_CHECK_SIZE(EHCI);
847 GEN_CHECK_OFF(EHCI, PciDev);
848 GEN_CHECK_OFF(EHCI, MMIOBase);
849 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerR3);
850 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerR0);
851 GEN_CHECK_OFF(EHCI, pEndOfFrameTimerRC);
852 GEN_CHECK_OFF(EHCI, pDevInsR3);
853 GEN_CHECK_OFF(EHCI, pDevInsR0);
854 GEN_CHECK_OFF(EHCI, pDevInsRC);
855 GEN_CHECK_OFF(EHCI, SofTime);
856 GEN_CHECK_OFF(EHCI, RootHub);
857 GEN_CHECK_OFF(EHCI, intr_status);
858 GEN_CHECK_OFF(EHCI, intr);
859 GEN_CHECK_OFF(EHCI, HcFmNumber);
860 GEN_CHECK_OFF(EHCI, cTicksPerFrame);
861 GEN_CHECK_OFF(EHCI, cTicksPerUsbTick);
862 GEN_CHECK_OFF(EHCI, cInFlight);
863 GEN_CHECK_OFF(EHCI, aInFlight);
864 GEN_CHECK_OFF(EHCI, aInFlight[0].GCPhysTD);
865 GEN_CHECK_OFF(EHCI, aInFlight[0].pUrb);
866 GEN_CHECK_OFF(EHCI, aInFlight[1]);
867 GEN_CHECK_OFF(EHCI, pLoad);
868 GEN_CHECK_OFF(EHCI, fAsyncTraversalTimerActive);
869# ifdef VBOX_WITH_STATISTICS
870 GEN_CHECK_OFF(EHCI, StatCanceledIsocUrbs);
871 GEN_CHECK_OFF(EHCI, StatCanceledGenUrbs);
872 GEN_CHECK_OFF(EHCI, StatDroppedUrbs);
873 GEN_CHECK_OFF(EHCI, StatTimer);
874# endif
875#endif /* VBOX_WITH_USB */
876
877 /* VMMDev/VBoxDev.cpp */
878
879 /* Parallel/DevParallel.cpp */
880 GEN_CHECK_SIZE(ParallelState);
881 GEN_CHECK_OFF(ParallelState, pDevInsR3);
882 GEN_CHECK_OFF(ParallelState, pDevInsR0);
883 GEN_CHECK_OFF(ParallelState, pDevInsRC);
884 GEN_CHECK_OFF(ParallelState, IBase);
885 GEN_CHECK_OFF(ParallelState, IHostParallelPort);
886 GEN_CHECK_OFF(ParallelState, pDrvHostParallelConnector);
887 GEN_CHECK_OFF(ParallelState, ReceiveSem);
888 GEN_CHECK_OFF(ParallelState, reg_data);
889 GEN_CHECK_OFF(ParallelState, reg_status);
890 GEN_CHECK_OFF(ParallelState, reg_control);
891 GEN_CHECK_OFF(ParallelState, reg_epp_addr);
892 GEN_CHECK_OFF(ParallelState, reg_epp_data);
893 GEN_CHECK_OFF(ParallelState, reg_ecp_ecr);
894 GEN_CHECK_OFF(ParallelState, reg_ecp_base_plus_400h);
895 GEN_CHECK_OFF(ParallelState, reg_ecp_config_b);
896 GEN_CHECK_OFF(ParallelState, ecp_fifo);
897 GEN_CHECK_OFF(ParallelState, ecp_fifo[1]);
898 GEN_CHECK_OFF(ParallelState, act_fifo_pos_write);
899 GEN_CHECK_OFF(ParallelState, act_fifo_pos_read);
900 GEN_CHECK_OFF(ParallelState, irq);
901 GEN_CHECK_OFF(ParallelState, epp_timeout);
902 GEN_CHECK_OFF(ParallelState, fGCEnabled);
903 GEN_CHECK_OFF(ParallelState, fR0Enabled);
904 GEN_CHECK_OFF(ParallelState, base);
905
906 /* Serial/DevSerial.cpp */
907 GEN_CHECK_SIZE(SerialState);
908 GEN_CHECK_OFF(SerialState, divider);
909 GEN_CHECK_OFF(SerialState, rbr);
910 GEN_CHECK_OFF(SerialState, ier);
911 GEN_CHECK_OFF(SerialState, iir);
912 GEN_CHECK_OFF(SerialState, lcr);
913 GEN_CHECK_OFF(SerialState, mcr);
914 GEN_CHECK_OFF(SerialState, lsr);
915 GEN_CHECK_OFF(SerialState, msr);
916 GEN_CHECK_OFF(SerialState, scr);
917 GEN_CHECK_OFF(SerialState, thr_ipending);
918 GEN_CHECK_OFF(SerialState, irq);
919 GEN_CHECK_OFF(SerialState, msr_changed);
920 GEN_CHECK_OFF(SerialState, fGCEnabled);
921 GEN_CHECK_OFF(SerialState, fR0Enabled);
922 GEN_CHECK_OFF(SerialState, pDevInsR3);
923 GEN_CHECK_OFF(SerialState, pDevInsR0);
924 GEN_CHECK_OFF(SerialState, pDevInsRC);
925 GEN_CHECK_OFF(SerialState, IBase);
926 GEN_CHECK_OFF(SerialState, ICharPort);
927 GEN_CHECK_OFF(SerialState, pDrvBase);
928 GEN_CHECK_OFF(SerialState, pDrvChar);
929 GEN_CHECK_OFF(SerialState, CritSect);
930 GEN_CHECK_OFF(SerialState, ReceiveSem);
931 GEN_CHECK_OFF(SerialState, last_break_enable);
932 GEN_CHECK_OFF(SerialState, base);
933
934#ifdef VBOX_WITH_AHCI
935 /* Storage/DevAHCI.cpp */
936
937 GEN_CHECK_SIZE(AHCIPort);
938 GEN_CHECK_OFF(AHCIPort, pDevInsR3);
939 GEN_CHECK_OFF(AHCIPort, pDevInsR0);
940 GEN_CHECK_OFF(AHCIPort, pDevInsRC);
941 GEN_CHECK_OFF(AHCIPort, pAhciR3);
942 GEN_CHECK_OFF(AHCIPort, pAhciR0);
943 GEN_CHECK_OFF(AHCIPort, pAhciRC);
944 GEN_CHECK_OFF(AHCIPort, regCLB);
945 GEN_CHECK_OFF(AHCIPort, regCLBU);
946 GEN_CHECK_OFF(AHCIPort, regFB);
947 GEN_CHECK_OFF(AHCIPort, regFBU);
948 GEN_CHECK_OFF(AHCIPort, regIS);
949 GEN_CHECK_OFF(AHCIPort, regIE);
950 GEN_CHECK_OFF(AHCIPort, regCMD);
951 GEN_CHECK_OFF(AHCIPort, regTFD);
952 GEN_CHECK_OFF(AHCIPort, regSIG);
953 GEN_CHECK_OFF(AHCIPort, regSSTS);
954 GEN_CHECK_OFF(AHCIPort, regSCTL);
955 GEN_CHECK_OFF(AHCIPort, regSERR);
956 GEN_CHECK_OFF(AHCIPort, regSACT);
957 GEN_CHECK_OFF(AHCIPort, regCI);
958 GEN_CHECK_OFF(AHCIPort, GCPhysAddrClb);
959 GEN_CHECK_OFF(AHCIPort, GCPhysAddrFb);
960 GEN_CHECK_OFF(AHCIPort, fAsyncInterface);
961 GEN_CHECK_OFF(AHCIPort, pAsyncIOThread);
962 GEN_CHECK_OFF(AHCIPort, AsyncIORequestSem);
963 GEN_CHECK_OFF(AHCIPort, ahciIOTasks);
964 GEN_CHECK_OFF(AHCIPort, ahciIOTasks[2*AHCI_NR_COMMAND_SLOTS-1]);
965 GEN_CHECK_OFF(AHCIPort, uActWritePos);
966 GEN_CHECK_OFF(AHCIPort, uActReadPos);
967 GEN_CHECK_OFF(AHCIPort, uActTasksActive);
968 GEN_CHECK_OFF(AHCIPort, fPoweredOn);
969 GEN_CHECK_OFF(AHCIPort, fSpunUp);
970 GEN_CHECK_OFF(AHCIPort, fFirstD2HFisSend);
971 GEN_CHECK_OFF(AHCIPort, fATAPI);
972 GEN_CHECK_OFF(AHCIPort, pDrvBase);
973 GEN_CHECK_OFF(AHCIPort, pDrvBlock);
974 GEN_CHECK_OFF(AHCIPort, pDrvBlockAsync);
975 GEN_CHECK_OFF(AHCIPort, pDrvBlockBios);
976 GEN_CHECK_OFF(AHCIPort, pDrvMount);
977 GEN_CHECK_OFF(AHCIPort, IBase);
978 GEN_CHECK_OFF(AHCIPort, IPort);
979 GEN_CHECK_OFF(AHCIPort, IPortAsync);
980 GEN_CHECK_OFF(AHCIPort, IMountNotify);
981 GEN_CHECK_OFF(AHCIPort, PCHSGeometry);
982 GEN_CHECK_OFF(AHCIPort, Led);
983 GEN_CHECK_OFF(AHCIPort, cTotalSectors);
984 GEN_CHECK_OFF(AHCIPort, cMultSectors);
985 GEN_CHECK_OFF(AHCIPort, uATATransferMode);
986 GEN_CHECK_OFF(AHCIPort, uATAPISenseKey);
987 GEN_CHECK_OFF(AHCIPort, uATAPIASC);
988 GEN_CHECK_OFF(AHCIPort, cNotifiedMediaChange);
989 GEN_CHECK_OFF(AHCIPort, iLUN);
990 GEN_CHECK_OFF(AHCIPort, fResetDevice);
991 GEN_CHECK_OFF(AHCIPort, u32TasksFinished);
992 GEN_CHECK_OFF(AHCIPort, u32QueuedTasksFinished);
993 GEN_CHECK_OFF(AHCIPort, StatDMA);
994 GEN_CHECK_OFF(AHCIPort, StatBytesWritten);
995 GEN_CHECK_OFF(AHCIPort, StatBytesRead);
996 GEN_CHECK_OFF(AHCIPort, StatQueueFillRate);
997
998 GEN_CHECK_SIZE(AHCI);
999 GEN_CHECK_OFF(AHCI, dev);
1000 GEN_CHECK_OFF(AHCI, pDevInsR3);
1001 GEN_CHECK_OFF(AHCI, pDevInsR0);
1002 GEN_CHECK_OFF(AHCI, pDevInsRC);
1003 GEN_CHECK_OFF(AHCI, IBase);
1004 GEN_CHECK_OFF(AHCI, ILeds);
1005 GEN_CHECK_OFF(AHCI, pLedsConnector);
1006 GEN_CHECK_OFF(AHCI, MMIOBase);
1007 GEN_CHECK_OFF(AHCI, regHbaCap);
1008 GEN_CHECK_OFF(AHCI, regHbaCtrl);
1009 GEN_CHECK_OFF(AHCI, regHbaIs);
1010 GEN_CHECK_OFF(AHCI, regHbaPi);
1011 GEN_CHECK_OFF(AHCI, regHbaVs);
1012 GEN_CHECK_OFF(AHCI, regHbaCccCtl);
1013 GEN_CHECK_OFF(AHCI, regHbaCccPorts);
1014 GEN_CHECK_OFF(AHCI, pHbaCccTimerR3);
1015 GEN_CHECK_OFF(AHCI, pHbaCccTimerR0);
1016 GEN_CHECK_OFF(AHCI, pHbaCccTimerRC);
1017 GEN_CHECK_OFF(AHCI, pNotifierQueueR3);
1018 GEN_CHECK_OFF(AHCI, pNotifierQueueR0);
1019 GEN_CHECK_OFF(AHCI, pNotifierQueueRC);
1020 GEN_CHECK_OFF(AHCI, uCccPortNr);
1021 GEN_CHECK_OFF(AHCI, uCccTimeout);
1022 GEN_CHECK_OFF(AHCI, uCccNr);
1023 GEN_CHECK_OFF(AHCI, uCccCurrentNr);
1024 GEN_CHECK_OFF(AHCI, ahciPort);
1025 GEN_CHECK_OFF(AHCI, ahciPort[AHCI_MAX_NR_PORTS_IMPL-1]);
1026 GEN_CHECK_OFF(AHCI, aCts);
1027 GEN_CHECK_OFF(AHCI, aCts[1]);
1028 GEN_CHECK_OFF(AHCI, u32PortsInterrupted);
1029 GEN_CHECK_OFF(AHCI, fReset);
1030 GEN_CHECK_OFF(AHCI, f64BitAddr);
1031 GEN_CHECK_OFF(AHCI, fGCEnabled);
1032 GEN_CHECK_OFF(AHCI, fR0Enabled);
1033 GEN_CHECK_OFF(AHCI, lock);
1034 GEN_CHECK_OFF(AHCI, cPortsImpl);
1035 GEN_CHECK_OFF(AHCI, f8ByteMMIO4BytesWrittenSuccessfully);
1036#endif /* VBOX_WITH_AHCI */
1037
1038#ifdef VBOX_WITH_E1000
1039 GEN_CHECK_SIZE(EEPROM93C46);
1040 GEN_CHECK_OFF(EEPROM93C46, m_eState);
1041 GEN_CHECK_OFF(EEPROM93C46, m_au16Data);
1042 GEN_CHECK_OFF(EEPROM93C46, m_fWriteEnabled);
1043 GEN_CHECK_OFF(EEPROM93C46, m_u16Word);
1044 GEN_CHECK_OFF(EEPROM93C46, m_u16Mask);
1045 GEN_CHECK_OFF(EEPROM93C46, m_u16Addr);
1046 GEN_CHECK_OFF(EEPROM93C46, m_u32InternalWires);
1047 GEN_CHECK_OFF(EEPROM93C46, m_eOp);
1048
1049 GEN_CHECK_SIZE(E1KSTATE);
1050 GEN_CHECK_OFF(E1KSTATE, IBase);
1051 GEN_CHECK_OFF(E1KSTATE, INetworkPort);
1052 GEN_CHECK_OFF(E1KSTATE, INetworkConfig);
1053 GEN_CHECK_OFF(E1KSTATE, ILeds);
1054 GEN_CHECK_OFF(E1KSTATE, pDrvBase);
1055 GEN_CHECK_OFF(E1KSTATE, pDrv);
1056 GEN_CHECK_OFF(E1KSTATE, pLedsConnector);
1057 GEN_CHECK_OFF(E1KSTATE, pDevInsR3);
1058 GEN_CHECK_OFF(E1KSTATE, pDevInsR0);
1059 GEN_CHECK_OFF(E1KSTATE, pDevInsRC);
1060 GEN_CHECK_OFF(E1KSTATE, pTxQueueR3);
1061 GEN_CHECK_OFF(E1KSTATE, pTxQueueR0);
1062 GEN_CHECK_OFF(E1KSTATE, pTxQueueRC);
1063 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR3);
1064 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR0);
1065 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueRC);
1066 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR3);
1067 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR0);
1068 GEN_CHECK_OFF(E1KSTATE, pRIDTimerRC);
1069 GEN_CHECK_OFF(E1KSTATE, pRADTimerR3);
1070 GEN_CHECK_OFF(E1KSTATE, pRADTimerR0);
1071 GEN_CHECK_OFF(E1KSTATE, pRADTimerRC);
1072 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR3);
1073 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR0);
1074 GEN_CHECK_OFF(E1KSTATE, pTIDTimerRC);
1075 GEN_CHECK_OFF(E1KSTATE, pTADTimerR3);
1076 GEN_CHECK_OFF(E1KSTATE, pTADTimerR0);
1077 GEN_CHECK_OFF(E1KSTATE, pTADTimerRC);
1078 GEN_CHECK_OFF(E1KSTATE, pIntTimerR3);
1079 GEN_CHECK_OFF(E1KSTATE, pIntTimerR0);
1080 GEN_CHECK_OFF(E1KSTATE, pIntTimerRC);
1081 GEN_CHECK_OFF(E1KSTATE, pLUTimer);
1082 GEN_CHECK_OFF(E1KSTATE, pTxThread);
1083 GEN_CHECK_OFF(E1KSTATE, cs);
1084#ifndef E1K_GLOBAL_MUTEX
1085 GEN_CHECK_OFF(E1KSTATE, csRx);
1086#endif
1087 GEN_CHECK_OFF(E1KSTATE, hTxSem);
1088 GEN_CHECK_OFF(E1KSTATE, addrMMReg);
1089 GEN_CHECK_OFF(E1KSTATE, macAddress);
1090 GEN_CHECK_OFF(E1KSTATE, addrIOPort);
1091 GEN_CHECK_OFF(E1KSTATE, pciDevice);
1092 GEN_CHECK_OFF(E1KSTATE, u64AckedAt);
1093 GEN_CHECK_OFF(E1KSTATE, fIntRaised);
1094 GEN_CHECK_OFF(E1KSTATE, fCableConnected);
1095 GEN_CHECK_OFF(E1KSTATE, fR0Enabled);
1096 GEN_CHECK_OFF(E1KSTATE, fGCEnabled);
1097 GEN_CHECK_OFF(E1KSTATE, auRegs[E1K_NUM_OF_32BIT_REGS]);
1098 GEN_CHECK_OFF(E1KSTATE, led);
1099 GEN_CHECK_OFF(E1KSTATE, u32PktNo);
1100 GEN_CHECK_OFF(E1KSTATE, uSelectedReg);
1101 GEN_CHECK_OFF(E1KSTATE, auMTA[128]);
1102 GEN_CHECK_OFF(E1KSTATE, aRecAddr);
1103 GEN_CHECK_OFF(E1KSTATE, auVFTA[128]);
1104 GEN_CHECK_OFF(E1KSTATE, u16RxBSize);
1105 GEN_CHECK_OFF(E1KSTATE, fLocked);
1106 GEN_CHECK_OFF(E1KSTATE, fDelayInts);
1107 GEN_CHECK_OFF(E1KSTATE, fIntMaskUsed);
1108 GEN_CHECK_OFF(E1KSTATE, fMaybeOutOfSpace);
1109 GEN_CHECK_OFF(E1KSTATE, hEventMoreRxDescAvail);
1110 GEN_CHECK_OFF(E1KSTATE, contextTSE);
1111 GEN_CHECK_OFF(E1KSTATE, contextNormal);
1112 GEN_CHECK_OFF(E1KSTATE, aTxPacket[E1K_MAX_TX_PKT_SIZE]);
1113 GEN_CHECK_OFF(E1KSTATE, u16TxPktLen);
1114 GEN_CHECK_OFF(E1KSTATE, fIPcsum);
1115 GEN_CHECK_OFF(E1KSTATE, fTCPcsum);
1116 GEN_CHECK_OFF(E1KSTATE, u32PayRemain);
1117 GEN_CHECK_OFF(E1KSTATE, u16HdrRemain);
1118 GEN_CHECK_OFF(E1KSTATE, u16SavedFlags);
1119 GEN_CHECK_OFF(E1KSTATE, u32SavedCsum);
1120 GEN_CHECK_OFF(E1KSTATE, eeprom);
1121 GEN_CHECK_OFF(E1KSTATE, phy);
1122#endif /* VBOX_WITH_E1000 */
1123
1124#ifdef VBOX_WITH_SCSI
1125 GEN_CHECK_SIZE(VBOXSCSI);
1126 GEN_CHECK_OFF(VBOXSCSI, regIdentify);
1127 GEN_CHECK_OFF(VBOXSCSI, uTargetDevice);
1128 GEN_CHECK_OFF(VBOXSCSI, uTxDir);
1129 GEN_CHECK_OFF(VBOXSCSI, cbCDB);
1130 GEN_CHECK_OFF(VBOXSCSI, aCDB);
1131 GEN_CHECK_OFF(VBOXSCSI, aCDB[11]);
1132 GEN_CHECK_OFF(VBOXSCSI, iCDB);
1133 GEN_CHECK_OFF(VBOXSCSI, pBuf);
1134 GEN_CHECK_OFF(VBOXSCSI, cbBuf);
1135 GEN_CHECK_OFF(VBOXSCSI, iBuf);
1136 GEN_CHECK_OFF(VBOXSCSI, fBusy);
1137 GEN_CHECK_OFF(VBOXSCSI, enmState);
1138#endif
1139
1140#ifdef VBOX_WITH_BUSLOGIC
1141 GEN_CHECK_SIZE(BUSLOGICDEVICE);
1142 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR3);
1143 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR0);
1144 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicRC);
1145 GEN_CHECK_OFF(BUSLOGICDEVICE, fPresent);
1146 GEN_CHECK_OFF(BUSLOGICDEVICE, iLUN);
1147 GEN_CHECK_OFF(BUSLOGICDEVICE, IBase);
1148 GEN_CHECK_OFF(BUSLOGICDEVICE, ISCSIPort);
1149 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvBase);
1150 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvSCSIConnector);
1151 GEN_CHECK_OFF(BUSLOGICDEVICE, cOutstandingRequests);
1152
1153 GEN_CHECK_SIZE(BUSLOGIC);
1154 GEN_CHECK_OFF(BUSLOGIC, dev);
1155 GEN_CHECK_OFF(BUSLOGIC, pDevInsR3);
1156 GEN_CHECK_OFF(BUSLOGIC, pDevInsR0);
1157 GEN_CHECK_OFF(BUSLOGIC, pDevInsRC);
1158 GEN_CHECK_OFF(BUSLOGIC, IOPortBase);
1159 GEN_CHECK_OFF(BUSLOGIC, MMIOBase);
1160 GEN_CHECK_OFF(BUSLOGIC, regStatus);
1161 GEN_CHECK_OFF(BUSLOGIC, regInterrupt);
1162 GEN_CHECK_OFF(BUSLOGIC, regGeometry);
1163 GEN_CHECK_OFF(BUSLOGIC, LocalRam);
1164 GEN_CHECK_OFF(BUSLOGIC, uOperationCode);
1165 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer);
1166 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer[BUSLOGIC_COMMAND_SIZE_MAX]);
1167 GEN_CHECK_OFF(BUSLOGIC, iParameter);
1168 GEN_CHECK_OFF(BUSLOGIC, cbCommandParametersLeft);
1169 GEN_CHECK_OFF(BUSLOGIC, fUseLocalRam);
1170 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer);
1171 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer[BUSLOGIC_REPLY_SIZE_MAX]);
1172 GEN_CHECK_OFF(BUSLOGIC, iReply);
1173 GEN_CHECK_OFF(BUSLOGIC, cbReplyParametersLeft);
1174 GEN_CHECK_OFF(BUSLOGIC, fIRQEnabled);
1175 GEN_CHECK_OFF(BUSLOGIC, cMailbox);
1176 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxOutgoingBase);
1177 GEN_CHECK_OFF(BUSLOGIC, uMailboxOutgoingPositionCurrent);
1178 GEN_CHECK_OFF(BUSLOGIC, cMailboxesReady);
1179 GEN_CHECK_OFF(BUSLOGIC, fNotificationSend);
1180 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxIncomingBase);
1181 GEN_CHECK_OFF(BUSLOGIC, uMailboxIncomingPositionCurrent);
1182 GEN_CHECK_OFF(BUSLOGIC, fStrictRoundRobinMode);
1183 GEN_CHECK_OFF(BUSLOGIC, fExtendedLunCCBFormat);
1184 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR3);
1185 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR0);
1186 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueRC);
1187 GEN_CHECK_OFF(BUSLOGIC, pTaskCache);
1188 GEN_CHECK_OFF(BUSLOGIC, VBoxSCSI);
1189 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates);
1190 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates[BUSLOGIC_MAX_DEVICES]);
1191#endif /* VBOX_WITH_BUSLOGIC */
1192
1193 return (0);
1194}
1195
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