VirtualBox

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

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

AHCI: Use one queue for all ports

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