VirtualBox

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

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

#1865: DevE1000.

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