1 | /* $Id: tstDeviceStructSizeGC.cpp 3616 2007-07-14 21:09:52Z 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 | * If you received this file as part of a commercial VirtualBox
|
---|
21 | * distribution, then only the terms of your commercial VirtualBox
|
---|
22 | * license agreement apply instead of the previous paragraph.
|
---|
23 | */
|
---|
24 |
|
---|
25 |
|
---|
26 | /*
|
---|
27 | * Sanity checks.
|
---|
28 | */
|
---|
29 | #ifndef IN_GC
|
---|
30 | # error Incorrect template!
|
---|
31 | #endif
|
---|
32 | #if defined(IN_RING3) || defined(IN_RING0)
|
---|
33 | # error Incorrect template!
|
---|
34 | #endif
|
---|
35 |
|
---|
36 |
|
---|
37 | /*******************************************************************************
|
---|
38 | * Header Files *
|
---|
39 | *******************************************************************************/
|
---|
40 | #define VBOX_DEVICE_STRUCT_TESTCASE
|
---|
41 | #undef LOG_GROUP
|
---|
42 | #include "Bus/DevPCI.cpp" /* must be first! */
|
---|
43 | #undef LOG_GROUP
|
---|
44 | #include "Graphics/DevVGA.cpp"
|
---|
45 | #undef LOG_GROUP
|
---|
46 | #include "Input/DevPS2.cpp"
|
---|
47 | #undef LOG_GROUP
|
---|
48 | #include "Network/DevPCNet.cpp"
|
---|
49 | //#undef LOG_GROUP
|
---|
50 | //#include "Network/ne2000.c"
|
---|
51 | #undef LOG_GROUP
|
---|
52 | #include "PC/DevACPI.cpp"
|
---|
53 | #undef LOG_GROUP
|
---|
54 | #include "PC/DevPIC.cpp"
|
---|
55 | #undef LOG_GROUP
|
---|
56 | #include "PC/DevPit-i8254.cpp"
|
---|
57 | #undef LOG_GROUP
|
---|
58 | #include "PC/DevRTC.cpp"
|
---|
59 | #undef LOG_GROUP
|
---|
60 | #include "PC/DevAPIC.cpp"
|
---|
61 | #undef LOG_GROUP
|
---|
62 | #include "Storage/DevATA.cpp"
|
---|
63 | #ifdef VBOX_WITH_USB
|
---|
64 | # undef LOG_GROUP
|
---|
65 | # include "USB/DevOHCI.cpp"
|
---|
66 | #endif
|
---|
67 | #undef LOG_GROUP
|
---|
68 | #include "VMMDev/VBoxDev.cpp"
|
---|
69 | #undef LOG_GROUP
|
---|
70 | #include "Serial/DevSerial.cpp"
|
---|
71 |
|
---|
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 |
|
---|
80 | int 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, u32RAP);
|
---|
316 | GEN_CHECK_OFF(PCNetState, iISR);
|
---|
317 | GEN_CHECK_OFF(PCNetState, u32Lnkst);
|
---|
318 | GEN_CHECK_OFF(PCNetState, GCRDRA);
|
---|
319 | GEN_CHECK_OFF(PCNetState, GCTDRA);
|
---|
320 | GEN_CHECK_OFF(PCNetState, aPROM);
|
---|
321 | GEN_CHECK_OFF(PCNetState, aPROM[1]);
|
---|
322 | GEN_CHECK_OFF(PCNetState, aCSR);
|
---|
323 | GEN_CHECK_OFF(PCNetState, aCSR[1]);
|
---|
324 | GEN_CHECK_OFF(PCNetState, aCSR[CSR_MAX_REG - 1]);
|
---|
325 | GEN_CHECK_OFF(PCNetState, aBCR);
|
---|
326 | GEN_CHECK_OFF(PCNetState, aBCR[1]);
|
---|
327 | GEN_CHECK_OFF(PCNetState, aBCR[BCR_MAX_RAP - 1]);
|
---|
328 | GEN_CHECK_OFF(PCNetState, aMII);
|
---|
329 | GEN_CHECK_OFF(PCNetState, aMII[1]);
|
---|
330 | GEN_CHECK_OFF(PCNetState, aMII[MII_MAX_REG - 1]);
|
---|
331 | GEN_CHECK_OFF(PCNetState, u16CSR0LastSeenByGuest);
|
---|
332 | GEN_CHECK_OFF(PCNetState, u64LastPoll);
|
---|
333 | GEN_CHECK_OFF(PCNetState, abSendBuf);
|
---|
334 | GEN_CHECK_OFF(PCNetState, abRecvBuf);
|
---|
335 | GEN_CHECK_OFF(PCNetState, iLog2DescSize);
|
---|
336 | GEN_CHECK_OFF(PCNetState, GCUpperPhys);
|
---|
337 | GEN_CHECK_OFF(PCNetState, pXmitQueueHC);
|
---|
338 | GEN_CHECK_OFF(PCNetState, pXmitQueueGC);
|
---|
339 | GEN_CHECK_OFF(PCNetState, pCanRxQueueHC);
|
---|
340 | GEN_CHECK_OFF(PCNetState, pCanRxQueueGC);
|
---|
341 | GEN_CHECK_OFF(PCNetState, pTimerRestore);
|
---|
342 | GEN_CHECK_OFF(PCNetState, pDevInsHC);
|
---|
343 | GEN_CHECK_OFF(PCNetState, pDevInsGC);
|
---|
344 | GEN_CHECK_OFF(PCNetState, pDrv);
|
---|
345 | GEN_CHECK_OFF(PCNetState, pDrvBase);
|
---|
346 | GEN_CHECK_OFF(PCNetState, IBase);
|
---|
347 | GEN_CHECK_OFF(PCNetState, INetworkPort);
|
---|
348 | GEN_CHECK_OFF(PCNetState, INetworkConfig);
|
---|
349 | GEN_CHECK_OFF(PCNetState, MMIOBase);
|
---|
350 | GEN_CHECK_OFF(PCNetState, IOPortBase);
|
---|
351 | GEN_CHECK_OFF(PCNetState, fLinkUp);
|
---|
352 | GEN_CHECK_OFF(PCNetState, fLinkTempDown);
|
---|
353 | GEN_CHECK_OFF(PCNetState, cLinkDownReported);
|
---|
354 | GEN_CHECK_OFF(PCNetState, MacConfigured);
|
---|
355 | GEN_CHECK_OFF(PCNetState, Led);
|
---|
356 | GEN_CHECK_OFF(PCNetState, ILeds);
|
---|
357 | GEN_CHECK_OFF(PCNetState, pLedsConnector);
|
---|
358 | GEN_CHECK_OFF(PCNetState, hSendEventSem);
|
---|
359 | GEN_CHECK_OFF(PCNetState, hSendThread);
|
---|
360 | GEN_CHECK_OFF(PCNetState, CritSect);
|
---|
361 | GEN_CHECK_OFF(PCNetState, cPendingSends);
|
---|
362 | #ifdef PCNET_NO_POLLING
|
---|
363 | GEN_CHECK_OFF(PCNetState, TDRAPhysOld);
|
---|
364 | GEN_CHECK_OFF(PCNetState, cbTDRAOld);
|
---|
365 | GEN_CHECK_OFF(PCNetState, RDRAPhysOld);
|
---|
366 | GEN_CHECK_OFF(PCNetState, cbRDRAOld);
|
---|
367 | GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionGC
|
---|
368 | GEN_CHECK_OFF(PCNetState, pfnEMInterpretInstructionR0
|
---|
369 | #endif
|
---|
370 | GEN_CHECK_OFF(PCNetState, fGCEnabled);
|
---|
371 | GEN_CHECK_OFF(PCNetState, fR0Enabled);
|
---|
372 | GEN_CHECK_OFF(PCNetState, fAm79C973);
|
---|
373 | #ifdef VBOX_WITH_STATISTICS
|
---|
374 | GEN_CHECK_OFF(PCNetState, StatMMIOReadGC);
|
---|
375 | GEN_CHECK_OFF(PCNetState, StatMIIReads);
|
---|
376 | # ifdef PCNET_NO_POLLING
|
---|
377 | GEN_CHECK_OFF(PCNetState, StatRCVRingWrite);
|
---|
378 | GEN_CHECK_OFF(PCNetState, StatRingWriteOutsideRangeGC);
|
---|
379 | # endif
|
---|
380 | #endif
|
---|
381 |
|
---|
382 | /* PC/DevACPI.cpp */
|
---|
383 | GEN_CHECK_SIZE(ACPIState);
|
---|
384 | GEN_CHECK_OFF(ACPIState, dev);
|
---|
385 | GEN_CHECK_OFF(ACPIState, pm1a_en);
|
---|
386 | GEN_CHECK_OFF(ACPIState, pm1a_sts);
|
---|
387 | GEN_CHECK_OFF(ACPIState, pm1a_ctl);
|
---|
388 | GEN_CHECK_OFF(ACPIState, pm_timer_initial);
|
---|
389 | GEN_CHECK_OFF(ACPIState, tsHC);
|
---|
390 | GEN_CHECK_OFF(ACPIState, tsGC);
|
---|
391 | GEN_CHECK_OFF(ACPIState, gpe0_en);
|
---|
392 | GEN_CHECK_OFF(ACPIState, gpe0_sts);
|
---|
393 | GEN_CHECK_OFF(ACPIState, uBatteryIndex);
|
---|
394 | GEN_CHECK_OFF(ACPIState, au8BatteryInfo);
|
---|
395 | GEN_CHECK_OFF(ACPIState, uSystemInfoIndex);
|
---|
396 | GEN_CHECK_OFF(ACPIState, u64RamSize);
|
---|
397 | GEN_CHECK_OFF(ACPIState, uSleepState);
|
---|
398 | GEN_CHECK_OFF(ACPIState, au8RSDPPage);
|
---|
399 | GEN_CHECK_OFF(ACPIState, u8IndexShift);
|
---|
400 | GEN_CHECK_OFF(ACPIState, u8UseIOApic);
|
---|
401 | GEN_CHECK_OFF(ACPIState, IBase);
|
---|
402 | GEN_CHECK_OFF(ACPIState, IACPIPort);
|
---|
403 | GEN_CHECK_OFF(ACPIState, pDevIns);
|
---|
404 | GEN_CHECK_OFF(ACPIState, pDrvBase);
|
---|
405 | GEN_CHECK_OFF(ACPIState, pDrv);
|
---|
406 |
|
---|
407 | /* PC/DevPIC.cpp */
|
---|
408 | GEN_CHECK_SIZE(PicState);
|
---|
409 | GEN_CHECK_OFF(PicState, last_irr);
|
---|
410 | GEN_CHECK_OFF(PicState, irr);
|
---|
411 | GEN_CHECK_OFF(PicState, imr);
|
---|
412 | GEN_CHECK_OFF(PicState, isr);
|
---|
413 | GEN_CHECK_OFF(PicState, priority_add);
|
---|
414 | GEN_CHECK_OFF(PicState, irq_base);
|
---|
415 | GEN_CHECK_OFF(PicState, read_reg_select);
|
---|
416 | GEN_CHECK_OFF(PicState, poll);
|
---|
417 | GEN_CHECK_OFF(PicState, special_mask);
|
---|
418 | GEN_CHECK_OFF(PicState, init_state);
|
---|
419 | GEN_CHECK_OFF(PicState, auto_eoi);
|
---|
420 | GEN_CHECK_OFF(PicState, rotate_on_auto_eoi);
|
---|
421 | GEN_CHECK_OFF(PicState, special_fully_nested_mode);
|
---|
422 | GEN_CHECK_OFF(PicState, init4);
|
---|
423 | GEN_CHECK_OFF(PicState, elcr);
|
---|
424 | GEN_CHECK_OFF(PicState, elcr_mask);
|
---|
425 | GEN_CHECK_OFF(PicState, pDevInsHC);
|
---|
426 | GEN_CHECK_OFF(PicState, pDevInsGC);
|
---|
427 |
|
---|
428 | GEN_CHECK_SIZE(DEVPIC);
|
---|
429 | GEN_CHECK_OFF(DEVPIC, aPics);
|
---|
430 | GEN_CHECK_OFF(DEVPIC, aPics[1]);
|
---|
431 | GEN_CHECK_OFF(DEVPIC, pDevInsHC);
|
---|
432 | GEN_CHECK_OFF(DEVPIC, pDevInsGC);
|
---|
433 | GEN_CHECK_OFF(DEVPIC, pPicHlpR3);
|
---|
434 | GEN_CHECK_OFF(DEVPIC, pPicHlpGC);
|
---|
435 | GEN_CHECK_OFF(DEVPIC, pPicHlpR0);
|
---|
436 | #ifdef VBOX_WITH_STATISTICS
|
---|
437 | GEN_CHECK_OFF(DEVPIC, StatSetIrqGC);
|
---|
438 | GEN_CHECK_OFF(DEVPIC, StatClearedActiveSlaveIRQ);
|
---|
439 | #endif
|
---|
440 |
|
---|
441 | /* PC/DevPit-i8254.cpp */
|
---|
442 | GEN_CHECK_SIZE(PITChannelState);
|
---|
443 | GEN_CHECK_OFF(PITChannelState, pPitHC);
|
---|
444 | GEN_CHECK_OFF(PITChannelState, pTimerHC);
|
---|
445 | GEN_CHECK_OFF(PITChannelState, pPitGC);
|
---|
446 | GEN_CHECK_OFF(PITChannelState, pTimerGC);
|
---|
447 | GEN_CHECK_OFF(PITChannelState, u64ReloadTS);
|
---|
448 | GEN_CHECK_OFF(PITChannelState, u64NextTS);
|
---|
449 | GEN_CHECK_OFF(PITChannelState, count_load_time);
|
---|
450 | GEN_CHECK_OFF(PITChannelState, next_transition_time);
|
---|
451 | GEN_CHECK_OFF(PITChannelState, irq);
|
---|
452 | GEN_CHECK_OFF(PITChannelState, cRelLogEntries);
|
---|
453 | GEN_CHECK_OFF(PITChannelState, count);
|
---|
454 | GEN_CHECK_OFF(PITChannelState, latched_count);
|
---|
455 | GEN_CHECK_OFF(PITChannelState, count_latched);
|
---|
456 | GEN_CHECK_OFF(PITChannelState, status_latched);
|
---|
457 | GEN_CHECK_OFF(PITChannelState, status);
|
---|
458 | GEN_CHECK_OFF(PITChannelState, read_state);
|
---|
459 | GEN_CHECK_OFF(PITChannelState, write_state);
|
---|
460 | GEN_CHECK_OFF(PITChannelState, write_latch);
|
---|
461 | GEN_CHECK_OFF(PITChannelState, rw_mode);
|
---|
462 | GEN_CHECK_OFF(PITChannelState, mode);
|
---|
463 | GEN_CHECK_OFF(PITChannelState, bcd);
|
---|
464 | GEN_CHECK_OFF(PITChannelState, gate);
|
---|
465 | GEN_CHECK_SIZE(PITState);
|
---|
466 | GEN_CHECK_OFF(PITState, channels);
|
---|
467 | GEN_CHECK_OFF(PITState, channels[1]);
|
---|
468 | GEN_CHECK_OFF(PITState, speaker_data_on);
|
---|
469 | GEN_CHECK_OFF(PITState, dummy_refresh_clock);
|
---|
470 | GEN_CHECK_OFF(PITState, pDevIns);
|
---|
471 | GEN_CHECK_OFF(PITState, StatPITIrq);
|
---|
472 | GEN_CHECK_OFF(PITState, StatPITHandler);
|
---|
473 |
|
---|
474 | /* PC/DevRTC.cpp */
|
---|
475 | GEN_CHECK_SIZE(RTCState);
|
---|
476 | GEN_CHECK_OFF(RTCState, cmos_data);
|
---|
477 | GEN_CHECK_OFF(RTCState, cmos_data[1]);
|
---|
478 | GEN_CHECK_OFF(RTCState, cmos_index);
|
---|
479 | GEN_CHECK_OFF(RTCState, current_tm);
|
---|
480 | GEN_CHECK_OFF(RTCState, current_tm.tm_sec);
|
---|
481 | GEN_CHECK_OFF(RTCState, current_tm.tm_min);
|
---|
482 | GEN_CHECK_OFF(RTCState, current_tm.tm_hour);
|
---|
483 | GEN_CHECK_OFF(RTCState, current_tm.tm_mday);
|
---|
484 | GEN_CHECK_OFF(RTCState, current_tm.tm_mon);
|
---|
485 | GEN_CHECK_OFF(RTCState, current_tm.tm_year);
|
---|
486 | GEN_CHECK_OFF(RTCState, current_tm.tm_wday);
|
---|
487 | GEN_CHECK_OFF(RTCState, current_tm.tm_yday);
|
---|
488 | GEN_CHECK_OFF(RTCState, current_tm.tm_isdst);
|
---|
489 | GEN_CHECK_OFF(RTCState, irq);
|
---|
490 | GEN_CHECK_OFF(RTCState, pPeriodicTimerHC);
|
---|
491 | GEN_CHECK_OFF(RTCState, pPeriodicTimerGC);
|
---|
492 | GEN_CHECK_OFF(RTCState, next_periodic_time);
|
---|
493 | GEN_CHECK_OFF(RTCState, next_second_time);
|
---|
494 | GEN_CHECK_OFF(RTCState, pSecondTimerHC);
|
---|
495 | GEN_CHECK_OFF(RTCState, pSecondTimerGC);
|
---|
496 | GEN_CHECK_OFF(RTCState, pSecondTimer2HC);
|
---|
497 | GEN_CHECK_OFF(RTCState, pSecondTimer2GC);
|
---|
498 | GEN_CHECK_OFF(RTCState, pDevInsHC);
|
---|
499 | GEN_CHECK_OFF(RTCState, pDevInsGC);
|
---|
500 | GEN_CHECK_OFF(RTCState, fUTC);
|
---|
501 | GEN_CHECK_OFF(RTCState, RtcReg);
|
---|
502 | GEN_CHECK_OFF(RTCState, pRtcHlpHC);
|
---|
503 |
|
---|
504 | /* PC/apic.c */
|
---|
505 | GEN_CHECK_SIZE(APICState);
|
---|
506 | GEN_CHECK_OFF(APICState, apicbase);
|
---|
507 | GEN_CHECK_OFF(APICState, id);
|
---|
508 | GEN_CHECK_OFF(APICState, arb_id);
|
---|
509 | GEN_CHECK_OFF(APICState, tpr);
|
---|
510 | GEN_CHECK_OFF(APICState, spurious_vec);
|
---|
511 | GEN_CHECK_OFF(APICState, log_dest);
|
---|
512 | GEN_CHECK_OFF(APICState, dest_mode);
|
---|
513 | GEN_CHECK_OFF(APICState, isr);
|
---|
514 | GEN_CHECK_OFF(APICState, isr[1]);
|
---|
515 | GEN_CHECK_OFF(APICState, tmr);
|
---|
516 | GEN_CHECK_OFF(APICState, tmr[1]);
|
---|
517 | GEN_CHECK_OFF(APICState, irr);
|
---|
518 | GEN_CHECK_OFF(APICState, irr[1]);
|
---|
519 | GEN_CHECK_OFF(APICState, lvt);
|
---|
520 | GEN_CHECK_OFF(APICState, lvt[1]);
|
---|
521 | GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);
|
---|
522 | GEN_CHECK_OFF(APICState, esr);
|
---|
523 | GEN_CHECK_OFF(APICState, icr);
|
---|
524 | GEN_CHECK_OFF(APICState, icr[1]);
|
---|
525 | GEN_CHECK_OFF(APICState, divide_conf);
|
---|
526 | GEN_CHECK_OFF(APICState, count_shift);
|
---|
527 | GEN_CHECK_OFF(APICState, initial_count);
|
---|
528 | GEN_CHECK_OFF(APICState, initial_count_load_time);
|
---|
529 | GEN_CHECK_OFF(APICState, next_time);
|
---|
530 | GEN_CHECK_OFF(APICState, pDevInsHC);
|
---|
531 | GEN_CHECK_OFF(APICState, pApicHlpR3);
|
---|
532 | GEN_CHECK_OFF(APICState, pTimerHC);
|
---|
533 | GEN_CHECK_OFF(APICState, pDevInsGC);
|
---|
534 | GEN_CHECK_OFF(APICState, pApicHlpGC);
|
---|
535 | GEN_CHECK_OFF(APICState, pTimerGC);
|
---|
536 | GEN_CHECK_OFF(APICState, pApicHlpR0);
|
---|
537 | GEN_CHECK_OFF(APICState, ulTPRPatchAttempts);
|
---|
538 | #ifdef VBOX_WITH_STATISTICS
|
---|
539 | GEN_CHECK_OFF(APICState, StatMMIOReadGC);
|
---|
540 | GEN_CHECK_OFF(APICState, StatMMIOWriteHC);
|
---|
541 | #endif
|
---|
542 |
|
---|
543 | GEN_CHECK_SIZE(IOAPICState);
|
---|
544 | GEN_CHECK_OFF(IOAPICState, id);
|
---|
545 | GEN_CHECK_OFF(IOAPICState, ioregsel);
|
---|
546 | GEN_CHECK_OFF(IOAPICState, irr);
|
---|
547 | GEN_CHECK_OFF(IOAPICState, ioredtbl);
|
---|
548 | GEN_CHECK_OFF(IOAPICState, ioredtbl[1]);
|
---|
549 | GEN_CHECK_OFF(IOAPICState, ioredtbl[IOAPIC_NUM_PINS - 1]);
|
---|
550 | GEN_CHECK_OFF(IOAPICState, pDevInsHC);
|
---|
551 | GEN_CHECK_OFF(IOAPICState, pIoApicHlpR3);
|
---|
552 | GEN_CHECK_OFF(IOAPICState, pDevInsGC);
|
---|
553 | GEN_CHECK_OFF(IOAPICState, pIoApicHlpGC);
|
---|
554 | GEN_CHECK_OFF(IOAPICState, pIoApicHlpR0);
|
---|
555 | #ifdef VBOX_WITH_STATISTICS
|
---|
556 | GEN_CHECK_OFF(IOAPICState, StatMMIOReadGC);
|
---|
557 | GEN_CHECK_OFF(IOAPICState, StatSetIrqHC);
|
---|
558 | #endif
|
---|
559 |
|
---|
560 | /* Storage/DevATA.cpp */
|
---|
561 | GEN_CHECK_SIZE(BMDMAState);
|
---|
562 | GEN_CHECK_OFF(BMDMAState, u8Cmd);
|
---|
563 | GEN_CHECK_OFF(BMDMAState, u8Status);
|
---|
564 | GEN_CHECK_OFF(BMDMAState, pvAddr);
|
---|
565 | GEN_CHECK_SIZE(BMDMADesc);
|
---|
566 | GEN_CHECK_OFF(BMDMADesc, pBuffer);
|
---|
567 | GEN_CHECK_OFF(BMDMADesc, cbBuffer);
|
---|
568 | GEN_CHECK_SIZE(ATADevState);
|
---|
569 | GEN_CHECK_OFF(ATADevState, fLBA48);
|
---|
570 | GEN_CHECK_OFF(ATADevState, fATAPI);
|
---|
571 | GEN_CHECK_OFF(ATADevState, fIrqPending);
|
---|
572 | GEN_CHECK_OFF(ATADevState, cMultSectors);
|
---|
573 | GEN_CHECK_OFF(ATADevState, cCHSCylinders);
|
---|
574 | GEN_CHECK_OFF(ATADevState, cCHSHeads);
|
---|
575 | GEN_CHECK_OFF(ATADevState, cCHSSectors);
|
---|
576 | GEN_CHECK_OFF(ATADevState, cSectorsPerIRQ);
|
---|
577 | GEN_CHECK_OFF(ATADevState, cTotalSectors);
|
---|
578 | GEN_CHECK_OFF(ATADevState, uATARegFeature);
|
---|
579 | GEN_CHECK_OFF(ATADevState, uATARegFeatureHOB);
|
---|
580 | GEN_CHECK_OFF(ATADevState, uATARegError);
|
---|
581 | GEN_CHECK_OFF(ATADevState, uATARegNSector);
|
---|
582 | GEN_CHECK_OFF(ATADevState, uATARegNSectorHOB);
|
---|
583 | GEN_CHECK_OFF(ATADevState, uATARegSector);
|
---|
584 | GEN_CHECK_OFF(ATADevState, uATARegSectorHOB);
|
---|
585 | GEN_CHECK_OFF(ATADevState, uATARegLCyl);
|
---|
586 | GEN_CHECK_OFF(ATADevState, uATARegLCylHOB);
|
---|
587 | GEN_CHECK_OFF(ATADevState, uATARegHCyl);
|
---|
588 | GEN_CHECK_OFF(ATADevState, uATARegHCylHOB);
|
---|
589 | GEN_CHECK_OFF(ATADevState, uATARegSelect);
|
---|
590 | GEN_CHECK_OFF(ATADevState, uATARegStatus);
|
---|
591 | GEN_CHECK_OFF(ATADevState, uATARegCommand);
|
---|
592 | GEN_CHECK_OFF(ATADevState, uATARegDevCtl);
|
---|
593 | GEN_CHECK_OFF(ATADevState, uATATransferMode);
|
---|
594 | GEN_CHECK_OFF(ATADevState, uTxDir);
|
---|
595 | GEN_CHECK_OFF(ATADevState, iBeginTransfer);
|
---|
596 | GEN_CHECK_OFF(ATADevState, iSourceSink);
|
---|
597 | GEN_CHECK_OFF(ATADevState, fDMA);
|
---|
598 | GEN_CHECK_OFF(ATADevState, fATAPITransfer);
|
---|
599 | GEN_CHECK_OFF(ATADevState, cbTotalTransfer);
|
---|
600 | GEN_CHECK_OFF(ATADevState, cbElementaryTransfer);
|
---|
601 | GEN_CHECK_OFF(ATADevState, iIOBufferCur);
|
---|
602 | GEN_CHECK_OFF(ATADevState, iIOBufferEnd);
|
---|
603 | GEN_CHECK_OFF(ATADevState, iIOBufferPIODataStart);
|
---|
604 | GEN_CHECK_OFF(ATADevState, iIOBufferPIODataEnd);
|
---|
605 | GEN_CHECK_OFF(ATADevState, iATAPILBA);
|
---|
606 | GEN_CHECK_OFF(ATADevState, cbATAPISector);
|
---|
607 | GEN_CHECK_OFF(ATADevState, aATAPICmd);
|
---|
608 | GEN_CHECK_OFF(ATADevState, aATAPICmd[ATAPI_PACKET_SIZE - 1]);
|
---|
609 | GEN_CHECK_OFF(ATADevState, uATAPISenseKey);
|
---|
610 | GEN_CHECK_OFF(ATADevState, uATAPIASC);
|
---|
611 | GEN_CHECK_OFF(ATADevState, cNotifiedMediaChange);
|
---|
612 | GEN_CHECK_OFF(ATADevState, Led);
|
---|
613 | GEN_CHECK_OFF(ATADevState, cbIOBuffer);
|
---|
614 | GEN_CHECK_OFF(ATADevState, pbIOBufferHC);
|
---|
615 | GEN_CHECK_OFF(ATADevState, pbIOBufferGC);
|
---|
616 | GEN_CHECK_OFF(ATADevState, StatReads);
|
---|
617 | GEN_CHECK_OFF(ATADevState, StatBytesRead);
|
---|
618 | GEN_CHECK_OFF(ATADevState, StatWrites);
|
---|
619 | GEN_CHECK_OFF(ATADevState, StatBytesWritten);
|
---|
620 | GEN_CHECK_OFF(ATADevState, StatFlushes);
|
---|
621 | GEN_CHECK_OFF(ATADevState, fATAPIPassthrough);
|
---|
622 | GEN_CHECK_OFF(ATADevState, cErrors);
|
---|
623 | GEN_CHECK_OFF(ATADevState, pDrvBase);
|
---|
624 | GEN_CHECK_OFF(ATADevState, pDrvBlock);
|
---|
625 | GEN_CHECK_OFF(ATADevState, pDrvBlockBios);
|
---|
626 | GEN_CHECK_OFF(ATADevState, pDrvMount);
|
---|
627 | GEN_CHECK_OFF(ATADevState, IBase);
|
---|
628 | GEN_CHECK_OFF(ATADevState, IPort);
|
---|
629 | GEN_CHECK_OFF(ATADevState, IMountNotify);
|
---|
630 | GEN_CHECK_OFF(ATADevState, iLUN);
|
---|
631 | GEN_CHECK_OFF(ATADevState, pDevInsHC);
|
---|
632 | GEN_CHECK_OFF(ATADevState, pDevInsGC);
|
---|
633 | GEN_CHECK_OFF(ATADevState, pControllerHC);
|
---|
634 | GEN_CHECK_OFF(ATADevState, pControllerGC);
|
---|
635 | GEN_CHECK_SIZE(ATATransferRequest);
|
---|
636 | GEN_CHECK_OFF(ATATransferRequest, iIf);
|
---|
637 | GEN_CHECK_OFF(ATATransferRequest, iBeginTransfer);
|
---|
638 | GEN_CHECK_OFF(ATATransferRequest, iSourceSink);
|
---|
639 | GEN_CHECK_OFF(ATATransferRequest, cbTotalTransfer);
|
---|
640 | GEN_CHECK_OFF(ATATransferRequest, uTxDir);
|
---|
641 | GEN_CHECK_SIZE(ATAAbortRequest);
|
---|
642 | GEN_CHECK_OFF(ATAAbortRequest, iIf);
|
---|
643 | GEN_CHECK_OFF(ATAAbortRequest, fResetDrive);
|
---|
644 | GEN_CHECK_SIZE(ATARequest);
|
---|
645 | GEN_CHECK_OFF(ATARequest, ReqType);
|
---|
646 | GEN_CHECK_OFF(ATARequest, u);
|
---|
647 | GEN_CHECK_OFF(ATARequest, u.t);
|
---|
648 | GEN_CHECK_OFF(ATARequest, u.a);
|
---|
649 | GEN_CHECK_SIZE(ATACONTROLLER);
|
---|
650 | GEN_CHECK_OFF(ATACONTROLLER, IOPortBase1);
|
---|
651 | GEN_CHECK_OFF(ATACONTROLLER, IOPortBase2);
|
---|
652 | GEN_CHECK_OFF(ATACONTROLLER, irq);
|
---|
653 | GEN_CHECK_OFF(ATACONTROLLER, lock);
|
---|
654 | GEN_CHECK_OFF(ATACONTROLLER, iSelectedIf);
|
---|
655 | GEN_CHECK_OFF(ATACONTROLLER, iAIOIf);
|
---|
656 | GEN_CHECK_OFF(ATACONTROLLER, uAsyncIOState);
|
---|
657 | GEN_CHECK_OFF(ATACONTROLLER, fChainedTransfer);
|
---|
658 | GEN_CHECK_OFF(ATACONTROLLER, fReset);
|
---|
659 | GEN_CHECK_OFF(ATACONTROLLER, fRedo);
|
---|
660 | GEN_CHECK_OFF(ATACONTROLLER, fRedoIdle);
|
---|
661 | GEN_CHECK_OFF(ATACONTROLLER, fRedoDMALastDesc);
|
---|
662 | GEN_CHECK_OFF(ATACONTROLLER, BmDma);
|
---|
663 | GEN_CHECK_OFF(ATACONTROLLER, pFirstDMADesc);
|
---|
664 | GEN_CHECK_OFF(ATACONTROLLER, pLastDMADesc);
|
---|
665 | GEN_CHECK_OFF(ATACONTROLLER, pRedoDMABuffer);
|
---|
666 | GEN_CHECK_OFF(ATACONTROLLER, cbRedoDMABuffer);
|
---|
667 | GEN_CHECK_OFF(ATACONTROLLER, aIfs);
|
---|
668 | GEN_CHECK_OFF(ATACONTROLLER, aIfs[1]);
|
---|
669 | GEN_CHECK_OFF(ATACONTROLLER, pDevInsHC);
|
---|
670 | GEN_CHECK_OFF(ATACONTROLLER, pDevInsGC);
|
---|
671 | GEN_CHECK_OFF(ATACONTROLLER, fShutdown);
|
---|
672 | GEN_CHECK_OFF(ATACONTROLLER, AsyncIOThread);
|
---|
673 | GEN_CHECK_OFF(ATACONTROLLER, AsyncIOSem);
|
---|
674 | GEN_CHECK_OFF(ATACONTROLLER, aAsyncIORequests[4]);
|
---|
675 | GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqHead);
|
---|
676 | GEN_CHECK_OFF(ATACONTROLLER, AsyncIOReqTail);
|
---|
677 | GEN_CHECK_OFF(ATACONTROLLER, AsyncIORequestMutex);
|
---|
678 | GEN_CHECK_OFF(ATACONTROLLER, SuspendIOSem);
|
---|
679 | GEN_CHECK_OFF(ATACONTROLLER, DelayIRQMillies);
|
---|
680 | GEN_CHECK_OFF(ATACONTROLLER, StatAsyncOps);
|
---|
681 | GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMinWait);
|
---|
682 | GEN_CHECK_OFF(ATACONTROLLER, StatAsyncMaxWait);
|
---|
683 | GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTimeUS);
|
---|
684 | GEN_CHECK_OFF(ATACONTROLLER, StatAsyncTime);
|
---|
685 | GEN_CHECK_OFF(ATACONTROLLER, StatLockWait);
|
---|
686 | GEN_CHECK_SIZE(PCIATAState);
|
---|
687 | GEN_CHECK_OFF(PCIATAState, dev);
|
---|
688 | GEN_CHECK_OFF(PCIATAState, aCts);
|
---|
689 | GEN_CHECK_OFF(PCIATAState, aCts[1]);
|
---|
690 | GEN_CHECK_OFF(PCIATAState, pDevIns);
|
---|
691 | GEN_CHECK_OFF(PCIATAState, IBase);
|
---|
692 | GEN_CHECK_OFF(PCIATAState, ILeds);
|
---|
693 | GEN_CHECK_OFF(PCIATAState, pLedsConnector);
|
---|
694 | GEN_CHECK_OFF(PCIATAState, fGCEnabled);
|
---|
695 | GEN_CHECK_OFF(PCIATAState, fR0Enabled);
|
---|
696 |
|
---|
697 | #ifdef VBOX_WITH_USB
|
---|
698 | /* USB/DevOHCI.cpp */
|
---|
699 | GEN_CHECK_SIZE(OHCIHUBPORT);
|
---|
700 | GEN_CHECK_OFF(OHCIHUBPORT, fReg);
|
---|
701 | GEN_CHECK_OFF(OHCIHUBPORT, pDev);
|
---|
702 |
|
---|
703 | GEN_CHECK_SIZE(OHCIROOTHUB);
|
---|
704 | GEN_CHECK_OFF(OHCIROOTHUB, pIBase);
|
---|
705 | GEN_CHECK_OFF(OHCIROOTHUB, pIRhConn);
|
---|
706 | GEN_CHECK_OFF(OHCIROOTHUB, pIDev);
|
---|
707 | GEN_CHECK_OFF(OHCIROOTHUB, IBase);
|
---|
708 | GEN_CHECK_OFF(OHCIROOTHUB, IRhPort);
|
---|
709 | GEN_CHECK_OFF(OHCIROOTHUB, status);
|
---|
710 | GEN_CHECK_OFF(OHCIROOTHUB, desc_a);
|
---|
711 | GEN_CHECK_OFF(OHCIROOTHUB, desc_b);
|
---|
712 | GEN_CHECK_OFF(OHCIROOTHUB, aPorts);
|
---|
713 | GEN_CHECK_OFF(OHCIROOTHUB, aPorts[1]);
|
---|
714 | GEN_CHECK_OFF(OHCIROOTHUB, aPorts[OHCI_NDP - 1]);
|
---|
715 | GEN_CHECK_OFF(OHCIROOTHUB, pOhci);
|
---|
716 |
|
---|
717 | GEN_CHECK_SIZE(OHCI);
|
---|
718 | GEN_CHECK_OFF(OHCI, PciDev);
|
---|
719 | GEN_CHECK_OFF(OHCI, MMIOBase);
|
---|
720 | GEN_CHECK_OFF(OHCI, pEndOfFrameTimerHC);
|
---|
721 | GEN_CHECK_OFF(OHCI, pEndOfFrameTimerGC);
|
---|
722 | GEN_CHECK_OFF(OHCI, SofTime);
|
---|
723 | //GEN_CHECK_OFF(OHCI, dqic:3);
|
---|
724 | //GEN_CHECK_OFF(OHCI, fno:1);
|
---|
725 | GEN_CHECK_OFF(OHCI, RootHub);
|
---|
726 | GEN_CHECK_OFF(OHCI, ctl);
|
---|
727 | GEN_CHECK_OFF(OHCI, status);
|
---|
728 | GEN_CHECK_OFF(OHCI, intr_status);
|
---|
729 | GEN_CHECK_OFF(OHCI, intr);
|
---|
730 | GEN_CHECK_OFF(OHCI, hcca);
|
---|
731 | GEN_CHECK_OFF(OHCI, per_cur);
|
---|
732 | GEN_CHECK_OFF(OHCI, ctrl_cur);
|
---|
733 | GEN_CHECK_OFF(OHCI, ctrl_head);
|
---|
734 | GEN_CHECK_OFF(OHCI, bulk_cur);
|
---|
735 | GEN_CHECK_OFF(OHCI, bulk_head);
|
---|
736 | GEN_CHECK_OFF(OHCI, done);
|
---|
737 | //GEN_CHECK_OFF(OHCI, fsmps:15);
|
---|
738 | //GEN_CHECK_OFF(OHCI, fit:1);
|
---|
739 | //GEN_CHECK_OFF(OHCI, fi:14);
|
---|
740 | //GEN_CHECK_OFF(OHCI, frt:1);
|
---|
741 | GEN_CHECK_OFF(OHCI, HcFmNumber);
|
---|
742 | GEN_CHECK_OFF(OHCI, pstart);
|
---|
743 | GEN_CHECK_OFF(OHCI, cTicksPerFrame);
|
---|
744 | GEN_CHECK_OFF(OHCI, cTicksPerUsbTick);
|
---|
745 | GEN_CHECK_OFF(OHCI, cInFlight);
|
---|
746 | GEN_CHECK_OFF(OHCI, aInFlight);
|
---|
747 | GEN_CHECK_OFF(OHCI, aInFlight[0].GCPhysTD);
|
---|
748 | GEN_CHECK_OFF(OHCI, aInFlight[0].pUrb);
|
---|
749 | GEN_CHECK_OFF(OHCI, aInFlight[1]);
|
---|
750 | GEN_CHECK_OFF(OHCI, cInDoneQueue);
|
---|
751 | GEN_CHECK_OFF(OHCI, aInDoneQueue);
|
---|
752 | GEN_CHECK_OFF(OHCI, aInDoneQueue[0].GCPhysTD);
|
---|
753 | GEN_CHECK_OFF(OHCI, aInDoneQueue[1]);
|
---|
754 | GEN_CHECK_OFF(OHCI, u32FmDoneQueueTail);
|
---|
755 | GEN_CHECK_OFF(OHCI, pDevInsHC);
|
---|
756 | GEN_CHECK_OFF(OHCI, pDevInsGC);
|
---|
757 | GEN_CHECK_OFF(OHCI, pLoad);
|
---|
758 | # ifdef VBOX_WITH_STATISTICS
|
---|
759 | GEN_CHECK_OFF(OHCI, StatCanceledIsocUrbs);
|
---|
760 | GEN_CHECK_OFF(OHCI, StatCanceledGenUrbs);
|
---|
761 | GEN_CHECK_OFF(OHCI, StatDroppedUrbs);
|
---|
762 | GEN_CHECK_OFF(OHCI, StatTimer);
|
---|
763 | # endif
|
---|
764 | #endif /* VBOX_WITH_USB */
|
---|
765 |
|
---|
766 | /* VMMDev/VBoxDev.cpp */
|
---|
767 |
|
---|
768 | /* Serial/DevSerial.cpp */
|
---|
769 | GEN_CHECK_SIZE(SerialState);
|
---|
770 | GEN_CHECK_OFF(SerialState, divider);
|
---|
771 | GEN_CHECK_OFF(SerialState, rbr);
|
---|
772 | GEN_CHECK_OFF(SerialState, ier);
|
---|
773 | GEN_CHECK_OFF(SerialState, iir);
|
---|
774 | GEN_CHECK_OFF(SerialState, lcr);
|
---|
775 | GEN_CHECK_OFF(SerialState, mcr);
|
---|
776 | GEN_CHECK_OFF(SerialState, lsr);
|
---|
777 | GEN_CHECK_OFF(SerialState, msr);
|
---|
778 | GEN_CHECK_OFF(SerialState, scr);
|
---|
779 | GEN_CHECK_OFF(SerialState, thr_ipending);
|
---|
780 | GEN_CHECK_OFF(SerialState, irq);
|
---|
781 | GEN_CHECK_OFF(SerialState, fGCEnabled);
|
---|
782 | GEN_CHECK_OFF(SerialState, fR0Enabled);
|
---|
783 | GEN_CHECK_OFF(SerialState, pDevInsGC);
|
---|
784 | GEN_CHECK_OFF(SerialState, pDevInsHC);
|
---|
785 | GEN_CHECK_OFF(SerialState, IBase);
|
---|
786 | GEN_CHECK_OFF(SerialState, ICharPort);
|
---|
787 | GEN_CHECK_OFF(SerialState, pDrvBase);
|
---|
788 | GEN_CHECK_OFF(SerialState, pDrvChar);
|
---|
789 | GEN_CHECK_OFF(SerialState, CritSect);
|
---|
790 | GEN_CHECK_OFF(SerialState, ReceiveSem);
|
---|
791 | GEN_CHECK_OFF(SerialState, last_break_enable);
|
---|
792 | GEN_CHECK_OFF(SerialState, base);
|
---|
793 |
|
---|
794 | return (0);
|
---|
795 | }
|
---|
796 |
|
---|