VirtualBox

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

Last change on this file since 71210 was 71210, checked in by vboxsync, 7 years ago

DevDMA: Handle I/O port access from ring-0 and raw-mode since we handle port 0x80 here. Port 0x80 is used both the our BIOS and the linux kernel for I/O delay / debugging, there is no need to go to ring-3 each time it is accessed.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 77.2 KB
Line 
1/* $Id: tstDeviceStructSizeRC.cpp 71210 2018-03-05 20:24:50Z 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-2017 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/DevPciInternal.h"
40#undef LOG_GROUP
41#include "../EFI/DevSmc.cpp"
42#undef LOG_GROUP
43#include "../Graphics/DevVGA.cpp"
44#undef LOG_GROUP
45#include "../Input/DevPS2.cpp"
46#undef LOG_GROUP
47#include "../Input/PS2K.cpp"
48#undef LOG_GROUP
49#include "../Input/PS2M.cpp"
50#undef LOG_GROUP
51#include "../Network/DevPCNet.cpp"
52#undef LOG_GROUP
53#include "../PC/DevACPI.cpp"
54#undef LOG_GROUP
55#include "../PC/DevPIC.cpp"
56#undef LOG_GROUP
57#include "../PC/DevPit-i8254.cpp"
58#undef LOG_GROUP
59#include "../PC/DevRTC.cpp"
60# undef LOG_GROUP
61# include "../../VMM/VMMR3/APIC.cpp"
62#undef LOG_GROUP
63#include "../PC/DevIoApic.cpp"
64#undef LOG_GROUP
65#include "../PC/DevDMA.cpp"
66#undef LOG_GROUP
67#include "../Storage/DevATA.cpp"
68#ifdef VBOX_WITH_USB
69# undef LOG_GROUP
70# include "../USB/DevOHCI.cpp"
71# ifdef VBOX_WITH_EHCI_IMPL
72# undef LOG_GROUP
73# include "../USB/DevEHCI.cpp"
74# endif
75# ifdef VBOX_WITH_XHCI_IMPL
76# undef LOG_GROUP
77# include "../USB/DevXHCI.cpp"
78# endif
79#endif
80#undef LOG_GROUP
81#include "../VMMDev/VMMDev.cpp"
82#undef LOG_GROUP
83#include "../Parallel/DevParallel.cpp"
84#undef LOG_GROUP
85#include "../Serial/DevSerial.cpp"
86#ifdef VBOX_WITH_AHCI
87# undef LOG_GROUP
88# include "../Storage/DevAHCI.cpp"
89#endif
90#ifdef VBOX_WITH_E1000
91# undef LOG_GROUP
92# include "../Network/DevE1000.cpp"
93#endif
94#ifdef VBOX_WITH_VIRTIO
95# undef LOG_GROUP
96# include "../Network/DevVirtioNet.cpp"
97#endif
98#ifdef VBOX_WITH_BUSLOGIC
99# undef LOG_GROUP
100# include "../Storage/DevBusLogic.cpp"
101#endif
102#ifdef VBOX_WITH_LSILOGIC
103# undef LOG_GROUP
104# include "../Storage/DevLsiLogicSCSI.cpp"
105#endif
106#undef LOG_GROUP
107#include "../PC/DevHPET.cpp"
108# undef LOG_GROUP
109# include "../Audio/DevIchAc97.cpp"
110# undef LOG_GROUP
111# include "../Audio/DevHDA.cpp"
112#ifdef VBOX_WITH_NVME_IMPL
113# undef LOG_GROUP
114# include "../Storage/DevNVMe.cpp"
115#endif
116
117/* we don't use iprt here because we're pretending to be in GC! */
118#include <stdio.h>
119
120#define GEN_CHECK_SIZE(s) printf(" CHECK_SIZE(%s, %d);\n", #s, (int)sizeof(s))
121#define GEN_CHECK_OFF(s, m) printf(" CHECK_OFF(%s, %d, %s);\n", #s, (int)RT_OFFSETOF(s, m), #m)
122#define GEN_CHECK_PADDING(s, m, a) printf(" CHECK_PADDING(%s, %s, %u);\n", #s, #m, (a))
123
124int main()
125{
126 /* misc */
127 GEN_CHECK_SIZE(PDMDEVINS);
128 GEN_CHECK_OFF(PDMDEVINS, Internal);
129 GEN_CHECK_OFF(PDMDEVINS, pReg);
130 GEN_CHECK_OFF(PDMDEVINS, pCfg);
131 GEN_CHECK_OFF(PDMDEVINS, iInstance);
132 GEN_CHECK_OFF(PDMDEVINS, IBase);
133 GEN_CHECK_OFF(PDMDEVINS, pHlpR3);
134 GEN_CHECK_OFF(PDMDEVINS, pHlpR0);
135 GEN_CHECK_OFF(PDMDEVINS, pHlpRC);
136 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR3);
137 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataR0);
138 GEN_CHECK_OFF(PDMDEVINS, pvInstanceDataRC);
139 GEN_CHECK_OFF(PDMDEVINS, achInstanceData);
140
141 /* PDMPCIDEV */
142 GEN_CHECK_SIZE(PDMPCIDEV);
143 GEN_CHECK_SIZE(PDMPCIDEVINT);
144 GEN_CHECK_SIZE(PCIIOREGION); /** @todo fix name of PCIIOREGION */
145 GEN_CHECK_OFF(PDMPCIDEV, abConfig);
146 GEN_CHECK_OFF(PDMPCIDEV, uDevFn);
147 GEN_CHECK_OFF(PDMPCIDEV, pszNameR3);
148 GEN_CHECK_OFF(PDMPCIDEV, pfnRegionLoadChangeHookR3);
149 GEN_CHECK_OFF(PDMPCIDEV, Int);
150 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions);
151 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[1]);
152 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[VBOX_PCI_NUM_REGIONS - 1]);
153 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[0].addr);
154 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[0].size);
155 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[0].type);
156 GEN_CHECK_OFF(PDMPCIDEV, Int.s.aIORegions[0].padding);
157 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pBusR3);
158 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pBusR0);
159 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pBusRC);
160 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pfnConfigRead);
161 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pfnConfigWrite);
162 GEN_CHECK_OFF(PDMPCIDEV, Int.s.fFlags);
163 GEN_CHECK_OFF(PDMPCIDEV, Int.s.uIrqPinState);
164 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pfnBridgeConfigRead);
165 GEN_CHECK_OFF(PDMPCIDEV, Int.s.pfnBridgeConfigWrite);
166 GEN_CHECK_PADDING(PDMPCIDEV, Int, 8);
167
168 /* DevPciInternal.h */
169 GEN_CHECK_SIZE(DEVPCIBUS);
170 GEN_CHECK_OFF(DEVPCIBUS, iBus);
171 GEN_CHECK_OFF(DEVPCIBUS, iDevSearch);
172 GEN_CHECK_OFF(DEVPCIBUS, cBridges);
173 GEN_CHECK_OFF(DEVPCIBUS, apDevices);
174 GEN_CHECK_OFF(DEVPCIBUS, apDevices[1]);
175 GEN_CHECK_OFF(DEVPCIBUS, pDevInsR3);
176 GEN_CHECK_OFF(DEVPCIBUS, pPciHlpR3);
177 GEN_CHECK_OFF(DEVPCIBUS, papBridgesR3);
178 GEN_CHECK_OFF(DEVPCIBUS, pDevInsR0);
179 GEN_CHECK_OFF(DEVPCIBUS, pPciHlpR0);
180 GEN_CHECK_OFF(DEVPCIBUS, pDevInsRC);
181 GEN_CHECK_OFF(DEVPCIBUS, pPciHlpRC);
182 GEN_CHECK_OFF(DEVPCIBUS, PciDev);
183 GEN_CHECK_SIZE(PIIX3ISABRIDGE);
184 GEN_CHECK_SIZE(DEVPCIROOT);
185 GEN_CHECK_OFF(DEVPCIROOT, PciBus);
186 GEN_CHECK_OFF(DEVPCIROOT, pDevInsR3);
187 GEN_CHECK_OFF(DEVPCIROOT, pDevInsR0);
188 GEN_CHECK_OFF(DEVPCIROOT, pDevInsRC);
189 GEN_CHECK_OFF(DEVPCIROOT, fUseIoApic);
190 GEN_CHECK_OFF(DEVPCIROOT, u64PciConfigMMioAddress);
191 GEN_CHECK_OFF(DEVPCIROOT, u64PciConfigMMioLength);
192 GEN_CHECK_OFF(DEVPCIROOT, auPciApicIrqLevels);
193 GEN_CHECK_OFF(DEVPCIROOT, auPciApicIrqLevels[1]);
194 GEN_CHECK_OFF(DEVPCIROOT, uConfigReg);
195 GEN_CHECK_OFF(DEVPCIROOT, Piix3.iAcpiIrqLevel);
196 GEN_CHECK_OFF(DEVPCIROOT, Piix3.iAcpiIrq);
197 GEN_CHECK_OFF(DEVPCIROOT, Piix3.auPciLegacyIrqLevels);
198 GEN_CHECK_OFF(DEVPCIROOT, Piix3.auPciLegacyIrqLevels[1]);
199 GEN_CHECK_OFF(DEVPCIROOT, Piix3.PIIX3State);
200 GEN_CHECK_OFF(DEVPCIROOT, uPciBiosBus);
201 GEN_CHECK_OFF(DEVPCIROOT, uPciBiosIo);
202 GEN_CHECK_OFF(DEVPCIROOT, uPciBiosMmio);
203 GEN_CHECK_OFF(DEVPCIROOT, uPciBiosMmio64);
204
205 /* EFI/DevSMC.cpp */
206 GEN_CHECK_SIZE(DEVSMC);
207 GEN_CHECK_OFF(DEVSMC, bCmd);
208 GEN_CHECK_OFF(DEVSMC, offKey);
209 GEN_CHECK_OFF(DEVSMC, offValue);
210 GEN_CHECK_OFF(DEVSMC, cKeys);
211 GEN_CHECK_OFF(DEVSMC, CurKey);
212 GEN_CHECK_OFF(DEVSMC, u);
213 GEN_CHECK_OFF(DEVSMC, u.s);
214 GEN_CHECK_OFF(DEVSMC, u.s.bState);
215 GEN_CHECK_OFF(DEVSMC, u.s.bStatusCode);
216 GEN_CHECK_OFF(DEVSMC, u.s.bStatusCode);
217 GEN_CHECK_OFF(DEVSMC, szOsk0And1);
218 GEN_CHECK_OFF(DEVSMC, bDollaryNumber);
219 GEN_CHECK_OFF(DEVSMC, bShutdownReason);
220 GEN_CHECK_OFF(DEVSMC, bNinjaActionTimerJob);
221
222 /* DevVGA.cpp */
223 GEN_CHECK_SIZE(VGASTATE);
224 GEN_CHECK_OFF(VGASTATE, vram_ptrR3);
225 GEN_CHECK_OFF(VGASTATE, get_bpp);
226 GEN_CHECK_OFF(VGASTATE, get_offsets);
227 GEN_CHECK_OFF(VGASTATE, get_resolution);
228 GEN_CHECK_OFF(VGASTATE, rgb_to_pixel);
229 GEN_CHECK_OFF(VGASTATE, cursor_invalidate);
230 GEN_CHECK_OFF(VGASTATE, cursor_draw_line);
231 GEN_CHECK_OFF(VGASTATE, vram_size);
232 GEN_CHECK_OFF(VGASTATE, latch);
233 GEN_CHECK_OFF(VGASTATE, sr_index);
234 GEN_CHECK_OFF(VGASTATE, sr);
235 GEN_CHECK_OFF(VGASTATE, sr[1]);
236 GEN_CHECK_OFF(VGASTATE, gr_index);
237 GEN_CHECK_OFF(VGASTATE, gr);
238 GEN_CHECK_OFF(VGASTATE, gr[1]);
239 GEN_CHECK_OFF(VGASTATE, ar_index);
240 GEN_CHECK_OFF(VGASTATE, ar);
241 GEN_CHECK_OFF(VGASTATE, ar[1]);
242 GEN_CHECK_OFF(VGASTATE, ar_flip_flop);
243 GEN_CHECK_OFF(VGASTATE, cr_index);
244 GEN_CHECK_OFF(VGASTATE, cr);
245 GEN_CHECK_OFF(VGASTATE, cr[1]);
246 GEN_CHECK_OFF(VGASTATE, msr);
247 GEN_CHECK_OFF(VGASTATE, msr);
248 GEN_CHECK_OFF(VGASTATE, fcr);
249 GEN_CHECK_OFF(VGASTATE, st00);
250 GEN_CHECK_OFF(VGASTATE, st01);
251 GEN_CHECK_OFF(VGASTATE, dac_state);
252 GEN_CHECK_OFF(VGASTATE, dac_sub_index);
253 GEN_CHECK_OFF(VGASTATE, dac_read_index);
254 GEN_CHECK_OFF(VGASTATE, dac_write_index);
255 GEN_CHECK_OFF(VGASTATE, dac_cache);
256 GEN_CHECK_OFF(VGASTATE, dac_cache[1]);
257 GEN_CHECK_OFF(VGASTATE, palette);
258 GEN_CHECK_OFF(VGASTATE, palette[1]);
259 GEN_CHECK_OFF(VGASTATE, bank_offset);
260#ifdef CONFIG_BOCHS_VBE
261 GEN_CHECK_OFF(VGASTATE, vbe_index);
262 GEN_CHECK_OFF(VGASTATE, vbe_regs);
263 GEN_CHECK_OFF(VGASTATE, vbe_regs[1]);
264 GEN_CHECK_OFF(VGASTATE, vbe_regs[VBE_DISPI_INDEX_NB - 1]);
265 GEN_CHECK_OFF(VGASTATE, vbe_start_addr);
266 GEN_CHECK_OFF(VGASTATE, vbe_line_offset);
267 GEN_CHECK_OFF(VGASTATE, vbe_bank_max);
268#endif
269 GEN_CHECK_OFF(VGASTATE, font_offsets);
270 GEN_CHECK_OFF(VGASTATE, font_offsets[1]);
271 GEN_CHECK_OFF(VGASTATE, graphic_mode);
272 GEN_CHECK_OFF(VGASTATE, shift_control);
273 GEN_CHECK_OFF(VGASTATE, double_scan);
274 GEN_CHECK_OFF(VGASTATE, line_offset);
275 GEN_CHECK_OFF(VGASTATE, line_compare);
276 GEN_CHECK_OFF(VGASTATE, start_addr);
277 GEN_CHECK_OFF(VGASTATE, plane_updated);
278 GEN_CHECK_OFF(VGASTATE, last_cw);
279 GEN_CHECK_OFF(VGASTATE, last_ch);
280 GEN_CHECK_OFF(VGASTATE, last_width);
281 GEN_CHECK_OFF(VGASTATE, last_height);
282 GEN_CHECK_OFF(VGASTATE, last_scr_width);
283 GEN_CHECK_OFF(VGASTATE, last_scr_height);
284 GEN_CHECK_OFF(VGASTATE, last_bpp);
285 GEN_CHECK_OFF(VGASTATE, cursor_start);
286 GEN_CHECK_OFF(VGASTATE, cursor_end);
287 GEN_CHECK_OFF(VGASTATE, cursor_offset);
288 GEN_CHECK_OFF(VGASTATE, invalidated_y_table);
289 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[1]);
290 GEN_CHECK_OFF(VGASTATE, invalidated_y_table[(VGA_MAX_HEIGHT / 32) - 1]);
291 GEN_CHECK_OFF(VGASTATE, last_palette);
292 GEN_CHECK_OFF(VGASTATE, last_palette[1]);
293 GEN_CHECK_OFF(VGASTATE, last_ch_attr);
294 GEN_CHECK_OFF(VGASTATE, last_ch_attr[CH_ATTR_SIZE - 1]);
295 GEN_CHECK_OFF(VGASTATE, u32Marker);
296 GEN_CHECK_OFF(VGASTATE, pDevInsRC);
297 GEN_CHECK_OFF(VGASTATE, vram_ptrRC);
298 GEN_CHECK_OFF(VGASTATE, pDevInsR3);
299#ifdef VBOX_WITH_HGSMI
300 GEN_CHECK_OFF(VGASTATE, pHGSMI);
301#endif
302#ifdef VBOX_WITH_VDMA
303 GEN_CHECK_OFF(VGASTATE, pVdma);
304#endif
305 GEN_CHECK_OFF(VGASTATE, IBase);
306 GEN_CHECK_OFF(VGASTATE, IPort);
307#if defined(VBOX_WITH_HGSMI) && (defined(VBOX_WITH_VIDEOHWACCEL) || defined(VBOX_WITH_CRHGSMI))
308 GEN_CHECK_OFF(VGASTATE, IVBVACallbacks);
309#endif
310 GEN_CHECK_OFF(VGASTATE, pDrvBase);
311 GEN_CHECK_OFF(VGASTATE, pDrv);
312 GEN_CHECK_OFF(VGASTATE, RefreshTimer);
313 GEN_CHECK_OFF(VGASTATE, pDevInsR0);
314#ifdef VBOX_WITH_VMSVGA
315 GEN_CHECK_OFF(VGASTATE, svga.u64HostWindowId);
316 GEN_CHECK_OFF(VGASTATE, svga.pFIFOR3);
317 GEN_CHECK_OFF(VGASTATE, svga.pFIFOR0);
318 GEN_CHECK_OFF(VGASTATE, svga.pSvgaR3State);
319 GEN_CHECK_OFF(VGASTATE, svga.p3dState);
320 GEN_CHECK_OFF(VGASTATE, svga.pbVgaFrameBufferR3);
321 GEN_CHECK_OFF(VGASTATE, svga.GCPhysFIFO);
322 GEN_CHECK_OFF(VGASTATE, svga.cbFIFO);
323 GEN_CHECK_OFF(VGASTATE, svga.cbFIFOConfig);
324 GEN_CHECK_OFF(VGASTATE, svga.u32SVGAId);
325 GEN_CHECK_OFF(VGASTATE, svga.fConfigured);
326 GEN_CHECK_OFF(VGASTATE, svga.fBusy);
327 GEN_CHECK_OFF(VGASTATE, svga.fTraces);
328 GEN_CHECK_OFF(VGASTATE, svga.u32GuestId);
329 GEN_CHECK_OFF(VGASTATE, svga.cScratchRegion);
330 GEN_CHECK_OFF(VGASTATE, svga.u32IrqStatus);
331 GEN_CHECK_OFF(VGASTATE, svga.u32IrqMask);
332 GEN_CHECK_OFF(VGASTATE, svga.u32PitchLock);
333 GEN_CHECK_OFF(VGASTATE, svga.u32CurrentGMRId);
334 GEN_CHECK_OFF(VGASTATE, svga.u32RegCaps);
335 GEN_CHECK_OFF(VGASTATE, svga.BasePort);
336 GEN_CHECK_OFF(VGASTATE, svga.u32IndexReg);
337 GEN_CHECK_OFF(VGASTATE, svga.pSupDrvSession);
338 GEN_CHECK_OFF(VGASTATE, svga.FIFORequestSem);
339 GEN_CHECK_OFF(VGASTATE, svga.FIFOExtCmdSem);
340 GEN_CHECK_OFF(VGASTATE, svga.pFIFOIOThread);
341 GEN_CHECK_OFF(VGASTATE, svga.uWidth);
342 GEN_CHECK_OFF(VGASTATE, svga.uHeight);
343 GEN_CHECK_OFF(VGASTATE, svga.uBpp);
344 GEN_CHECK_OFF(VGASTATE, svga.cbScanline);
345 GEN_CHECK_OFF(VGASTATE, svga.u32MaxWidth);
346 GEN_CHECK_OFF(VGASTATE, svga.u32MaxHeight);
347 GEN_CHECK_OFF(VGASTATE, svga.viewport);
348 GEN_CHECK_OFF(VGASTATE, svga.u32ActionFlags);
349 GEN_CHECK_OFF(VGASTATE, svga.f3DEnabled);
350 GEN_CHECK_OFF(VGASTATE, svga.fVRAMTracking);
351 GEN_CHECK_OFF(VGASTATE, svga.u8FIFOExtCommand);
352 GEN_CHECK_OFF(VGASTATE, svga.fFifoExtCommandWakeup);
353 GEN_CHECK_OFF(VGASTATE, svga.au32ScratchRegion);
354 GEN_CHECK_OFF(VGASTATE, svga.StatRegBitsPerPixelWr);
355 GEN_CHECK_OFF(VGASTATE, svga.StatRegWriteOnlyRd);
356#endif
357 GEN_CHECK_OFF(VGASTATE, cMonitors);
358 GEN_CHECK_OFF(VGASTATE, cMilliesRefreshInterval);
359 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap);
360 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[1]);
361 GEN_CHECK_OFF(VGASTATE, au32DirtyBitmap[(VGA_VRAM_MAX / PAGE_SIZE / 32) - 1]);
362 GEN_CHECK_OFF(VGASTATE, fHasDirtyBits);
363 GEN_CHECK_OFF(VGASTATE, fLFBUpdated);
364 GEN_CHECK_OFF(VGASTATE, fGCEnabled);
365 GEN_CHECK_OFF(VGASTATE, fR0Enabled);
366 GEN_CHECK_OFF(VGASTATE, fRemappedVGA);
367 GEN_CHECK_OFF(VGASTATE, fRenderVRAM);
368 GEN_CHECK_OFF(VGASTATE, GCPhysVRAM);
369 GEN_CHECK_OFF(VGASTATE, CritSect);
370 GEN_CHECK_OFF(VGASTATE, Dev);
371 GEN_CHECK_OFF(VGASTATE, StatRZMemoryRead);
372 GEN_CHECK_OFF(VGASTATE, StatR3MemoryRead);
373 GEN_CHECK_OFF(VGASTATE, StatRZMemoryWrite);
374 GEN_CHECK_OFF(VGASTATE, StatR3MemoryWrite);
375#ifdef VBE_BYTEWISE_IO
376 GEN_CHECK_OFF(VGASTATE, fReadVBEData);
377 GEN_CHECK_OFF(VGASTATE, fWriteVBEData);
378 GEN_CHECK_OFF(VGASTATE, fReadVBEIndex);
379 GEN_CHECK_OFF(VGASTATE, fWriteVBEIndex);
380 GEN_CHECK_OFF(VGASTATE, cbWriteVBEData);
381 GEN_CHECK_OFF(VGASTATE, cbWriteVBEIndex);
382# ifdef VBE_NEW_DYN_LIST
383 GEN_CHECK_OFF(VGASTATE, cbWriteVBEExtraAddress);
384# endif
385#endif
386#ifdef VBE_NEW_DYN_LIST
387 GEN_CHECK_OFF(VGASTATE, pbVBEExtraData);
388 GEN_CHECK_OFF(VGASTATE, cbVBEExtraData);
389 GEN_CHECK_OFF(VGASTATE, u16VBEExtraAddress);
390#endif
391 GEN_CHECK_OFF(VGASTATE, pbLogo);
392 GEN_CHECK_OFF(VGASTATE, pszLogoFile);
393 GEN_CHECK_OFF(VGASTATE, pbLogoBitmap);
394 GEN_CHECK_OFF(VGASTATE, offLogoData);
395 GEN_CHECK_OFF(VGASTATE, cbLogo);
396 GEN_CHECK_OFF(VGASTATE, LogoCommand);
397 GEN_CHECK_OFF(VGASTATE, cxLogo);
398 GEN_CHECK_OFF(VGASTATE, cyLogo);
399 GEN_CHECK_OFF(VGASTATE, cLogoPlanes);
400 GEN_CHECK_OFF(VGASTATE, cLogoBits);
401 GEN_CHECK_OFF(VGASTATE, LogoCompression);
402 GEN_CHECK_OFF(VGASTATE, cLogoUsedColors);
403 GEN_CHECK_OFF(VGASTATE, cLogoPalEntries);
404 GEN_CHECK_OFF(VGASTATE, fLogoClearScreen);
405 GEN_CHECK_OFF(VGASTATE, au32LogoPalette);
406 GEN_CHECK_OFF(VGASTATE, pbVgaBios);
407 GEN_CHECK_OFF(VGASTATE, cbVgaBios);
408 GEN_CHECK_OFF(VGASTATE, pszVgaBiosFile);
409#ifdef VBOX_WITH_HGSMI
410 GEN_CHECK_OFF(VGASTATE, IOPortBase);
411#endif
412#ifdef VBOX_WITH_WDDM
413 GEN_CHECK_OFF(VGASTATE, fGuestCaps);
414#endif
415
416 /* Input/pckbd.c */
417 GEN_CHECK_SIZE(KBDState);
418 GEN_CHECK_OFF(KBDState, write_cmd);
419 GEN_CHECK_OFF(KBDState, status);
420 GEN_CHECK_OFF(KBDState, mode);
421 GEN_CHECK_OFF(KBDState, pDevInsR3);
422 GEN_CHECK_OFF(KBDState, pDevInsR0);
423 GEN_CHECK_OFF(KBDState, pDevInsRC);
424 GEN_CHECK_SIZE(KbdKeyQ);
425 GEN_CHECK_OFF(KbdCmdQ, rpos);
426 GEN_CHECK_OFF(KbdCmdQ, wpos);
427 GEN_CHECK_OFF(KbdCmdQ, cUsed);
428 GEN_CHECK_OFF(KbdCmdQ, cSize);
429 GEN_CHECK_OFF(KbdCmdQ, abQueue);
430 GEN_CHECK_SIZE(KbdCmdQ);
431 /* Input/PS2K.c */
432 GEN_CHECK_SIZE(PS2K);
433 GEN_CHECK_OFF(PS2K, fScanning);
434 GEN_CHECK_OFF(PS2K, fNumLockOn);
435 GEN_CHECK_OFF(PS2K, u8ScanSet);
436 GEN_CHECK_OFF(PS2K, u8Typematic);
437 GEN_CHECK_OFF(PS2K, enmTypematicState);
438 GEN_CHECK_OFF(PS2K, keyQ);
439 GEN_CHECK_OFF(PS2K, cmdQ);
440 GEN_CHECK_OFF(PS2K, uTypematicDelay);
441 GEN_CHECK_OFF(PS2K, pKbdDelayTimerRC);
442 GEN_CHECK_OFF(PS2K, pKbdDelayTimerR3);
443 GEN_CHECK_OFF(PS2K, pKbdDelayTimerR0);
444 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerRC);
445 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerR3);
446 GEN_CHECK_OFF(PS2K, pKbdTypematicTimerR0);
447 GEN_CHECK_OFF(PS2K, pCritSectR3);
448 GEN_CHECK_OFF(PS2K, Keyboard.IBase);
449 GEN_CHECK_OFF(PS2K, Keyboard.IPort);
450 GEN_CHECK_OFF(PS2K, Keyboard.pDrvBase);
451 GEN_CHECK_OFF(PS2K, Keyboard.pDrv);
452 /* Input/PS2M.c */
453 GEN_CHECK_SIZE(PS2M);
454 GEN_CHECK_OFF(PS2M, u8State);
455 GEN_CHECK_OFF(PS2M, u8SampleRate);
456 GEN_CHECK_OFF(PS2M, u8Resolution);
457 GEN_CHECK_OFF(PS2M, u8CurrCmd);
458 GEN_CHECK_OFF(PS2M, fThrottleActive);
459 GEN_CHECK_OFF(PS2M, fDelayReset);
460 GEN_CHECK_OFF(PS2M, enmMode);
461 GEN_CHECK_OFF(PS2M, enmProtocol);
462 GEN_CHECK_OFF(PS2M, enmKnockState);
463 GEN_CHECK_OFF(PS2M, evtQ);
464 GEN_CHECK_OFF(PS2M, cmdQ);
465 GEN_CHECK_OFF(PS2M, iAccumX);
466 GEN_CHECK_OFF(PS2M, fAccumB);
467 GEN_CHECK_OFF(PS2M, fCurrB);
468 GEN_CHECK_OFF(PS2M, uThrottleDelay);
469 GEN_CHECK_OFF(PS2M, pCritSectR3);
470 GEN_CHECK_OFF(PS2M, pDelayTimerR3);
471 GEN_CHECK_OFF(PS2M, pThrottleTimerR3);
472 GEN_CHECK_OFF(PS2M, pDelayTimerRC);
473 GEN_CHECK_OFF(PS2M, pThrottleTimerRC);
474 GEN_CHECK_OFF(PS2M, pDelayTimerR0);
475 GEN_CHECK_OFF(PS2M, pThrottleTimerR0);
476 GEN_CHECK_OFF(PS2M, Mouse.IBase);
477 GEN_CHECK_OFF(PS2M, Mouse.IPort);
478 GEN_CHECK_OFF(PS2M, Mouse.pDrvBase);
479 GEN_CHECK_OFF(PS2M, Mouse.pDrv);
480
481 /* Network/DevPCNet.cpp */
482 GEN_CHECK_SIZE(PCNETSTATE);
483 GEN_CHECK_OFF(PCNETSTATE, PciDev);
484#ifndef PCNET_NO_POLLING
485 GEN_CHECK_OFF(PCNETSTATE, pTimerPollR3);
486 GEN_CHECK_OFF(PCNETSTATE, pTimerPollR0);
487 GEN_CHECK_OFF(PCNETSTATE, pTimerPollRC);
488#endif
489 GEN_CHECK_OFF(PCNETSTATE, pTimerSoftIntR3);
490 GEN_CHECK_OFF(PCNETSTATE, pTimerSoftIntR0);
491 GEN_CHECK_OFF(PCNETSTATE, pTimerSoftIntRC);
492 GEN_CHECK_OFF(PCNETSTATE, u32RAP);
493 GEN_CHECK_OFF(PCNETSTATE, iISR);
494 GEN_CHECK_OFF(PCNETSTATE, u32Lnkst);
495 GEN_CHECK_OFF(PCNETSTATE, GCRDRA);
496 GEN_CHECK_OFF(PCNETSTATE, GCTDRA);
497 GEN_CHECK_OFF(PCNETSTATE, aPROM);
498 GEN_CHECK_OFF(PCNETSTATE, aPROM[1]);
499 GEN_CHECK_OFF(PCNETSTATE, aCSR);
500 GEN_CHECK_OFF(PCNETSTATE, aCSR[1]);
501 GEN_CHECK_OFF(PCNETSTATE, aCSR[CSR_MAX_REG - 1]);
502 GEN_CHECK_OFF(PCNETSTATE, aBCR);
503 GEN_CHECK_OFF(PCNETSTATE, aBCR[1]);
504 GEN_CHECK_OFF(PCNETSTATE, aBCR[BCR_MAX_RAP - 1]);
505 GEN_CHECK_OFF(PCNETSTATE, aMII);
506 GEN_CHECK_OFF(PCNETSTATE, aMII[1]);
507 GEN_CHECK_OFF(PCNETSTATE, aMII[MII_MAX_REG - 1]);
508 GEN_CHECK_OFF(PCNETSTATE, u16CSR0LastSeenByGuest);
509 GEN_CHECK_OFF(PCNETSTATE, u64LastPoll);
510 GEN_CHECK_OFF(PCNETSTATE, abLoopBuf);
511 GEN_CHECK_OFF(PCNETSTATE, abRecvBuf);
512 GEN_CHECK_OFF(PCNETSTATE, iLog2DescSize);
513 GEN_CHECK_OFF(PCNETSTATE, GCUpperPhys);
514 GEN_CHECK_OFF(PCNETSTATE, pXmitQueueR3);
515 GEN_CHECK_OFF(PCNETSTATE, pXmitQueueR0);
516 GEN_CHECK_OFF(PCNETSTATE, pXmitQueueRC);
517 GEN_CHECK_OFF(PCNETSTATE, pCanRxQueueR3);
518 GEN_CHECK_OFF(PCNETSTATE, pCanRxQueueR0);
519 GEN_CHECK_OFF(PCNETSTATE, pCanRxQueueRC);
520 GEN_CHECK_OFF(PCNETSTATE, pTimerRestore);
521 GEN_CHECK_OFF(PCNETSTATE, pDevInsR3);
522 GEN_CHECK_OFF(PCNETSTATE, pDevInsR0);
523 GEN_CHECK_OFF(PCNETSTATE, pDevInsRC);
524 GEN_CHECK_OFF(PCNETSTATE, pDrvR3);
525 GEN_CHECK_OFF(PCNETSTATE, pDrvBase);
526 GEN_CHECK_OFF(PCNETSTATE, IBase);
527 GEN_CHECK_OFF(PCNETSTATE, INetworkDown);
528 GEN_CHECK_OFF(PCNETSTATE, INetworkConfig);
529 GEN_CHECK_OFF(PCNETSTATE, MMIOBase);
530 GEN_CHECK_OFF(PCNETSTATE, IOPortBase);
531 GEN_CHECK_OFF(PCNETSTATE, fLinkUp);
532 GEN_CHECK_OFF(PCNETSTATE, fLinkTempDown);
533 GEN_CHECK_OFF(PCNETSTATE, cLinkDownReported);
534 GEN_CHECK_OFF(PCNETSTATE, MacConfigured);
535 GEN_CHECK_OFF(PCNETSTATE, Led);
536 GEN_CHECK_OFF(PCNETSTATE, ILeds);
537 GEN_CHECK_OFF(PCNETSTATE, pLedsConnector);
538 GEN_CHECK_OFF(PCNETSTATE, CritSect);
539#ifdef PCNET_NO_POLLING
540 GEN_CHECK_OFF(PCNETSTATE, TDRAPhysOld);
541 GEN_CHECK_OFF(PCNETSTATE, cbTDRAOld);
542 GEN_CHECK_OFF(PCNETSTATE, RDRAPhysOld);
543 GEN_CHECK_OFF(PCNETSTATE, cbRDRAOld);
544 GEN_CHECK_OFF(PCNETSTATE, pfnEMInterpretInstructionGC
545 GEN_CHECK_OFF(PCNETSTATE, pfnEMInterpretInstructionR0
546#endif
547 GEN_CHECK_OFF(PCNETSTATE, fGCEnabled);
548 GEN_CHECK_OFF(PCNETSTATE, fR0Enabled);
549 GEN_CHECK_OFF(PCNETSTATE, fAm79C973);
550 GEN_CHECK_OFF(PCNETSTATE, u32LinkSpeed);
551 GEN_CHECK_OFF(PCNETSTATE, StatReceiveBytes);
552 GEN_CHECK_OFF(PCNETSTATE, StatTransmitBytes);
553#ifdef VBOX_WITH_STATISTICS
554 GEN_CHECK_OFF(PCNETSTATE, StatMMIOReadR3);
555 GEN_CHECK_OFF(PCNETSTATE, StatMMIOReadRZ);
556 GEN_CHECK_OFF(PCNETSTATE, StatMIIReads);
557# ifdef PCNET_NO_POLLING
558 GEN_CHECK_OFF(PCNETSTATE, StatRCVRingWrite);
559 GEN_CHECK_OFF(PCNETSTATE, StatRingWriteOutsideRangeR3);
560# endif
561#endif
562
563 /* PC/DevACPI.cpp */
564 GEN_CHECK_SIZE(ACPIState);
565 GEN_CHECK_OFF(ACPIState, dev);
566 GEN_CHECK_OFF(ACPIState, pm1a_en);
567 GEN_CHECK_OFF(ACPIState, pm1a_sts);
568 GEN_CHECK_OFF(ACPIState, pm1a_ctl);
569 GEN_CHECK_OFF(ACPIState, u64PmTimerInitial);
570 GEN_CHECK_OFF(ACPIState, pPmTimerR3);
571 GEN_CHECK_OFF(ACPIState, pPmTimerR0);
572 GEN_CHECK_OFF(ACPIState, pPmTimerRC);
573 GEN_CHECK_OFF(ACPIState, uPmTimerVal);
574 GEN_CHECK_OFF(ACPIState, gpe0_en);
575 GEN_CHECK_OFF(ACPIState, gpe0_sts);
576 GEN_CHECK_OFF(ACPIState, uBatteryIndex);
577 GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
578 GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
579 GEN_CHECK_OFF(ACPIState, u64RamSize);
580 GEN_CHECK_OFF(ACPIState, uSleepState);
581 GEN_CHECK_OFF(ACPIState, au8RSDPPage);
582 GEN_CHECK_OFF(ACPIState, u8IndexShift);
583 GEN_CHECK_OFF(ACPIState, u8UseIOApic);
584 GEN_CHECK_OFF(ACPIState, fUseFdc);
585 GEN_CHECK_OFF(ACPIState, fUseHpet);
586 GEN_CHECK_OFF(ACPIState, fUseSmc);
587 GEN_CHECK_OFF(ACPIState, CpuSetAttached);
588 GEN_CHECK_OFF(ACPIState, idCpuLockCheck);
589 GEN_CHECK_OFF(ACPIState, CpuSetLocked);
590 GEN_CHECK_OFF(ACPIState, u32CpuEventType);
591 GEN_CHECK_OFF(ACPIState, u32CpuEvent);
592 GEN_CHECK_OFF(ACPIState, fCpuHotPlug);
593 GEN_CHECK_OFF(ACPIState, u32NicPciAddress);
594 GEN_CHECK_OFF(ACPIState, u32HbcPciAddress);
595 GEN_CHECK_OFF(ACPIState, u64PciConfigMMioAddress);
596 GEN_CHECK_OFF(ACPIState, IBase);
597 GEN_CHECK_OFF(ACPIState, IACPIPort);
598 GEN_CHECK_OFF(ACPIState, pDevInsR3);
599 GEN_CHECK_OFF(ACPIState, pDevInsR0);
600 GEN_CHECK_OFF(ACPIState, pDrvBase);
601 GEN_CHECK_OFF(ACPIState, pDrv);
602 GEN_CHECK_OFF(ACPIState, u16SMBusSlvDat);
603
604 /* PC/DevPIC.cpp */
605 GEN_CHECK_SIZE(PICSTATE);
606 GEN_CHECK_OFF(PICSTATE, last_irr);
607 GEN_CHECK_OFF(PICSTATE, irr);
608 GEN_CHECK_OFF(PICSTATE, imr);
609 GEN_CHECK_OFF(PICSTATE, isr);
610 GEN_CHECK_OFF(PICSTATE, priority_add);
611 GEN_CHECK_OFF(PICSTATE, irq_base);
612 GEN_CHECK_OFF(PICSTATE, read_reg_select);
613 GEN_CHECK_OFF(PICSTATE, poll);
614 GEN_CHECK_OFF(PICSTATE, special_mask);
615 GEN_CHECK_OFF(PICSTATE, init_state);
616 GEN_CHECK_OFF(PICSTATE, auto_eoi);
617 GEN_CHECK_OFF(PICSTATE, rotate_on_auto_eoi);
618 GEN_CHECK_OFF(PICSTATE, special_fully_nested_mode);
619 GEN_CHECK_OFF(PICSTATE, init4);
620 GEN_CHECK_OFF(PICSTATE, elcr);
621 GEN_CHECK_OFF(PICSTATE, elcr_mask);
622 GEN_CHECK_OFF(PICSTATE, pDevInsR3);
623 GEN_CHECK_OFF(PICSTATE, pDevInsR0);
624 GEN_CHECK_OFF(PICSTATE, pDevInsRC);
625 GEN_CHECK_OFF(PICSTATE, idxPic);
626 GEN_CHECK_OFF(PICSTATE, auTags);
627
628 GEN_CHECK_SIZE(DEVPIC);
629 GEN_CHECK_OFF(DEVPIC, aPics);
630 GEN_CHECK_OFF(DEVPIC, aPics[1]);
631 GEN_CHECK_OFF(DEVPIC, pDevInsR3);
632 GEN_CHECK_OFF(DEVPIC, pDevInsR0);
633 GEN_CHECK_OFF(DEVPIC, pDevInsRC);
634 GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
635 GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
636 GEN_CHECK_OFF(DEVPIC, pPicHlpRC);
637#ifdef VBOX_WITH_STATISTICS
638 GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
639 GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
640#endif
641
642 /* PC/DevPit-i8254.cpp */
643 GEN_CHECK_SIZE(DMAState);
644 GEN_CHECK_OFF(DMAState, DMAC);
645 GEN_CHECK_OFF(DMAState, DMAC[0].ChState[0]);
646 GEN_CHECK_OFF(DMAState, DMAC[0].ChState[1]);
647 GEN_CHECK_OFF(DMAState, DMAC[0].u8Mask);
648 GEN_CHECK_OFF(DMAState, DMAC[1].ChState[0]);
649 GEN_CHECK_OFF(DMAState, DMAC[1].ChState[1]);
650 GEN_CHECK_OFF(DMAState, DMAC[1].u8Mask);
651
652 /* PC/DevPit-i8254.cpp */
653 GEN_CHECK_SIZE(PITCHANNEL);
654 GEN_CHECK_OFF(PITCHANNEL, pPitR3);
655 GEN_CHECK_OFF(PITCHANNEL, pTimerR3);
656 GEN_CHECK_OFF(PITCHANNEL, pPitR0);
657 GEN_CHECK_OFF(PITCHANNEL, pTimerR0);
658 GEN_CHECK_OFF(PITCHANNEL, pPitRC);
659 GEN_CHECK_OFF(PITCHANNEL, pTimerRC);
660 GEN_CHECK_OFF(PITCHANNEL, u64ReloadTS);
661 GEN_CHECK_OFF(PITCHANNEL, u64NextTS);
662 GEN_CHECK_OFF(PITCHANNEL, count_load_time);
663 GEN_CHECK_OFF(PITCHANNEL, next_transition_time);
664 GEN_CHECK_OFF(PITCHANNEL, irq);
665 GEN_CHECK_OFF(PITCHANNEL, cRelLogEntries);
666 GEN_CHECK_OFF(PITCHANNEL, count);
667 GEN_CHECK_OFF(PITCHANNEL, latched_count);
668 GEN_CHECK_OFF(PITCHANNEL, count_latched);
669 GEN_CHECK_OFF(PITCHANNEL, status_latched);
670 GEN_CHECK_OFF(PITCHANNEL, status);
671 GEN_CHECK_OFF(PITCHANNEL, read_state);
672 GEN_CHECK_OFF(PITCHANNEL, write_state);
673 GEN_CHECK_OFF(PITCHANNEL, write_latch);
674 GEN_CHECK_OFF(PITCHANNEL, rw_mode);
675 GEN_CHECK_OFF(PITCHANNEL, mode);
676 GEN_CHECK_OFF(PITCHANNEL, bcd);
677 GEN_CHECK_OFF(PITCHANNEL, gate);
678 GEN_CHECK_SIZE(PITSTATE);
679 GEN_CHECK_OFF(PITSTATE, channels);
680 GEN_CHECK_OFF(PITSTATE, channels[1]);
681 GEN_CHECK_OFF(PITSTATE, speaker_data_on);
682// GEN_CHECK_OFF(PITSTATE, dummy_refresh_clock);
683 GEN_CHECK_OFF(PITSTATE, IOPortBaseCfg);
684 GEN_CHECK_OFF(PITSTATE, fSpeakerCfg);
685 GEN_CHECK_OFF(PITSTATE, pDevIns);
686 GEN_CHECK_OFF(PITSTATE, StatPITIrq);
687 GEN_CHECK_OFF(PITSTATE, StatPITHandler);
688
689 /* PC/DevRTC.cpp */
690 GEN_CHECK_SIZE(RTCSTATE);
691 GEN_CHECK_OFF(RTCSTATE, cmos_data);
692 GEN_CHECK_OFF(RTCSTATE, cmos_data[1]);
693 GEN_CHECK_OFF(RTCSTATE, cmos_index);
694 GEN_CHECK_OFF(RTCSTATE, current_tm);
695 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_sec);
696 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_min);
697 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_hour);
698 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_mday);
699 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_mon);
700 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_year);
701 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_wday);
702 GEN_CHECK_OFF(RTCSTATE, current_tm.tm_yday);
703 GEN_CHECK_OFF(RTCSTATE, irq);
704 GEN_CHECK_OFF(RTCSTATE, fUTC);
705 GEN_CHECK_OFF(RTCSTATE, IOPortBase);
706 GEN_CHECK_OFF(RTCSTATE, pPeriodicTimerR0);
707 GEN_CHECK_OFF(RTCSTATE, pPeriodicTimerR3);
708 GEN_CHECK_OFF(RTCSTATE, pPeriodicTimerRC);
709 GEN_CHECK_OFF(RTCSTATE, next_periodic_time);
710 GEN_CHECK_OFF(RTCSTATE, next_second_time);
711 GEN_CHECK_OFF(RTCSTATE, pSecondTimerR0);
712 GEN_CHECK_OFF(RTCSTATE, pSecondTimerR3);
713 GEN_CHECK_OFF(RTCSTATE, pSecondTimerRC);
714 GEN_CHECK_OFF(RTCSTATE, pSecondTimer2R0);
715 GEN_CHECK_OFF(RTCSTATE, pSecondTimer2R3);
716 GEN_CHECK_OFF(RTCSTATE, pSecondTimer2RC);
717 GEN_CHECK_OFF(RTCSTATE, pDevInsR0);
718 GEN_CHECK_OFF(RTCSTATE, pDevInsR3);
719 GEN_CHECK_OFF(RTCSTATE, pDevInsRC);
720 GEN_CHECK_OFF(RTCSTATE, RtcReg);
721 GEN_CHECK_OFF(RTCSTATE, pRtcHlpR3);
722 GEN_CHECK_OFF(RTCSTATE, cRelLogEntries);
723 GEN_CHECK_OFF(RTCSTATE, CurLogPeriod);
724 GEN_CHECK_OFF(RTCSTATE, CurHintPeriod);
725
726 GEN_CHECK_SIZE(APIC);
727 GEN_CHECK_OFF(APIC, pApicDevR0);
728 GEN_CHECK_OFF(APIC, pApicDevR3);
729 GEN_CHECK_OFF(APIC, pApicDevRC);
730 GEN_CHECK_OFF(APIC, HCPhysApicPib);
731 GEN_CHECK_OFF(APIC, pvApicPibR0);
732 GEN_CHECK_OFF(APIC, pvApicPibR3);
733 GEN_CHECK_OFF(APIC, pvApicPibRC);
734 GEN_CHECK_OFF(APIC, cbApicPib);
735 GEN_CHECK_OFF(APIC, fVirtApicRegsEnabled);
736 GEN_CHECK_OFF(APIC, fPostedIntrsEnabled);
737 GEN_CHECK_OFF(APIC, fSupportsTscDeadline);
738 GEN_CHECK_OFF(APIC, fIoApicPresent);
739 GEN_CHECK_OFF(APIC, fRZEnabled);
740 GEN_CHECK_OFF(APIC, enmMaxMode);
741
742 GEN_CHECK_SIZE(APICCPU);
743 GEN_CHECK_OFF(APICCPU, pvApicPageR0);
744 GEN_CHECK_OFF(APICCPU, pvApicPageR3);
745 GEN_CHECK_OFF(APICCPU, pvApicPageRC);
746 GEN_CHECK_OFF(APICCPU, cbApicPage);
747 GEN_CHECK_OFF(APICCPU, uEsrInternal);
748 GEN_CHECK_OFF(APICCPU, uApicBaseMsr);
749 GEN_CHECK_OFF(APICCPU, HCPhysApicPib);
750 GEN_CHECK_OFF(APICCPU, pvApicPibR0);
751 GEN_CHECK_OFF(APICCPU, pvApicPibR3);
752 GEN_CHECK_OFF(APICCPU, pvApicPibRC);
753 GEN_CHECK_OFF(APICCPU, ApicPibLevel);
754 GEN_CHECK_OFF(APICCPU, pTimerR0);
755 GEN_CHECK_OFF(APICCPU, pTimerR3);
756 GEN_CHECK_OFF(APICCPU, pTimerRC);
757 GEN_CHECK_OFF(APICCPU, TimerCritSect);
758 GEN_CHECK_OFF(APICCPU, u64TimerInitial);
759 GEN_CHECK_OFF(APICCPU, uHintedTimerInitialCount);
760 GEN_CHECK_OFF(APICCPU, uHintedTimerShift);
761# ifdef VBOX_WITH_STATISTICS
762 GEN_CHECK_OFF(APICCPU, StatMmioReadRZ);
763 GEN_CHECK_OFF(APICCPU, StatMmioReadR3);
764 GEN_CHECK_OFF(APICCPU, StatMmioWriteRZ);
765 GEN_CHECK_OFF(APICCPU, StatMmioWriteR3);
766 GEN_CHECK_OFF(APICCPU, StatMsrReadRZ);
767 GEN_CHECK_OFF(APICCPU, StatMsrReadR3);
768 GEN_CHECK_OFF(APICCPU, StatMsrWriteRZ);
769 GEN_CHECK_OFF(APICCPU, StatMsrWriteR3);
770 GEN_CHECK_OFF(APICCPU, StatUpdatePendingIntrs);
771 GEN_CHECK_OFF(APICCPU, StatPostIntr);
772 GEN_CHECK_OFF(APICCPU, StatPostIntrAlreadyPending);
773 GEN_CHECK_OFF(APICCPU, StatTimerCallback);
774 GEN_CHECK_OFF(APICCPU, StatTprWrite);
775 GEN_CHECK_OFF(APICCPU, StatTprRead);
776 GEN_CHECK_OFF(APICCPU, StatEoiWrite);
777 GEN_CHECK_OFF(APICCPU, StatMaskedByTpr);
778 GEN_CHECK_OFF(APICCPU, StatMaskedByPpr);
779 GEN_CHECK_OFF(APICCPU, StatTimerIcrWrite);
780 GEN_CHECK_OFF(APICCPU, StatIcrLoWrite);
781 GEN_CHECK_OFF(APICCPU, StatIcrHiWrite);
782 GEN_CHECK_OFF(APICCPU, StatIcrFullWrite);
783# endif /* VBOX_WITH_STATISTICS */
784
785 /* PC/DevIoApic.cpp */
786 GEN_CHECK_SIZE(IOAPIC);
787 GEN_CHECK_OFF(IOAPIC, pDevInsR3);
788 GEN_CHECK_OFF(IOAPIC, pIoApicHlpR3);
789 GEN_CHECK_OFF(IOAPIC, pDevInsR0);
790 GEN_CHECK_OFF(IOAPIC, pIoApicHlpR0);
791 GEN_CHECK_OFF(IOAPIC, pDevInsRC);
792 GEN_CHECK_OFF(IOAPIC, pIoApicHlpRC);
793 GEN_CHECK_OFF(IOAPIC, u8Id);
794 GEN_CHECK_OFF(IOAPIC, u8Index);
795 GEN_CHECK_OFF(IOAPIC, cCpus);
796 GEN_CHECK_OFF(IOAPIC, au64RedirTable);
797 GEN_CHECK_OFF(IOAPIC, uIrr);
798# ifdef VBOX_WITH_STATISTICS
799 GEN_CHECK_OFF(IOAPIC, StatMmioReadRZ);
800 GEN_CHECK_OFF(IOAPIC, StatMmioReadR3);
801 GEN_CHECK_OFF(IOAPIC, StatMmioWriteRZ);
802 GEN_CHECK_OFF(IOAPIC, StatMmioWriteR3);
803 GEN_CHECK_OFF(IOAPIC, StatSetIrqRZ);
804 GEN_CHECK_OFF(IOAPIC, StatSetIrqR3);
805 GEN_CHECK_OFF(IOAPIC, StatSetEoiRZ);
806 GEN_CHECK_OFF(IOAPIC, StatSetEoiR3);
807# endif
808
809 /* Storage/DevATA.cpp */
810 GEN_CHECK_SIZE(BMDMAState);
811 GEN_CHECK_OFF(BMDMAState, u8Cmd);
812 GEN_CHECK_OFF(BMDMAState, u8Status);
813 GEN_CHECK_OFF(BMDMAState, GCPhysAddr);
814 GEN_CHECK_SIZE(BMDMADesc);
815 GEN_CHECK_OFF(BMDMADesc, GCPhysBuffer);
816 GEN_CHECK_OFF(BMDMADesc, cbBuffer);
817 GEN_CHECK_SIZE(ATADevState);
818 GEN_CHECK_OFF(ATADevState, fLBA48);
819 GEN_CHECK_OFF(ATADevState, fATAPI);
820 GEN_CHECK_OFF(ATADevState, fIrqPending);
821 GEN_CHECK_OFF(ATADevState, cMultSectors);
822 GEN_CHECK_OFF(ATADevState, cbSector);
823 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cCylinders);
824 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cHeads);
825 GEN_CHECK_OFF(ATADevState, PCHSGeometry.cSectors);
826 GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
827 GEN_CHECK_OFF(ATADevState, cTotalSectors);
828 GEN_CHECK_OFF(ATADevState, uATARegFeature);
829 GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
830 GEN_CHECK_OFF(ATADevState, uATARegError);
831 GEN_CHECK_OFF(ATADevState, uATARegNSector);
832 GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
833 GEN_CHECK_OFF(ATADevState, uATARegSector);
834 GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
835 GEN_CHECK_OFF(ATADevState, uATARegLCyl);
836 GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
837 GEN_CHECK_OFF(ATADevState, uATARegHCyl);
838 GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
839 GEN_CHECK_OFF(ATADevState, uATARegSelect);
840 GEN_CHECK_OFF(ATADevState, uATARegStatus);
841 GEN_CHECK_OFF(ATADevState, uATARegCommand);
842 GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
843 GEN_CHECK_OFF(ATADevState, uATATransferMode);
844 GEN_CHECK_OFF(ATADevState, uTxDir);
845 GEN_CHECK_OFF(ATADevState, iBeginTransfer);
846 GEN_CHECK_OFF(ATADevState, iSourceSink);
847 GEN_CHECK_OFF(ATADevState, fDMA);
848 GEN_CHECK_OFF(ATADevState, fATAPITransfer);
849 GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
850 GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
851 GEN_CHECK_OFF(ATADevState, iIOBufferCur);
852 GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
853 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
854 GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
855 GEN_CHECK_OFF(ATADevState, iATAPILBA);
856 GEN_CHECK_OFF(ATADevState, cbATAPISector);
857 GEN_CHECK_OFF(ATADevState, aATAPICmd);
858 GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
859 GEN_CHECK_OFF(ATADevState, abATAPISense);
860 GEN_CHECK_OFF(ATADevState, abATAPISense[ATAPI_SENSE_SIZE - 1]);
861 GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
862 GEN_CHECK_OFF(ATADevState, MediaEventStatus);
863 GEN_CHECK_OFF(ATADevState, MediaTrackType);
864 GEN_CHECK_OFF(ATADevState, Led);
865 GEN_CHECK_OFF(ATADevState, cbIOBuffer);
866 GEN_CHECK_OFF(ATADevState, pbIOBufferR3);
867 GEN_CHECK_OFF(ATADevState, pbIOBufferR0);
868 GEN_CHECK_OFF(ATADevState, pbIOBufferRC);
869 GEN_CHECK_OFF(ATADevState, StatATADMA);
870 GEN_CHECK_OFF(ATADevState, StatATAPIO);
871 GEN_CHECK_OFF(ATADevState, StatATAPIDMA);
872 GEN_CHECK_OFF(ATADevState, StatATAPIPIO);
873 GEN_CHECK_OFF(ATADevState, StatReads);
874 GEN_CHECK_OFF(ATADevState, StatBytesRead);
875 GEN_CHECK_OFF(ATADevState, StatWrites);
876 GEN_CHECK_OFF(ATADevState, StatBytesWritten);
877 GEN_CHECK_OFF(ATADevState, StatFlushes);
878 GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
879 GEN_CHECK_OFF(ATADevState, fOverwriteInquiry);
880 GEN_CHECK_OFF(ATADevState, cErrors);
881 GEN_CHECK_OFF(ATADevState, pDrvBase);
882 GEN_CHECK_OFF(ATADevState, pDrvMedia);
883 GEN_CHECK_OFF(ATADevState, pDrvMount);
884 GEN_CHECK_OFF(ATADevState, IBase);
885 GEN_CHECK_OFF(ATADevState, IPort);
886 GEN_CHECK_OFF(ATADevState, IMountNotify);
887 GEN_CHECK_OFF(ATADevState, iLUN);
888 GEN_CHECK_OFF(ATADevState, pDevInsR3);
889 GEN_CHECK_OFF(ATADevState, pDevInsR0);
890 GEN_CHECK_OFF(ATADevState, pDevInsRC);
891 GEN_CHECK_OFF(ATADevState, pControllerR3);
892 GEN_CHECK_OFF(ATADevState, pControllerR0);
893 GEN_CHECK_OFF(ATADevState, pControllerRC);
894 GEN_CHECK_OFF(ATADevState, szSerialNumber);
895 GEN_CHECK_OFF(ATADevState, szSerialNumber[ATA_SERIAL_NUMBER_LENGTH]);
896 GEN_CHECK_OFF(ATADevState, szFirmwareRevision);
897 GEN_CHECK_OFF(ATADevState, szFirmwareRevision[ATA_FIRMWARE_REVISION_LENGTH]);
898 GEN_CHECK_OFF(ATADevState, szModelNumber);
899 GEN_CHECK_OFF(ATADevState, szModelNumber[ATA_MODEL_NUMBER_LENGTH]);
900 GEN_CHECK_OFF(ATADevState, szInquiryVendorId);
901 GEN_CHECK_OFF(ATADevState, szInquiryVendorId[SCSI_INQUIRY_VENDOR_ID_LENGTH]);
902 GEN_CHECK_OFF(ATADevState, szInquiryProductId);
903 GEN_CHECK_OFF(ATADevState, szInquiryProductId[SCSI_INQUIRY_PRODUCT_ID_LENGTH]);
904 GEN_CHECK_OFF(ATADevState, szInquiryRevision);
905 GEN_CHECK_OFF(ATADevState, szInquiryRevision[SCSI_INQUIRY_REVISION_LENGTH]);
906 GEN_CHECK_OFF(ATADevState, pTrackList);
907 GEN_CHECK_SIZE(ATATransferRequest);
908 GEN_CHECK_OFF(ATATransferRequest, iIf);
909 GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
910 GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
911 GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
912 GEN_CHECK_OFF(ATATransferRequest, uTxDir);
913 GEN_CHECK_SIZE(ATAAbortRequest);
914 GEN_CHECK_OFF(ATAAbortRequest, iIf);
915 GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
916 GEN_CHECK_SIZE(ATARequest);
917 GEN_CHECK_OFF(ATARequest, ReqType);
918 GEN_CHECK_OFF(ATARequest, u);
919 GEN_CHECK_OFF(ATARequest, u.t);
920 GEN_CHECK_OFF(ATARequest, u.a);
921 GEN_CHECK_SIZE(ATACONTROLLER);
922 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
923 GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
924 GEN_CHECK_OFF(ATACONTROLLER, irq);
925 GEN_CHECK_OFF(ATACONTROLLER, lock);
926 GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
927 GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
928 GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
929 GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
930 GEN_CHECK_OFF(ATACONTROLLER, fReset);
931 GEN_CHECK_OFF(ATACONTROLLER, fRedo);
932 GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
933 GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
934 GEN_CHECK_OFF(ATACONTROLLER, BmDma);
935 GEN_CHECK_OFF(ATACONTROLLER, GCPhysFirstDMADesc);
936 GEN_CHECK_OFF(ATACONTROLLER, GCPhysLastDMADesc);
937 GEN_CHECK_OFF(ATACONTROLLER, GCPhysRedoDMABuffer);
938 GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
939 GEN_CHECK_OFF(ATACONTROLLER, aIfs);
940 GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
941 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR3);
942 GEN_CHECK_OFF(ATACONTROLLER, pDevInsR0);
943 GEN_CHECK_OFF(ATACONTROLLER, pDevInsRC);
944 GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
945 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
946 GEN_CHECK_OFF(ATACONTROLLER, hAsyncIOSem);
947 GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
948 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
949 GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
950 GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestLock);
951 GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
952 GEN_CHECK_OFF(ATACONTROLLER, fSignalIdle);
953 GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
954 GEN_CHECK_OFF(ATACONTROLLER, u64ResetTime);
955 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
956 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
957 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
958 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
959 GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
960 GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
961 GEN_CHECK_SIZE(PCIATAState);
962 GEN_CHECK_OFF(PCIATAState, dev);
963 GEN_CHECK_OFF(PCIATAState, aCts);
964 GEN_CHECK_OFF(PCIATAState, aCts[1]);
965 GEN_CHECK_OFF(PCIATAState, pDevIns);
966 GEN_CHECK_OFF(PCIATAState, IBase);
967 GEN_CHECK_OFF(PCIATAState, ILeds);
968 GEN_CHECK_OFF(PCIATAState, pLedsConnector);
969 GEN_CHECK_OFF(PCIATAState, fRCEnabled);
970 GEN_CHECK_OFF(PCIATAState, fR0Enabled);
971
972#ifdef VBOX_WITH_USB
973 /* USB/DevOHCI.cpp */
974 GEN_CHECK_SIZE(OHCIHUBPORT);
975 GEN_CHECK_OFF(OHCIHUBPORT, fReg);
976 GEN_CHECK_OFF(OHCIHUBPORT, pDev);
977
978 GEN_CHECK_SIZE(OHCIROOTHUB);
979 GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
980 GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
981 GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
982 GEN_CHECK_OFF(OHCIROOTHUB, IBase);
983 GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
984 GEN_CHECK_OFF(OHCIROOTHUB, status);
985 GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
986 GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
987 GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
988 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
989 GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP_MAX - 1]);
990 GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
991
992 GEN_CHECK_SIZE(OHCI);
993 GEN_CHECK_OFF(OHCI, PciDev);
994 GEN_CHECK_OFF(OHCI, MMIOBase);
995 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR3);
996 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerR0);
997 GEN_CHECK_OFF(OHCI, pEndOfFrameTimerRC);
998 GEN_CHECK_OFF(OHCI, pDevInsR3);
999 GEN_CHECK_OFF(OHCI, pDevInsR0);
1000 GEN_CHECK_OFF(OHCI, pDevInsRC);
1001 GEN_CHECK_OFF(OHCI, SofTime);
1002 //GEN_CHECK_OFF(OHCI, dqic:3);
1003 //GEN_CHECK_OFF(OHCI, fno:1);
1004 GEN_CHECK_OFF(OHCI, RootHub);
1005 GEN_CHECK_OFF(OHCI, ctl);
1006 GEN_CHECK_OFF(OHCI, status);
1007 GEN_CHECK_OFF(OHCI, intr_status);
1008 GEN_CHECK_OFF(OHCI, intr);
1009 GEN_CHECK_OFF(OHCI, hcca);
1010 GEN_CHECK_OFF(OHCI, per_cur);
1011 GEN_CHECK_OFF(OHCI, ctrl_cur);
1012 GEN_CHECK_OFF(OHCI, ctrl_head);
1013 GEN_CHECK_OFF(OHCI, bulk_cur);
1014 GEN_CHECK_OFF(OHCI, bulk_head);
1015 GEN_CHECK_OFF(OHCI, done);
1016 //GEN_CHECK_OFF(OHCI, fsmps:15);
1017 //GEN_CHECK_OFF(OHCI, fit:1);
1018 //GEN_CHECK_OFF(OHCI, fi:14);
1019 //GEN_CHECK_OFF(OHCI, frt:1);
1020 GEN_CHECK_OFF(OHCI, HcFmNumber);
1021 GEN_CHECK_OFF(OHCI, pstart);
1022 GEN_CHECK_OFF(OHCI, cTicksPerFrame);
1023 GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
1024 GEN_CHECK_OFF(OHCI, cInFlight);
1025 GEN_CHECK_OFF(OHCI, aInFlight);
1026 GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
1027 GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
1028 GEN_CHECK_OFF(OHCI, aInFlight[1]);
1029 GEN_CHECK_OFF(OHCI, cInDoneQueue);
1030 GEN_CHECK_OFF(OHCI, aInDoneQueue);
1031 GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
1032 GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
1033 GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
1034 GEN_CHECK_OFF(OHCI, pLoad);
1035# ifdef VBOX_WITH_STATISTICS
1036 GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
1037 GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
1038 GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
1039 GEN_CHECK_OFF(OHCI, StatTimer);
1040# endif
1041 GEN_CHECK_OFF(OHCI, CsIrq);
1042 GEN_CHECK_OFF(OHCI, CritSect);
1043
1044# ifdef VBOX_WITH_EHCI_IMPL
1045 /* USB/DevEHCI.cpp */
1046 GEN_CHECK_SIZE(EHCIHUBPORT);
1047 GEN_CHECK_OFF(EHCIHUBPORT, fReg);
1048 GEN_CHECK_OFF(EHCIHUBPORT, pDev);
1049
1050 GEN_CHECK_SIZE(EHCIROOTHUB);
1051 GEN_CHECK_OFF(EHCIROOTHUB, pIBase);
1052 GEN_CHECK_OFF(EHCIROOTHUB, pIRhConn);
1053 GEN_CHECK_OFF(EHCIROOTHUB, pIDev);
1054 GEN_CHECK_OFF(EHCIROOTHUB, IBase);
1055 GEN_CHECK_OFF(EHCIROOTHUB, IRhPort);
1056 GEN_CHECK_OFF(EHCIROOTHUB, Led);
1057 GEN_CHECK_OFF(EHCIROOTHUB, ILeds);
1058 GEN_CHECK_OFF(EHCIROOTHUB, pLedsConnector);
1059 GEN_CHECK_OFF(EHCIROOTHUB, aPorts);
1060 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[1]);
1061 GEN_CHECK_OFF(EHCIROOTHUB, aPorts[EHCI_NDP_MAX - 1]);
1062 GEN_CHECK_OFF(EHCIROOTHUB, pEhci);
1063
1064 GEN_CHECK_SIZE(EHCI);
1065 GEN_CHECK_OFF(EHCI, PciDev);
1066 GEN_CHECK_OFF(EHCI, MMIOBase);
1067 GEN_CHECK_OFF(EHCI, pDevInsR3);
1068 GEN_CHECK_OFF(EHCI, pDevInsR0);
1069 GEN_CHECK_OFF(EHCI, pDevInsRC);
1070 GEN_CHECK_OFF(EHCI, MMIOBase);
1071 GEN_CHECK_OFF(EHCI, SofTime);
1072 GEN_CHECK_OFF(EHCI, RootHub);
1073 GEN_CHECK_OFF(EHCI, cap_length);
1074 GEN_CHECK_OFF(EHCI, hci_version);
1075 GEN_CHECK_OFF(EHCI, hcs_params);
1076 GEN_CHECK_OFF(EHCI, hcc_params);
1077 GEN_CHECK_OFF(EHCI, cmd);
1078 GEN_CHECK_OFF(EHCI, intr_status);
1079 GEN_CHECK_OFF(EHCI, intr);
1080 GEN_CHECK_OFF(EHCI, frame_idx);
1081 GEN_CHECK_OFF(EHCI, ds_segment);
1082 GEN_CHECK_OFF(EHCI, periodic_list_base);
1083 GEN_CHECK_OFF(EHCI, async_list_base);
1084 GEN_CHECK_OFF(EHCI, config);
1085 GEN_CHECK_OFF(EHCI, uIrqInterval);
1086 GEN_CHECK_OFF(EHCI, HcFmNumber);
1087 GEN_CHECK_OFF(EHCI, uFramesPerTimerCall);
1088 GEN_CHECK_OFF(EHCI, cTicksPerFrame);
1089 GEN_CHECK_OFF(EHCI, cTicksPerUsbTick);
1090 GEN_CHECK_OFF(EHCI, cInFlight);
1091 GEN_CHECK_OFF(EHCI, aInFlight);
1092 GEN_CHECK_OFF(EHCI, aInFlight[0].GCPhysTD);
1093 GEN_CHECK_OFF(EHCI, aInFlight[0].pUrb);
1094 GEN_CHECK_OFF(EHCI, aInFlight[1]);
1095 GEN_CHECK_OFF(EHCI, aInFlight[256]);
1096 GEN_CHECK_OFF(EHCI, pLoad);
1097 GEN_CHECK_OFF(EHCI, fAsyncTraversalTimerActive);
1098# ifdef VBOX_WITH_STATISTICS
1099 GEN_CHECK_OFF(EHCI, StatCanceledIsocUrbs);
1100 GEN_CHECK_OFF(EHCI, StatCanceledGenUrbs);
1101 GEN_CHECK_OFF(EHCI, StatDroppedUrbs);
1102# endif
1103 GEN_CHECK_OFF(EHCI, u64TimerHz);
1104 GEN_CHECK_OFF(EHCI, cIdleCycles);
1105 GEN_CHECK_OFF(EHCI, uFrameRate);
1106 GEN_CHECK_OFF(EHCI, fIdle);
1107 GEN_CHECK_OFF(EHCI, hThreadFrame);
1108 GEN_CHECK_OFF(EHCI, hSemEventFrame);
1109 GEN_CHECK_OFF(EHCI, fBusStarted);
1110 GEN_CHECK_OFF(EHCI, CsIrq);
1111 GEN_CHECK_OFF(EHCI, uFrameRateDefault);
1112 GEN_CHECK_OFF(EHCI, nsWait);
1113 GEN_CHECK_OFF(EHCI, CritSect);
1114# endif /* VBOX_WITH_EHCI_IMPL */
1115
1116# ifdef VBOX_WITH_XHCI_IMPL
1117 /* USB/DevXHCI.cpp */
1118 GEN_CHECK_SIZE(XHCIHUBPORT);
1119 GEN_CHECK_OFF(XHCIHUBPORT, portsc);
1120 GEN_CHECK_OFF(XHCIHUBPORT, portpm);
1121 GEN_CHECK_OFF(XHCIHUBPORT, portli);
1122 GEN_CHECK_OFF(XHCIHUBPORT, pDev);
1123
1124 GEN_CHECK_SIZE(XHCIROOTHUB);
1125 GEN_CHECK_OFF(XHCIROOTHUB, pIBase);
1126 GEN_CHECK_OFF(XHCIROOTHUB, pIRhConn);
1127 GEN_CHECK_OFF(XHCIROOTHUB, pIDev);
1128 GEN_CHECK_OFF(XHCIROOTHUB, IBase);
1129 GEN_CHECK_OFF(XHCIROOTHUB, IRhPort);
1130 GEN_CHECK_OFF(XHCIROOTHUB, Led);
1131 GEN_CHECK_OFF(XHCIROOTHUB, cPortsImpl);
1132 GEN_CHECK_OFF(XHCIROOTHUB, pXhci);
1133
1134 GEN_CHECK_SIZE(XHCIINTRPTR);
1135 GEN_CHECK_OFF(XHCIINTRPTR, iman);
1136 GEN_CHECK_OFF(XHCIINTRPTR, imod);
1137 GEN_CHECK_OFF(XHCIINTRPTR, erstba);
1138 GEN_CHECK_OFF(XHCIINTRPTR, erdp);
1139 GEN_CHECK_OFF(XHCIINTRPTR, erep);
1140 GEN_CHECK_OFF(XHCIINTRPTR, erst_idx);
1141 GEN_CHECK_OFF(XHCIINTRPTR, trb_count);
1142 GEN_CHECK_OFF(XHCIINTRPTR, evtr_pcs);
1143 GEN_CHECK_OFF(XHCIINTRPTR, ipe);
1144
1145 GEN_CHECK_SIZE(XHCI);
1146 GEN_CHECK_OFF(XHCI, PciDev);
1147 GEN_CHECK_OFF(XHCI, pDevInsR3);
1148 GEN_CHECK_OFF(XHCI, pDevInsR0);
1149 GEN_CHECK_OFF(XHCI, pDevInsRC);
1150 GEN_CHECK_OFF(XHCI, pNotifierQueueR3);
1151 GEN_CHECK_OFF(XHCI, pNotifierQueueR0);
1152 GEN_CHECK_OFF(XHCI, pNotifierQueueRC);
1153 GEN_CHECK_OFF(XHCI, pWrapTimerR3);
1154 GEN_CHECK_OFF(XHCI, pWrapTimerR0);
1155 GEN_CHECK_OFF(XHCI, pWrapTimerRC);
1156 GEN_CHECK_OFF(XHCI, pWorkerThread);
1157 GEN_CHECK_OFF(XHCI, pSupDrvSession);
1158 GEN_CHECK_OFF(XHCI, hEvtProcess);
1159 GEN_CHECK_OFF(XHCI, fWrkThreadSleeping);
1160 GEN_CHECK_OFF(XHCI, u32TasksNew);
1161 GEN_CHECK_OFF(XHCI, ILeds);
1162 GEN_CHECK_OFF(XHCI, pLedsConnector);
1163 GEN_CHECK_OFF(XHCI, MMIOBase);
1164 GEN_CHECK_OFF(XHCI, RootHub2);
1165 GEN_CHECK_OFF(XHCI, RootHub3);
1166 GEN_CHECK_OFF(XHCI, aPorts);
1167 GEN_CHECK_OFF(XHCI, aPorts[1]);
1168 GEN_CHECK_OFF(XHCI, aPorts[XHCI_NDP_MAX - 1]);
1169 GEN_CHECK_OFF(XHCI, cap_length);
1170 GEN_CHECK_OFF(XHCI, hci_version);
1171 GEN_CHECK_OFF(XHCI, hcs_params3);
1172 GEN_CHECK_OFF(XHCI, hcc_params);
1173 GEN_CHECK_OFF(XHCI, dbell_off);
1174 GEN_CHECK_OFF(XHCI, rts_off);
1175 GEN_CHECK_OFF(XHCI, cmd);
1176 GEN_CHECK_OFF(XHCI, status);
1177 GEN_CHECK_OFF(XHCI, dnctrl);
1178 GEN_CHECK_OFF(XHCI, config);
1179 GEN_CHECK_OFF(XHCI, crcr);
1180 GEN_CHECK_OFF(XHCI, dcbaap);
1181 GEN_CHECK_OFF(XHCI, abExtCap);
1182 GEN_CHECK_OFF(XHCI, cbExtCap);
1183 GEN_CHECK_OFF(XHCI, cmdr_dqp);
1184 GEN_CHECK_OFF(XHCI, cmdr_ccs);
1185 GEN_CHECK_OFF(XHCI, aSlotState);
1186 GEN_CHECK_OFF(XHCI, aBellsRung);
1187 GEN_CHECK_OFF(XHCI, pLoad);
1188# ifdef VBOX_WITH_STATISTICS
1189 GEN_CHECK_OFF(XHCI, StatErrorIsocUrbs);
1190 GEN_CHECK_OFF(XHCI, StatErrorIsocPkts);
1191 GEN_CHECK_OFF(XHCI, StatEventsWritten);
1192 GEN_CHECK_OFF(XHCI, StatEventsDropped);
1193 GEN_CHECK_OFF(XHCI, StatIntrsPending);
1194 GEN_CHECK_OFF(XHCI, StatIntrsSet);
1195 GEN_CHECK_OFF(XHCI, StatIntrsNotSet);
1196 GEN_CHECK_OFF(XHCI, StatIntrsCleared);
1197# endif
1198# endif /* VBOX_WITH_XHCI_IMPL */
1199#endif /* VBOX_WITH_USB */
1200
1201 /* VMMDev/VBoxDev.cpp */
1202
1203 /* Parallel/DevParallel.cpp */
1204 GEN_CHECK_SIZE(PARALLELPORT);
1205 GEN_CHECK_OFF(PARALLELPORT, pDevInsR3);
1206 GEN_CHECK_OFF(PARALLELPORT, pDevInsR0);
1207 GEN_CHECK_OFF(PARALLELPORT, pDevInsRC);
1208 GEN_CHECK_OFF(PARALLELPORT, IBase);
1209 GEN_CHECK_OFF(PARALLELPORT, IHostParallelPort);
1210 GEN_CHECK_OFF(PARALLELPORT, pDrvHostParallelConnector);
1211 GEN_CHECK_OFF(PARALLELPORT, fGCEnabled);
1212 GEN_CHECK_OFF(PARALLELPORT, fR0Enabled);
1213 GEN_CHECK_OFF(PARALLELPORT, fEppTimeout);
1214 GEN_CHECK_OFF(PARALLELPORT, IOBase);
1215 GEN_CHECK_OFF(PARALLELPORT, iIrq);
1216 GEN_CHECK_OFF(PARALLELPORT, regData);
1217 GEN_CHECK_OFF(PARALLELPORT, regStatus);
1218 GEN_CHECK_OFF(PARALLELPORT, regControl);
1219 GEN_CHECK_OFF(PARALLELPORT, regEppAddr);
1220 GEN_CHECK_OFF(PARALLELPORT, regEppData);
1221#if 0
1222 GEN_CHECK_OFF(PARALLELPORT, reg_ecp_ecr);
1223 GEN_CHECK_OFF(PARALLELPORT, reg_ecp_base_plus_400h);
1224 GEN_CHECK_OFF(PARALLELPORT, reg_ecp_config_b);
1225 GEN_CHECK_OFF(PARALLELPORT, ecp_fifo);
1226 GEN_CHECK_OFF(PARALLELPORT, ecp_fifo[1]);
1227 GEN_CHECK_OFF(PARALLELPORT, act_fifo_pos_write);
1228 GEN_CHECK_OFF(PARALLELPORT, act_fifo_pos_read);
1229#endif
1230
1231 /* Serial/DevSerial.cpp */
1232 GEN_CHECK_SIZE(SerialState);
1233 GEN_CHECK_OFF(SerialState, CritSect);
1234 GEN_CHECK_OFF(SerialState, pDevInsR3);
1235 GEN_CHECK_OFF(SerialState, pDevInsR0);
1236 GEN_CHECK_OFF(SerialState, pDevInsRC);
1237 GEN_CHECK_OFF(SerialState, IBase);
1238 GEN_CHECK_OFF(SerialState, ICharPort);
1239 GEN_CHECK_OFF(SerialState, pDrvBase);
1240 GEN_CHECK_OFF(SerialState, pDrvChar);
1241 GEN_CHECK_OFF(SerialState, ReceiveSem);
1242 GEN_CHECK_OFF(SerialState, base);
1243 GEN_CHECK_OFF(SerialState, divider);
1244 GEN_CHECK_OFF(SerialState, recv_fifo);
1245 GEN_CHECK_OFF(SerialState, xmit_fifo);
1246 GEN_CHECK_OFF(SerialState, rbr);
1247 GEN_CHECK_OFF(SerialState, thr);
1248 GEN_CHECK_OFF(SerialState, tsr);
1249 GEN_CHECK_OFF(SerialState, ier);
1250 GEN_CHECK_OFF(SerialState, iir);
1251 GEN_CHECK_OFF(SerialState, lcr);
1252 GEN_CHECK_OFF(SerialState, mcr);
1253 GEN_CHECK_OFF(SerialState, lsr);
1254 GEN_CHECK_OFF(SerialState, msr);
1255 GEN_CHECK_OFF(SerialState, scr);
1256 GEN_CHECK_OFF(SerialState, fcr);
1257 GEN_CHECK_OFF(SerialState, fcr_vmstate);
1258 GEN_CHECK_OFF(SerialState, thr_ipending);
1259 GEN_CHECK_OFF(SerialState, timeout_ipending);
1260 GEN_CHECK_OFF(SerialState, irq);
1261 GEN_CHECK_OFF(SerialState, last_break_enable);
1262 GEN_CHECK_OFF(SerialState, tsr_retry);
1263 GEN_CHECK_OFF(SerialState, msr_changed);
1264 GEN_CHECK_OFF(SerialState, fGCEnabled);
1265 GEN_CHECK_OFF(SerialState, fR0Enabled);
1266 GEN_CHECK_OFF(SerialState, fYieldOnLSRRead);
1267 GEN_CHECK_OFF(SerialState, char_transmit_time);
1268
1269#ifdef VBOX_WITH_AHCI
1270 /* Storage/DevAHCI.cpp */
1271
1272 GEN_CHECK_SIZE(AHCIPort);
1273 GEN_CHECK_OFF(AHCIPort, pDevInsR3);
1274 GEN_CHECK_OFF(AHCIPort, pDevInsR0);
1275 GEN_CHECK_OFF(AHCIPort, pDevInsRC);
1276 GEN_CHECK_OFF(AHCIPort, pAhciR3);
1277 GEN_CHECK_OFF(AHCIPort, pAhciR0);
1278 GEN_CHECK_OFF(AHCIPort, pAhciRC);
1279 GEN_CHECK_OFF(AHCIPort, regCLB);
1280 GEN_CHECK_OFF(AHCIPort, regCLBU);
1281 GEN_CHECK_OFF(AHCIPort, regFB);
1282 GEN_CHECK_OFF(AHCIPort, regFBU);
1283 GEN_CHECK_OFF(AHCIPort, regIS);
1284 GEN_CHECK_OFF(AHCIPort, regIE);
1285 GEN_CHECK_OFF(AHCIPort, regCMD);
1286 GEN_CHECK_OFF(AHCIPort, regTFD);
1287 GEN_CHECK_OFF(AHCIPort, regSIG);
1288 GEN_CHECK_OFF(AHCIPort, regSSTS);
1289 GEN_CHECK_OFF(AHCIPort, regSCTL);
1290 GEN_CHECK_OFF(AHCIPort, regSERR);
1291 GEN_CHECK_OFF(AHCIPort, regSACT);
1292 GEN_CHECK_OFF(AHCIPort, regCI);
1293 GEN_CHECK_OFF(AHCIPort, cTasksActive);
1294 GEN_CHECK_OFF(AHCIPort, GCPhysAddrClb);
1295 GEN_CHECK_OFF(AHCIPort, GCPhysAddrFb);
1296 GEN_CHECK_OFF(AHCIPort, fPoweredOn);
1297 GEN_CHECK_OFF(AHCIPort, fSpunUp);
1298 GEN_CHECK_OFF(AHCIPort, fFirstD2HFisSent);
1299 GEN_CHECK_OFF(AHCIPort, fATAPI);
1300 GEN_CHECK_OFF(AHCIPort, fPortReset);
1301 GEN_CHECK_OFF(AHCIPort, fTrimEnabled);
1302 GEN_CHECK_OFF(AHCIPort, fResetDevice);
1303 GEN_CHECK_OFF(AHCIPort, fHotpluggable);
1304 GEN_CHECK_OFF(AHCIPort, fRedo);
1305 GEN_CHECK_OFF(AHCIPort, fWrkThreadSleeping);
1306 GEN_CHECK_OFF(AHCIPort, cTotalSectors);
1307 GEN_CHECK_OFF(AHCIPort, cbSector);
1308 GEN_CHECK_OFF(AHCIPort, cMultSectors);
1309 GEN_CHECK_OFF(AHCIPort, uATATransferMode);
1310 GEN_CHECK_OFF(AHCIPort, abATAPISense);
1311 GEN_CHECK_OFF(AHCIPort, cLogSectorsPerPhysicalExp);
1312 GEN_CHECK_OFF(AHCIPort, iLUN);
1313 GEN_CHECK_OFF(AHCIPort, u32TasksFinished);
1314 GEN_CHECK_OFF(AHCIPort, u32QueuedTasksFinished);
1315 GEN_CHECK_OFF(AHCIPort, u32TasksNew);
1316 GEN_CHECK_OFF(AHCIPort, u32TasksRedo);
1317 GEN_CHECK_OFF(AHCIPort, u32CurrentCommandSlot);
1318 GEN_CHECK_OFF(AHCIPort, pDrvBase);
1319 GEN_CHECK_OFF(AHCIPort, pDrvMedia);
1320 GEN_CHECK_OFF(AHCIPort, pDrvMediaEx);
1321 GEN_CHECK_OFF(AHCIPort, IBase);
1322 GEN_CHECK_OFF(AHCIPort, IPort);
1323 GEN_CHECK_OFF(AHCIPort, IMediaExPort);
1324 GEN_CHECK_OFF(AHCIPort, PCHSGeometry);
1325 GEN_CHECK_OFF(AHCIPort, Led);
1326 GEN_CHECK_OFF(AHCIPort, pAsyncIOThread);
1327
1328 GEN_CHECK_OFF(AHCIPort, pTaskErr);
1329 GEN_CHECK_OFF(AHCIPort, hEvtProcess);
1330 GEN_CHECK_OFF(AHCIPort, szSerialNumber);
1331 GEN_CHECK_OFF(AHCIPort, szSerialNumber[AHCI_SERIAL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
1332 GEN_CHECK_OFF(AHCIPort, szFirmwareRevision);
1333 GEN_CHECK_OFF(AHCIPort, szFirmwareRevision[AHCI_FIRMWARE_REVISION_LENGTH]); /* One additional byte for the termination.*/
1334 GEN_CHECK_OFF(AHCIPort, szModelNumber);
1335 GEN_CHECK_OFF(AHCIPort, szModelNumber[AHCI_MODEL_NUMBER_LENGTH]); /* One additional byte for the termination.*/
1336 GEN_CHECK_OFF(AHCIPort, cErrors);
1337 GEN_CHECK_OFF(AHCIPort, fRedo);
1338
1339 GEN_CHECK_SIZE(AHCI);
1340 GEN_CHECK_OFF(AHCI, dev);
1341 GEN_CHECK_OFF(AHCI, pDevInsR3);
1342 GEN_CHECK_OFF(AHCI, pDevInsR0);
1343 GEN_CHECK_OFF(AHCI, pDevInsRC);
1344 GEN_CHECK_OFF(AHCI, IBase);
1345 GEN_CHECK_OFF(AHCI, ILeds);
1346 GEN_CHECK_OFF(AHCI, pLedsConnector);
1347 GEN_CHECK_OFF(AHCI, MMIOBase);
1348 GEN_CHECK_OFF(AHCI, regHbaCap);
1349 GEN_CHECK_OFF(AHCI, regHbaCtrl);
1350 GEN_CHECK_OFF(AHCI, regHbaIs);
1351 GEN_CHECK_OFF(AHCI, regHbaPi);
1352 GEN_CHECK_OFF(AHCI, regHbaVs);
1353 GEN_CHECK_OFF(AHCI, regHbaCccCtl);
1354 GEN_CHECK_OFF(AHCI, regHbaCccPorts);
1355 GEN_CHECK_OFF(AHCI, regIdx);
1356 GEN_CHECK_OFF(AHCI, pHbaCccTimerR3);
1357 GEN_CHECK_OFF(AHCI, pHbaCccTimerR0);
1358 GEN_CHECK_OFF(AHCI, pHbaCccTimerRC);
1359 GEN_CHECK_OFF(AHCI, pNotifierQueueR3);
1360 GEN_CHECK_OFF(AHCI, pNotifierQueueR0);
1361 GEN_CHECK_OFF(AHCI, pNotifierQueueRC);
1362 GEN_CHECK_OFF(AHCI, uCccPortNr);
1363 GEN_CHECK_OFF(AHCI, uCccTimeout);
1364 GEN_CHECK_OFF(AHCI, uCccNr);
1365 GEN_CHECK_OFF(AHCI, uCccCurrentNr);
1366 GEN_CHECK_OFF(AHCI, ahciPort);
1367 GEN_CHECK_OFF(AHCI, ahciPort[AHCI_MAX_NR_PORTS_IMPL-1]);
1368 GEN_CHECK_OFF(AHCI, lock);
1369 GEN_CHECK_OFF(AHCI, u32PortsInterrupted);
1370 GEN_CHECK_OFF(AHCI, cThreadsActive);
1371 GEN_CHECK_OFF(AHCI, fReset);
1372 GEN_CHECK_OFF(AHCI, f64BitAddr);
1373 GEN_CHECK_OFF(AHCI, fGCEnabled);
1374 GEN_CHECK_OFF(AHCI, fR0Enabled);
1375 GEN_CHECK_OFF(AHCI, fSignalIdle);
1376 GEN_CHECK_OFF(AHCI, fBootable);
1377 GEN_CHECK_OFF(AHCI, fLegacyPortResetMethod);
1378 GEN_CHECK_OFF(AHCI, cPortsImpl);
1379 GEN_CHECK_OFF(AHCI, cCmdSlotsAvail);
1380 GEN_CHECK_OFF(AHCI, f8ByteMMIO4BytesWrittenSuccessfully);
1381 GEN_CHECK_OFF(AHCI, pSupDrvSession);
1382#endif /* VBOX_WITH_AHCI */
1383
1384#ifdef VBOX_WITH_E1000
1385 GEN_CHECK_SIZE(EEPROM93C46);
1386 GEN_CHECK_OFF(EEPROM93C46, m_eState);
1387 GEN_CHECK_OFF(EEPROM93C46, m_au16Data);
1388 GEN_CHECK_OFF(EEPROM93C46, m_fWriteEnabled);
1389 GEN_CHECK_OFF(EEPROM93C46, m_u16Word);
1390 GEN_CHECK_OFF(EEPROM93C46, m_u16Mask);
1391 GEN_CHECK_OFF(EEPROM93C46, m_u16Addr);
1392 GEN_CHECK_OFF(EEPROM93C46, m_u32InternalWires);
1393 GEN_CHECK_OFF(EEPROM93C46, m_eOp);
1394
1395 GEN_CHECK_SIZE(E1KSTATE);
1396 GEN_CHECK_OFF(E1KSTATE, IBase);
1397 GEN_CHECK_OFF(E1KSTATE, INetworkDown);
1398 GEN_CHECK_OFF(E1KSTATE, INetworkConfig);
1399 GEN_CHECK_OFF(E1KSTATE, ILeds);
1400 GEN_CHECK_OFF(E1KSTATE, pDrvBase);
1401 GEN_CHECK_OFF(E1KSTATE, pDrvR3);
1402 GEN_CHECK_OFF(E1KSTATE, pDrvR0);
1403 GEN_CHECK_OFF(E1KSTATE, pDrvRC);
1404 GEN_CHECK_OFF(E1KSTATE, pLedsConnector);
1405 GEN_CHECK_OFF(E1KSTATE, pDevInsR3);
1406 GEN_CHECK_OFF(E1KSTATE, pDevInsR0);
1407 GEN_CHECK_OFF(E1KSTATE, pDevInsRC);
1408 GEN_CHECK_OFF(E1KSTATE, pTxQueueR3);
1409 GEN_CHECK_OFF(E1KSTATE, pTxQueueR0);
1410 GEN_CHECK_OFF(E1KSTATE, pTxQueueRC);
1411 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR3);
1412 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueR0);
1413 GEN_CHECK_OFF(E1KSTATE, pCanRxQueueRC);
1414 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR3);
1415 GEN_CHECK_OFF(E1KSTATE, pRIDTimerR0);
1416 GEN_CHECK_OFF(E1KSTATE, pRIDTimerRC);
1417 GEN_CHECK_OFF(E1KSTATE, pRADTimerR3);
1418 GEN_CHECK_OFF(E1KSTATE, pRADTimerR0);
1419 GEN_CHECK_OFF(E1KSTATE, pRADTimerRC);
1420 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR3);
1421 GEN_CHECK_OFF(E1KSTATE, pTIDTimerR0);
1422 GEN_CHECK_OFF(E1KSTATE, pTIDTimerRC);
1423 GEN_CHECK_OFF(E1KSTATE, pTADTimerR3);
1424 GEN_CHECK_OFF(E1KSTATE, pTADTimerR0);
1425 GEN_CHECK_OFF(E1KSTATE, pTADTimerRC);
1426 GEN_CHECK_OFF(E1KSTATE, pIntTimerR3);
1427 GEN_CHECK_OFF(E1KSTATE, pIntTimerR0);
1428 GEN_CHECK_OFF(E1KSTATE, pIntTimerRC);
1429 GEN_CHECK_OFF(E1KSTATE, pLUTimerR3);
1430 GEN_CHECK_OFF(E1KSTATE, pLUTimerR0);
1431 GEN_CHECK_OFF(E1KSTATE, pLUTimerRC);
1432 GEN_CHECK_OFF(E1KSTATE, cs);
1433# ifndef E1K_GLOBAL_MUTEX
1434 GEN_CHECK_OFF(E1KSTATE, csRx);
1435# endif
1436 GEN_CHECK_OFF(E1KSTATE, addrMMReg);
1437 GEN_CHECK_OFF(E1KSTATE, macConfigured);
1438 GEN_CHECK_OFF(E1KSTATE, IOPortBase);
1439 GEN_CHECK_OFF(E1KSTATE, pciDevice);
1440 GEN_CHECK_OFF(E1KSTATE, u64AckedAt);
1441 GEN_CHECK_OFF(E1KSTATE, fIntRaised);
1442 GEN_CHECK_OFF(E1KSTATE, fCableConnected);
1443 GEN_CHECK_OFF(E1KSTATE, fR0Enabled);
1444 GEN_CHECK_OFF(E1KSTATE, fRCEnabled);
1445 GEN_CHECK_OFF(E1KSTATE, auRegs[E1K_NUM_OF_32BIT_REGS]);
1446 GEN_CHECK_OFF(E1KSTATE, led);
1447 GEN_CHECK_OFF(E1KSTATE, u32PktNo);
1448 GEN_CHECK_OFF(E1KSTATE, uSelectedReg);
1449 GEN_CHECK_OFF(E1KSTATE, auMTA[128]);
1450 GEN_CHECK_OFF(E1KSTATE, aRecAddr);
1451 GEN_CHECK_OFF(E1KSTATE, auVFTA[128]);
1452 GEN_CHECK_OFF(E1KSTATE, u16RxBSize);
1453 GEN_CHECK_OFF(E1KSTATE, fLocked);
1454 GEN_CHECK_OFF(E1KSTATE, fDelayInts);
1455 GEN_CHECK_OFF(E1KSTATE, fIntMaskUsed);
1456 GEN_CHECK_OFF(E1KSTATE, fMaybeOutOfSpace);
1457 GEN_CHECK_OFF(E1KSTATE, hEventMoreRxDescAvail);
1458 GEN_CHECK_OFF(E1KSTATE, contextTSE);
1459 GEN_CHECK_OFF(E1KSTATE, contextNormal);
1460# ifdef E1K_WITH_TXD_CACHE
1461 GEN_CHECK_OFF(E1KSTATE, aTxDescriptors);
1462 GEN_CHECK_OFF(E1KSTATE, nTxDFetched);
1463 GEN_CHECK_OFF(E1KSTATE, iTxDCurrent);
1464 GEN_CHECK_OFF(E1KSTATE, fGSO);
1465 GEN_CHECK_OFF(E1KSTATE, cbTxAlloc);
1466# endif
1467 GEN_CHECK_OFF(E1KSTATE, GsoCtx);
1468 GEN_CHECK_OFF(E1KSTATE, uTxFallback);
1469 GEN_CHECK_OFF(E1KSTATE, fVTag);
1470 GEN_CHECK_OFF(E1KSTATE, u16VTagTCI);
1471 GEN_CHECK_OFF(E1KSTATE, aTxPacketFallback[E1K_MAX_TX_PKT_SIZE]);
1472 GEN_CHECK_OFF(E1KSTATE, u16TxPktLen);
1473 GEN_CHECK_OFF(E1KSTATE, fIPcsum);
1474 GEN_CHECK_OFF(E1KSTATE, fTCPcsum);
1475 GEN_CHECK_OFF(E1KSTATE, u32PayRemain);
1476 GEN_CHECK_OFF(E1KSTATE, u16HdrRemain);
1477 GEN_CHECK_OFF(E1KSTATE, u16SavedFlags);
1478 GEN_CHECK_OFF(E1KSTATE, u32SavedCsum);
1479 GEN_CHECK_OFF(E1KSTATE, eeprom);
1480 GEN_CHECK_OFF(E1KSTATE, phy);
1481 GEN_CHECK_OFF(E1KSTATE, StatReceiveBytes);
1482#endif /* VBOX_WITH_E1000 */
1483
1484#ifdef VBOX_WITH_VIRTIO
1485 GEN_CHECK_OFF(VPCISTATE, cs);
1486 GEN_CHECK_OFF(VPCISTATE, szInstance);
1487 GEN_CHECK_OFF(VPCISTATE, IBase);
1488 GEN_CHECK_OFF(VPCISTATE, ILeds);
1489 GEN_CHECK_OFF(VPCISTATE, pLedsConnector);
1490 GEN_CHECK_OFF(VPCISTATE, pDevInsR3);
1491 GEN_CHECK_OFF(VPCISTATE, pDevInsR0);
1492 GEN_CHECK_OFF(VPCISTATE, pDevInsRC);
1493 GEN_CHECK_OFF(VPCISTATE, pciDevice);
1494 GEN_CHECK_OFF(VPCISTATE, IOPortBase);
1495 GEN_CHECK_OFF(VPCISTATE, led);
1496 GEN_CHECK_OFF(VPCISTATE, uGuestFeatures);
1497 GEN_CHECK_OFF(VPCISTATE, uQueueSelector);
1498 GEN_CHECK_OFF(VPCISTATE, uStatus);
1499 GEN_CHECK_OFF(VPCISTATE, uISR);
1500 GEN_CHECK_OFF(VPCISTATE, Queues);
1501 GEN_CHECK_OFF(VPCISTATE, Queues[VIRTIO_MAX_NQUEUES]);
1502 GEN_CHECK_OFF(VNETSTATE, VPCI);
1503 GEN_CHECK_OFF(VNETSTATE, INetworkDown);
1504 GEN_CHECK_OFF(VNETSTATE, INetworkConfig);
1505 GEN_CHECK_OFF(VNETSTATE, pDrvBase);
1506 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR3);
1507 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueR0);
1508 GEN_CHECK_OFF(VNETSTATE, pCanRxQueueRC);
1509 GEN_CHECK_OFF(VNETSTATE, pLinkUpTimer);
1510# ifdef VNET_TX_DELAY
1511 GEN_CHECK_OFF(VNETSTATE, pTxTimerR3);
1512 GEN_CHECK_OFF(VNETSTATE, pTxTimerR0);
1513 GEN_CHECK_OFF(VNETSTATE, pTxTimerRC);
1514# endif /* VNET_TX_DELAY */
1515 GEN_CHECK_OFF(VNETSTATE, config);
1516 GEN_CHECK_OFF(VNETSTATE, macConfigured);
1517 GEN_CHECK_OFF(VNETSTATE, fCableConnected);
1518 GEN_CHECK_OFF(VNETSTATE, u32PktNo);
1519 GEN_CHECK_OFF(VNETSTATE, fPromiscuous);
1520 GEN_CHECK_OFF(VNETSTATE, fAllMulti);
1521 GEN_CHECK_OFF(VNETSTATE, pRxQueue);
1522 GEN_CHECK_OFF(VNETSTATE, pTxQueue);
1523 GEN_CHECK_OFF(VNETSTATE, pCtlQueue);
1524 GEN_CHECK_OFF(VNETSTATE, fMaybeOutOfSpace);
1525 GEN_CHECK_OFF(VNETSTATE, hEventMoreRxDescAvail);
1526#endif /* VBOX_WITH_VIRTIO */
1527
1528#ifdef VBOX_WITH_SCSI
1529 GEN_CHECK_SIZE(VBOXSCSI);
1530 GEN_CHECK_OFF(VBOXSCSI, regIdentify);
1531 GEN_CHECK_OFF(VBOXSCSI, uTargetDevice);
1532 GEN_CHECK_OFF(VBOXSCSI, uTxDir);
1533 GEN_CHECK_OFF(VBOXSCSI, cbCDB);
1534 GEN_CHECK_OFF(VBOXSCSI, abCDB);
1535 GEN_CHECK_OFF(VBOXSCSI, abCDB[11]);
1536 GEN_CHECK_OFF(VBOXSCSI, iCDB);
1537 GEN_CHECK_OFF(VBOXSCSI, pbBuf);
1538 GEN_CHECK_OFF(VBOXSCSI, cbBuf);
1539 GEN_CHECK_OFF(VBOXSCSI, iBuf);
1540 GEN_CHECK_OFF(VBOXSCSI, fBusy);
1541 GEN_CHECK_OFF(VBOXSCSI, enmState);
1542#endif
1543
1544 /* VMMDev*.cpp/h */
1545 GEN_CHECK_SIZE(VMMDEV);
1546 GEN_CHECK_OFF(VMMDEV, PciDev);
1547 GEN_CHECK_OFF(VMMDEV, CritSect);
1548 GEN_CHECK_OFF(VMMDEV, hypervisorSize);
1549 GEN_CHECK_OFF(VMMDEV, mouseCapabilities);
1550 GEN_CHECK_OFF(VMMDEV, mouseXAbs);
1551 GEN_CHECK_OFF(VMMDEV, mouseYAbs);
1552 GEN_CHECK_OFF(VMMDEV, fHostCursorRequested);
1553 GEN_CHECK_OFF(VMMDEV, pDevIns);
1554 GEN_CHECK_OFF(VMMDEV, IBase);
1555 GEN_CHECK_OFF(VMMDEV, IPort);
1556#ifdef VBOX_WITH_HGCM
1557 GEN_CHECK_OFF(VMMDEV, IHGCMPort);
1558#endif
1559 GEN_CHECK_OFF(VMMDEV, pDrvBase);
1560 GEN_CHECK_OFF(VMMDEV, pDrv);
1561#ifdef VBOX_WITH_HGCM
1562 GEN_CHECK_OFF(VMMDEV, pHGCMDrv);
1563#endif
1564 GEN_CHECK_OFF(VMMDEV, szMsg);
1565 GEN_CHECK_OFF(VMMDEV, iMsg);
1566 GEN_CHECK_OFF(VMMDEV, irq);
1567 GEN_CHECK_OFF(VMMDEV, u32HostEventFlags);
1568 GEN_CHECK_OFF(VMMDEV, u32GuestFilterMask);
1569 GEN_CHECK_OFF(VMMDEV, u32NewGuestFilterMask);
1570 GEN_CHECK_OFF(VMMDEV, fNewGuestFilterMask);
1571 GEN_CHECK_OFF(VMMDEV, GCPhysVMMDevRAM);
1572 GEN_CHECK_OFF(VMMDEV, pVMMDevRAMR3);
1573 GEN_CHECK_OFF(VMMDEV, pVMMDevHeapR3);
1574 GEN_CHECK_OFF(VMMDEV, GCPhysVMMDevHeap);
1575 GEN_CHECK_OFF(VMMDEV, guestInfo);
1576 GEN_CHECK_OFF(VMMDEV, guestCaps);
1577 GEN_CHECK_OFF(VMMDEV, fu32AdditionsOk);
1578 GEN_CHECK_OFF(VMMDEV, u32VideoAccelEnabled);
1579 GEN_CHECK_OFF(VMMDEV, displayChangeData);
1580 GEN_CHECK_OFF(VMMDEV, pCredentials);
1581 GEN_CHECK_OFF(VMMDEV, cMbMemoryBalloon);
1582 GEN_CHECK_OFF(VMMDEV, cMbMemoryBalloonLast);
1583 GEN_CHECK_OFF(VMMDEV, cbGuestRAM);
1584 GEN_CHECK_OFF(VMMDEV, idSession);
1585 GEN_CHECK_OFF(VMMDEV, u32StatIntervalSize);
1586 GEN_CHECK_OFF(VMMDEV, u32LastStatIntervalSize);
1587 GEN_CHECK_OFF(VMMDEV, fLastSeamlessEnabled),
1588 GEN_CHECK_OFF(VMMDEV, fSeamlessEnabled);
1589 GEN_CHECK_OFF(VMMDEV, fVRDPEnabled);
1590 GEN_CHECK_OFF(VMMDEV, uVRDPExperienceLevel);
1591#ifdef VMMDEV_WITH_ALT_TIMESYNC
1592 GEN_CHECK_OFF(VMMDEV, hostTime);
1593 GEN_CHECK_OFF(VMMDEV, fTimesyncBackdoorLo);
1594#endif
1595 GEN_CHECK_OFF(VMMDEV, fGetHostTimeDisabled);
1596 GEN_CHECK_OFF(VMMDEV, fBackdoorLogDisabled);
1597 GEN_CHECK_OFF(VMMDEV, fKeepCredentials);
1598 GEN_CHECK_OFF(VMMDEV, fHeapEnabled);
1599#ifdef VBOX_WITH_HGCM
1600 GEN_CHECK_OFF(VMMDEV, pHGCMCmdList);
1601 GEN_CHECK_OFF(VMMDEV, critsectHGCMCmdList);
1602 GEN_CHECK_OFF(VMMDEV, u32HGCMEnabled);
1603#endif
1604 GEN_CHECK_OFF(VMMDEV, SharedFolders);
1605 GEN_CHECK_OFF(VMMDEV, SharedFolders.Led);
1606 GEN_CHECK_OFF(VMMDEV, SharedFolders.ILeds);
1607 GEN_CHECK_OFF(VMMDEV, SharedFolders.pLedsConnector);
1608 GEN_CHECK_OFF(VMMDEV, fCpuHotPlugEventsEnabled);
1609 GEN_CHECK_OFF(VMMDEV, enmCpuHotPlugEvent);
1610 GEN_CHECK_OFF(VMMDEV, idCpuCore);
1611 GEN_CHECK_OFF(VMMDEV, idCpuPackage);
1612 GEN_CHECK_OFF(VMMDEV, StatMemBalloonChunks);
1613 GEN_CHECK_OFF(VMMDEV, fRZEnabled);
1614 GEN_CHECK_OFF(VMMDEV, fTestingEnabled);
1615 GEN_CHECK_OFF(VMMDEV, fTestingMMIO);
1616 GEN_CHECK_OFF(VMMDEV, u32TestingHighTimestamp);
1617 GEN_CHECK_OFF(VMMDEV, u32TestingCmd);
1618 GEN_CHECK_OFF(VMMDEV, offTestingData);
1619 GEN_CHECK_OFF(VMMDEV, TestingData);
1620 GEN_CHECK_OFF(VMMDEV, TestingData.Value.u64Value);
1621 GEN_CHECK_OFF(VMMDEV, TestingData.Value.u32Unit);
1622 GEN_CHECK_OFF(VMMDEV, TestingData.Value.szName);
1623 GEN_CHECK_OFF(VMMDEV, nsLastHeartbeatTS);
1624 GEN_CHECK_OFF(VMMDEV, fFlatlined);
1625 GEN_CHECK_OFF(VMMDEV, fHeartbeatActive);
1626 GEN_CHECK_OFF(VMMDEV, cNsHeartbeatInterval);
1627 GEN_CHECK_OFF(VMMDEV, cNsHeartbeatTimeout);
1628 GEN_CHECK_OFF(VMMDEV, pFlatlinedTimer);
1629
1630#ifdef VBOX_WITH_BUSLOGIC
1631 GEN_CHECK_SIZE(BUSLOGICDEVICE);
1632 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR3);
1633 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicR0);
1634 GEN_CHECK_OFF(BUSLOGICDEVICE, pBusLogicRC);
1635 GEN_CHECK_OFF(BUSLOGICDEVICE, fPresent);
1636 GEN_CHECK_OFF(BUSLOGICDEVICE, iLUN);
1637 GEN_CHECK_OFF(BUSLOGICDEVICE, IBase);
1638 GEN_CHECK_OFF(BUSLOGICDEVICE, IMediaPort);
1639 GEN_CHECK_OFF(BUSLOGICDEVICE, IMediaExPort);
1640 GEN_CHECK_OFF(BUSLOGICDEVICE, ILed);
1641 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvBase);
1642 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvMedia);
1643 GEN_CHECK_OFF(BUSLOGICDEVICE, pDrvMediaEx);
1644 GEN_CHECK_OFF(BUSLOGICDEVICE, Led);
1645 GEN_CHECK_OFF(BUSLOGICDEVICE, cOutstandingRequests);
1646
1647 GEN_CHECK_SIZE(BUSLOGIC);
1648 GEN_CHECK_OFF(BUSLOGIC, dev);
1649 GEN_CHECK_OFF(BUSLOGIC, pDevInsR3);
1650 GEN_CHECK_OFF(BUSLOGIC, pDevInsR0);
1651 GEN_CHECK_OFF(BUSLOGIC, pDevInsRC);
1652 GEN_CHECK_OFF(BUSLOGIC, IOPortBase);
1653 GEN_CHECK_OFF(BUSLOGIC, MMIOBase);
1654 GEN_CHECK_OFF(BUSLOGIC, regStatus);
1655 GEN_CHECK_OFF(BUSLOGIC, regInterrupt);
1656 GEN_CHECK_OFF(BUSLOGIC, regGeometry);
1657 GEN_CHECK_OFF(BUSLOGIC, LocalRam);
1658 GEN_CHECK_OFF(BUSLOGIC, uOperationCode);
1659 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer);
1660 GEN_CHECK_OFF(BUSLOGIC, aCommandBuffer[BUSLOGIC_COMMAND_SIZE_MAX]);
1661 GEN_CHECK_OFF(BUSLOGIC, iParameter);
1662 GEN_CHECK_OFF(BUSLOGIC, cbCommandParametersLeft);
1663 GEN_CHECK_OFF(BUSLOGIC, fUseLocalRam);
1664 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer);
1665 GEN_CHECK_OFF(BUSLOGIC, aReplyBuffer[BUSLOGIC_REPLY_SIZE_MAX]);
1666 GEN_CHECK_OFF(BUSLOGIC, iReply);
1667 GEN_CHECK_OFF(BUSLOGIC, cbReplyParametersLeft);
1668 GEN_CHECK_OFF(BUSLOGIC, fIRQEnabled);
1669 GEN_CHECK_OFF(BUSLOGIC, cMailbox);
1670 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxOutgoingBase);
1671 GEN_CHECK_OFF(BUSLOGIC, uMailboxOutgoingPositionCurrent);
1672 GEN_CHECK_OFF(BUSLOGIC, cMailboxesReady);
1673 GEN_CHECK_OFF(BUSLOGIC, fNotificationSent);
1674 GEN_CHECK_OFF(BUSLOGIC, GCPhysAddrMailboxIncomingBase);
1675 GEN_CHECK_OFF(BUSLOGIC, uMailboxIncomingPositionCurrent);
1676 GEN_CHECK_OFF(BUSLOGIC, fStrictRoundRobinMode);
1677 GEN_CHECK_OFF(BUSLOGIC, fExtendedLunCCBFormat);
1678 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR3);
1679 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueR0);
1680 GEN_CHECK_OFF(BUSLOGIC, pNotifierQueueRC);
1681 GEN_CHECK_OFF(BUSLOGIC, CritSectIntr);
1682 GEN_CHECK_OFF(BUSLOGIC, VBoxSCSI);
1683 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates);
1684 GEN_CHECK_OFF(BUSLOGIC, aDeviceStates[BUSLOGIC_MAX_DEVICES-1]);
1685 GEN_CHECK_OFF(BUSLOGIC, IBase);
1686 GEN_CHECK_OFF(BUSLOGIC, ILeds);
1687 GEN_CHECK_OFF(BUSLOGIC, pLedsConnector);
1688 GEN_CHECK_OFF(BUSLOGIC, pMediaNotify);
1689 GEN_CHECK_OFF(BUSLOGIC, fSignalIdle);
1690 GEN_CHECK_OFF(BUSLOGIC, fWrkThreadSleeping);
1691 GEN_CHECK_OFF(BUSLOGIC, fBiosReqPending);
1692 GEN_CHECK_OFF(BUSLOGIC, pSupDrvSession);
1693 GEN_CHECK_OFF(BUSLOGIC, hEvtProcess);
1694 GEN_CHECK_OFF(BUSLOGIC, paGCPhysAddrCCBRedo);
1695 GEN_CHECK_OFF(BUSLOGIC, cReqsRedo);
1696# ifdef LOG_ENABLED
1697 GEN_CHECK_OFF(BUSLOGIC, cInMailboxesReady);
1698# endif
1699#endif /* VBOX_WITH_BUSLOGIC */
1700
1701#ifdef VBOX_WITH_LSILOGIC
1702 GEN_CHECK_SIZE(LSILOGICSCSI);
1703 GEN_CHECK_OFF(LSILOGICSCSI, PciDev);
1704 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsR3);
1705 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsR0);
1706 GEN_CHECK_OFF(LSILOGICSCSI, pDevInsRC);
1707 GEN_CHECK_OFF(LSILOGICSCSI, fGCEnabled);
1708 GEN_CHECK_OFF(LSILOGICSCSI, fR0Enabled);
1709 GEN_CHECK_OFF(LSILOGICSCSI, enmState);
1710 GEN_CHECK_OFF(LSILOGICSCSI, enmWhoInit);
1711 GEN_CHECK_OFF(LSILOGICSCSI, enmDoorbellState);
1712 GEN_CHECK_OFF(LSILOGICSCSI, fDiagnosticEnabled);
1713 GEN_CHECK_OFF(LSILOGICSCSI, fNotificationSent);
1714 GEN_CHECK_OFF(LSILOGICSCSI, fEventNotificationEnabled);
1715 GEN_CHECK_OFF(LSILOGICSCSI, fDiagRegsEnabled);
1716 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueR3);
1717 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueR0);
1718 GEN_CHECK_OFF(LSILOGICSCSI, pNotificationQueueRC);
1719 GEN_CHECK_OFF(LSILOGICSCSI, cDeviceStates);
1720 GEN_CHECK_OFF(LSILOGICSCSI, paDeviceStates);
1721 GEN_CHECK_OFF(LSILOGICSCSI, GCPhysMMIOBase);
1722 GEN_CHECK_OFF(LSILOGICSCSI, IOPortBase);
1723 GEN_CHECK_OFF(LSILOGICSCSI, uInterruptMask);
1724 GEN_CHECK_OFF(LSILOGICSCSI, uInterruptStatus);
1725 GEN_CHECK_OFF(LSILOGICSCSI, aMessage);
1726 GEN_CHECK_OFF(LSILOGICSCSI, aMessage[sizeof(MptConfigurationRequest)-1]);
1727 GEN_CHECK_OFF(LSILOGICSCSI, iMessage);
1728 GEN_CHECK_OFF(LSILOGICSCSI, cMessage);
1729 GEN_CHECK_OFF(LSILOGICSCSI, ReplyBuffer);
1730 GEN_CHECK_OFF(LSILOGICSCSI, uNextReplyEntryRead);
1731 GEN_CHECK_OFF(LSILOGICSCSI, cReplySize);
1732 GEN_CHECK_OFF(LSILOGICSCSI, u16IOCFaultCode);
1733 GEN_CHECK_OFF(LSILOGICSCSI, u32HostMFAHighAddr);
1734 GEN_CHECK_OFF(LSILOGICSCSI, u32SenseBufferHighAddr);
1735 GEN_CHECK_OFF(LSILOGICSCSI, cMaxDevices);
1736 GEN_CHECK_OFF(LSILOGICSCSI, cMaxBuses);
1737 GEN_CHECK_OFF(LSILOGICSCSI, cbReplyFrame);
1738 GEN_CHECK_OFF(LSILOGICSCSI, iDiagnosticAccess);
1739 GEN_CHECK_OFF(LSILOGICSCSI, cReplyQueueEntries);
1740 GEN_CHECK_OFF(LSILOGICSCSI, cRequestQueueEntries);
1741 GEN_CHECK_OFF(LSILOGICSCSI, ReplyPostQueueCritSect);
1742 GEN_CHECK_OFF(LSILOGICSCSI, ReplyFreeQueueCritSect);
1743 GEN_CHECK_OFF(LSILOGICSCSI, RequestQueueCritSect);
1744 GEN_CHECK_OFF(LSILOGICSCSI, ReplyFreeQueueWriteCritSect);
1745 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseR3);
1746 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseR3);
1747 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseR3);
1748 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseR0);
1749 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseR0);
1750 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseR0);
1751 GEN_CHECK_OFF(LSILOGICSCSI, pReplyFreeQueueBaseRC);
1752 GEN_CHECK_OFF(LSILOGICSCSI, pReplyPostQueueBaseRC);
1753 GEN_CHECK_OFF(LSILOGICSCSI, pRequestQueueBaseRC);
1754 GEN_CHECK_OFF(LSILOGICSCSI, uReplyFreeQueueNextEntryFreeWrite);
1755 GEN_CHECK_OFF(LSILOGICSCSI, uReplyFreeQueueNextAddressRead);
1756 GEN_CHECK_OFF(LSILOGICSCSI, uReplyPostQueueNextEntryFreeWrite);
1757 GEN_CHECK_OFF(LSILOGICSCSI, uReplyPostQueueNextAddressRead);
1758 GEN_CHECK_OFF(LSILOGICSCSI, uRequestQueueNextEntryFreeWrite);
1759 GEN_CHECK_OFF(LSILOGICSCSI, uRequestQueueNextAddressRead);
1760 GEN_CHECK_OFF(LSILOGICSCSI, u16NextHandle);
1761 GEN_CHECK_OFF(LSILOGICSCSI, enmCtrlType);
1762 GEN_CHECK_OFF(LSILOGICSCSI, VBoxSCSI);
1763 GEN_CHECK_OFF(LSILOGICSCSI, IBase);
1764 GEN_CHECK_OFF(LSILOGICSCSI, ILeds);
1765 GEN_CHECK_OFF(LSILOGICSCSI, pLedsConnector);
1766 GEN_CHECK_OFF(LSILOGICSCSI, pMediaNotify);
1767 GEN_CHECK_OFF(LSILOGICSCSI, pConfigurationPages);
1768 GEN_CHECK_OFF(LSILOGICSCSI, fSignalIdle);
1769 GEN_CHECK_OFF(LSILOGICSCSI, fRedo);
1770 GEN_CHECK_OFF(LSILOGICSCSI, fWrkThreadSleeping);
1771 GEN_CHECK_OFF(LSILOGICSCSI, pTasksRedoHead);
1772 GEN_CHECK_OFF(LSILOGICSCSI, u32DiagMemAddr);
1773 GEN_CHECK_OFF(LSILOGICSCSI, cbMemRegns);
1774 GEN_CHECK_OFF(LSILOGICSCSI, ListMemRegns);
1775 GEN_CHECK_OFF(LSILOGICSCSI, pSupDrvSession);
1776 GEN_CHECK_OFF(LSILOGICSCSI, pThreadWrk);
1777 GEN_CHECK_OFF(LSILOGICSCSI, hEvtProcess);
1778#endif /* VBOX_WITH_LSILOGIC */
1779
1780 GEN_CHECK_SIZE(HPET);
1781 GEN_CHECK_OFF(HPET, pDevInsR3);
1782 GEN_CHECK_OFF(HPET, pDevInsR0);
1783 GEN_CHECK_OFF(HPET, pDevInsRC);
1784 GEN_CHECK_OFF(HPET, u64HpetOffset);
1785 GEN_CHECK_OFF(HPET, u32Capabilities);
1786 GEN_CHECK_OFF(HPET, u32Period);
1787 GEN_CHECK_OFF(HPET, u64HpetConfig);
1788 GEN_CHECK_OFF(HPET, u64Isr);
1789 GEN_CHECK_OFF(HPET, u64HpetCounter);
1790 GEN_CHECK_OFF(HPET, CritSect);
1791 GEN_CHECK_OFF(HPET, fIch9);
1792
1793 GEN_CHECK_SIZE(HPETTIMER);
1794 GEN_CHECK_OFF(HPETTIMER, pTimerR3);
1795 GEN_CHECK_OFF(HPETTIMER, pHpetR3);
1796 GEN_CHECK_OFF(HPETTIMER, pTimerR0);
1797 GEN_CHECK_OFF(HPETTIMER, pHpetR0);
1798 GEN_CHECK_OFF(HPETTIMER, pTimerRC);
1799 GEN_CHECK_OFF(HPETTIMER, pHpetRC);
1800 GEN_CHECK_OFF(HPETTIMER, idxTimer);
1801 GEN_CHECK_OFF(HPETTIMER, u64Config);
1802 GEN_CHECK_OFF(HPETTIMER, u64Cmp);
1803 GEN_CHECK_OFF(HPETTIMER, u64Fsb);
1804 GEN_CHECK_OFF(HPETTIMER, u64Period);
1805 GEN_CHECK_OFF(HPETTIMER, u8Wrap);
1806
1807 GEN_CHECK_SIZE(AC97DRIVER);
1808 GEN_CHECK_OFF(AC97DRIVER, Node);
1809 GEN_CHECK_OFF(AC97DRIVER, pAC97State);
1810 GEN_CHECK_OFF(AC97DRIVER, fFlags);
1811 GEN_CHECK_OFF(AC97DRIVER, uLUN);
1812 GEN_CHECK_OFF(AC97DRIVER, fAttached);
1813 GEN_CHECK_OFF(AC97DRIVER, pConnector);
1814 GEN_CHECK_OFF(AC97DRIVER, LineIn);
1815 GEN_CHECK_OFF(AC97DRIVER, MicIn);
1816 GEN_CHECK_OFF(AC97DRIVER, Out);
1817
1818 GEN_CHECK_SIZE(HDADRIVERSTREAM);
1819 GEN_CHECK_OFF(HDADRIVERSTREAM, DestSource);
1820 GEN_CHECK_OFF(HDADRIVERSTREAM, pMixStrm);
1821
1822 GEN_CHECK_SIZE(HDADRIVER);
1823 GEN_CHECK_OFF(HDADRIVER, Node);
1824 GEN_CHECK_OFF(HDADRIVER, pHDAState);
1825 GEN_CHECK_OFF(HDADRIVER, fFlags);
1826 GEN_CHECK_OFF(HDADRIVER, uLUN);
1827 GEN_CHECK_OFF(HDADRIVER, fAttached);
1828 GEN_CHECK_OFF(HDADRIVER, pConnector);
1829 GEN_CHECK_OFF(HDADRIVER, LineIn);
1830#ifdef VBOX_WITH_HDA_MIC_IN
1831 GEN_CHECK_OFF(HDADRIVER, MicIn);
1832#endif
1833 GEN_CHECK_OFF(HDADRIVER, Front);
1834#ifdef VBOX_WITH_HDA_51_SURROUND
1835 GEN_CHECK_OFF(HDADRIVER, CenterLFE);
1836 GEN_CHECK_OFF(HDADRIVER, Rear);
1837#endif
1838
1839 GEN_CHECK_SIZE(HDABDLESTATE);
1840 GEN_CHECK_OFF(HDABDLESTATE, u32BDLIndex);
1841 GEN_CHECK_OFF(HDABDLESTATE, cbBelowFIFOW);
1842 GEN_CHECK_OFF(HDABDLESTATE, u32BufOff);
1843
1844 GEN_CHECK_SIZE(HDABDLEDESC);
1845 GEN_CHECK_OFF(HDABDLEDESC, u64BufAdr);
1846 GEN_CHECK_OFF(HDABDLEDESC, u32BufSize);
1847 GEN_CHECK_OFF(HDABDLEDESC, fFlags);
1848
1849 GEN_CHECK_SIZE(HDABDLE);
1850 GEN_CHECK_OFF(HDABDLE, Desc);
1851 GEN_CHECK_OFF(HDABDLE, State);
1852
1853 GEN_CHECK_SIZE(HDASTREAMSTATE);
1854 GEN_CHECK_OFF(HDASTREAMSTATE, uCurBDLE);
1855 GEN_CHECK_OFF(HDASTREAMSTATE, fInReset);
1856 GEN_CHECK_OFF(HDASTREAMSTATE, Mapping);
1857 GEN_CHECK_OFF(HDASTREAMSTATE, BDLE);
1858 GEN_CHECK_OFF(HDASTREAMSTATE, pCircBuf);
1859
1860 GEN_CHECK_SIZE(HDASTREAMDBGINFORT);
1861
1862 GEN_CHECK_SIZE(HDASTREAMDBGINFO);
1863 GEN_CHECK_OFF(HDASTREAMDBGINFO, Runtime);
1864
1865 GEN_CHECK_SIZE(HDASTREAM);
1866 GEN_CHECK_OFF(HDASTREAM, u8SD);
1867 GEN_CHECK_OFF(HDASTREAM, u64BDLBase);
1868 GEN_CHECK_OFF(HDASTREAM, u16FMT);
1869 GEN_CHECK_OFF(HDASTREAM, u16FIFOS);
1870 GEN_CHECK_OFF(HDASTREAM, u16LVI);
1871 GEN_CHECK_OFF(HDASTREAM, State);
1872 GEN_CHECK_OFF(HDASTREAM, Dbg);
1873 GEN_CHECK_OFF(HDASTREAM, CritSect);
1874
1875 GEN_CHECK_SIZE(HDASTATE);
1876 GEN_CHECK_OFF(HDASTATE, PciDev);
1877 GEN_CHECK_OFF(HDASTATE, pDevInsR3);
1878 GEN_CHECK_OFF(HDASTATE, pDevInsR0);
1879 GEN_CHECK_OFF(HDASTATE, pDevInsRC);
1880 GEN_CHECK_OFF(HDASTATE, IBase);
1881 GEN_CHECK_OFF(HDASTATE, MMIOBaseAddr);
1882 GEN_CHECK_OFF(HDASTATE, au32Regs[0]);
1883 GEN_CHECK_OFF(HDASTATE, au32Regs[HDA_NUM_REGS]);
1884 GEN_CHECK_OFF(HDASTATE, aStreams);
1885 GEN_CHECK_OFF(HDASTATE, aTags);
1886 GEN_CHECK_OFF(HDASTATE, u64CORBBase);
1887 GEN_CHECK_OFF(HDASTATE, u64RIRBBase);
1888 GEN_CHECK_OFF(HDASTATE, u64DPBase);
1889 GEN_CHECK_OFF(HDASTATE, pu32CorbBuf);
1890 GEN_CHECK_OFF(HDASTATE, cbCorbBuf);
1891 GEN_CHECK_OFF(HDASTATE, pu64RirbBuf);
1892 GEN_CHECK_OFF(HDASTATE, cbRirbBuf);
1893 GEN_CHECK_OFF(HDASTATE, fR0Enabled);
1894 GEN_CHECK_OFF(HDASTATE, fRCEnabled);
1895#ifndef VBOX_WITH_AUDIO_CALLBACKS
1896#endif
1897#ifdef VBOX_WITH_STATISTICS
1898# ifndef VBOX_WITH_AUDIO_CALLBACKS
1899 GEN_CHECK_OFF(HDASTATE, StatTimer);
1900# endif
1901 GEN_CHECK_OFF(HDASTATE, StatBytesRead);
1902 GEN_CHECK_OFF(HDASTATE, StatBytesWritten);
1903#endif /* VBOX_WITH_STATISTICS */
1904 GEN_CHECK_OFF(HDASTATE, pCodec);
1905 GEN_CHECK_OFF(HDASTATE, lstDrv);
1906 GEN_CHECK_OFF(HDASTATE, pMixer);
1907 GEN_CHECK_OFF(HDASTATE, SinkFront);
1908#ifdef VBOX_WITH_HDA_51_SURROUND
1909 GEN_CHECK_OFF(HDASTATE, SinkCenterLFE);
1910 GEN_CHECK_OFF(HDASTATE, SinkRear);
1911#endif
1912 GEN_CHECK_OFF(HDASTATE, SinkLineIn);
1913#ifdef VBOX_WITH_HDA_MIC_IN
1914 GEN_CHECK_OFF(HDASTATE, SinkMicIn);
1915#endif
1916 GEN_CHECK_OFF(HDASTATE, u64WalClk);
1917 GEN_CHECK_OFF(HDASTATE, u16RespIntCnt);
1918 GEN_CHECK_OFF(HDASTATE, cPosAdjustFrames);
1919 GEN_CHECK_OFF(HDASTATE, u8IRQL);
1920
1921#ifdef VBOX_WITH_NVME_IMPL
1922 GEN_CHECK_SIZE(NVMEQUEUEHDR);
1923 GEN_CHECK_OFF(NVMEQUEUEHDR, u16Id);
1924 GEN_CHECK_OFF(NVMEQUEUEHDR, cEntries);
1925 GEN_CHECK_OFF(NVMEQUEUEHDR, enmState);
1926 GEN_CHECK_OFF(NVMEQUEUEHDR, GCPhysBase);
1927 GEN_CHECK_OFF(NVMEQUEUEHDR, cbEntry);
1928 GEN_CHECK_OFF(NVMEQUEUEHDR, idxHead);
1929 GEN_CHECK_OFF(NVMEQUEUEHDR, idxTail);
1930 GEN_CHECK_OFF(NVMEQUEUEHDR, fPhysCont);
1931 GEN_CHECK_OFF(NVMEQUEUEHDR, enmType);
1932
1933 GEN_CHECK_SIZE(NVMEQUEUESUBM);
1934 GEN_CHECK_OFF(NVMEQUEUESUBM, Hdr);
1935 GEN_CHECK_OFF(NVMEQUEUESUBM, u16CompletionQueueId);
1936 GEN_CHECK_OFF(NVMEQUEUESUBM, enmPriority);
1937 GEN_CHECK_OFF(NVMEQUEUESUBM, hEvtProcess);
1938 GEN_CHECK_OFF(NVMEQUEUESUBM, pWrkThrdR3);
1939 GEN_CHECK_OFF(NVMEQUEUESUBM, NdLstWrkThrdAssgnd);
1940 GEN_CHECK_OFF(NVMEQUEUESUBM, cReqsActive);
1941
1942 GEN_CHECK_SIZE(NVMEQUEUECOMP);
1943 GEN_CHECK_OFF(NVMEQUEUECOMP, Hdr);
1944 GEN_CHECK_OFF(NVMEQUEUECOMP, fIntrEnabled);
1945 GEN_CHECK_OFF(NVMEQUEUECOMP, u32IntrVec);
1946 GEN_CHECK_OFF(NVMEQUEUECOMP, cSubmQueuesRef);
1947 GEN_CHECK_OFF(NVMEQUEUECOMP, cWaiters);
1948 GEN_CHECK_OFF(NVMEQUEUECOMP, LstCompletionsWaiting);
1949 GEN_CHECK_OFF(NVMEQUEUECOMP, hMtx);
1950
1951 GEN_CHECK_SIZE(NVME);
1952 GEN_CHECK_OFF(NVME, PciDev);
1953 GEN_CHECK_OFF(NVME, pDevInsR3);
1954 GEN_CHECK_OFF(NVME, pDevInsR0);
1955 GEN_CHECK_OFF(NVME, pDevInsRC);
1956 GEN_CHECK_OFF(NVME, IBase);
1957 GEN_CHECK_OFF(NVME, ILeds);
1958 GEN_CHECK_OFF(NVME, pLedsConnector);
1959 GEN_CHECK_OFF(NVME, pSupDrvSession);
1960 GEN_CHECK_OFF(NVME, GCPhysMMIO);
1961 GEN_CHECK_OFF(NVME, IOPortBase);
1962 GEN_CHECK_OFF(NVME, cQueuesSubmMax);
1963 GEN_CHECK_OFF(NVME, cQueuesCompMax);
1964 GEN_CHECK_OFF(NVME, cQueueEntriesMax);
1965 GEN_CHECK_OFF(NVME, cTimeoutMax);
1966 GEN_CHECK_OFF(NVME, cWrkThrdsMax);
1967 GEN_CHECK_OFF(NVME, cCompQueuesWaitersMax);
1968 GEN_CHECK_OFF(NVME, cNamespaces);
1969 GEN_CHECK_OFF(NVME, szSerialNumber);
1970 GEN_CHECK_OFF(NVME, szModelNumber);
1971 GEN_CHECK_OFF(NVME, szFirmwareRevision);
1972 GEN_CHECK_OFF(NVME, fRCEnabled);
1973 GEN_CHECK_OFF(NVME, fR0Enabled);
1974 GEN_CHECK_OFF(NVME, enmState);
1975 GEN_CHECK_OFF(NVME, u32IntrMask);
1976 GEN_CHECK_OFF(NVME, aIntrVecs);
1977 GEN_CHECK_OFF(NVME, u32IoCompletionQueueEntrySize);
1978 GEN_CHECK_OFF(NVME, u32IoSubmissionQueueEntrySize);
1979 GEN_CHECK_OFF(NVME, uShutdwnNotifierLast);
1980 GEN_CHECK_OFF(NVME, uAmsSet);
1981 GEN_CHECK_OFF(NVME, uMpsSet);
1982 GEN_CHECK_OFF(NVME, uCssSet);
1983 GEN_CHECK_OFF(NVME, u32RegIdx);
1984 GEN_CHECK_OFF(NVME, cbPage);
1985 GEN_CHECK_OFF(NVME, paQueuesSubmR3);
1986 GEN_CHECK_OFF(NVME, paQueuesCompR3);
1987 GEN_CHECK_OFF(NVME, paQueuesSubmR0);
1988 GEN_CHECK_OFF(NVME, paQueuesCompR0);
1989 GEN_CHECK_OFF(NVME, paQueuesSubmRC);
1990 GEN_CHECK_OFF(NVME, paQueuesCompRC);
1991 GEN_CHECK_OFF(NVME, pvCtrlMemBufR3);
1992 GEN_CHECK_OFF(NVME, GCPhysCtrlMemBuf);
1993 GEN_CHECK_OFF(NVME, cbCtrlMemBuf);
1994 GEN_CHECK_OFF(NVME, u32CtrlMemBufSz);
1995 GEN_CHECK_OFF(NVME, pWakeQueueR3);
1996 GEN_CHECK_OFF(NVME, pWakeQueueR0);
1997 GEN_CHECK_OFF(NVME, pWakeQueueRC);
1998 GEN_CHECK_OFF(NVME, cAsyncEvtReqsMax);
1999 GEN_CHECK_OFF(NVME, CritSectAsyncEvtReqs);
2000 GEN_CHECK_OFF(NVME, paAsyncEvtReqCids);
2001 GEN_CHECK_OFF(NVME, paNamespaces);
2002 GEN_CHECK_OFF(NVME, cWrkThrdsCur);
2003 GEN_CHECK_OFF(NVME, cWrkThrdsActive);
2004 GEN_CHECK_OFF(NVME, LstWrkThrds);
2005 GEN_CHECK_OFF(NVME, CritSectWrkThrds);
2006 GEN_CHECK_OFF(NVME, fSignalIdle);
2007# ifdef VBOX_WITH_STATISTICS
2008 GEN_CHECK_OFF(NVME, aStatMemXfer[0]);
2009 GEN_CHECK_OFF(NVME, aStatMemXfer[NVME_CMBSZ_SUPP_BIT_IDX_MAX]);
2010# endif
2011#endif
2012
2013 return (0);
2014}
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