VirtualBox

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

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

get rid of the struct tm mess.

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