VirtualBox

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

Last change on this file since 7940 was 7940, checked in by vboxsync, 17 years ago

AHCI: fix 64bit finally

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