VirtualBox

source: vbox/trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp@ 33096

Last change on this file since 33096 was 32958, checked in by vboxsync, 14 years ago

Testcase

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