1pub const true_: u32 = 1;
4pub const false_: u32 = 0;
5pub const __bool_true_false_are_defined: u32 = 1;
6pub const INVALID_PADDR: i32 = -1;
7pub const PRIpaddr: &'static [u8; 6usize] = b"016lx\0";
8pub const INT8_MIN: i32 = -128;
9pub const INT16_MIN: i32 = -32768;
10pub const INT32_MIN: i32 = -2147483648;
11pub const INT8_MAX: u32 = 127;
12pub const INT16_MAX: u32 = 32767;
13pub const INT32_MAX: u32 = 2147483647;
14pub const UINT8_MAX: u32 = 255;
15pub const UINT16_MAX: u32 = 65535;
16pub const UINT32_MAX: u32 = 4294967295;
17pub const UINT_MAX: i32 = -1;
18pub const ULONG_MAX: i32 = -1;
19pub const __XEN_LATEST_INTERFACE_VERSION__: u32 = 265728;
20pub const __XEN_INTERFACE_VERSION__: u32 = 0;
21pub const FLAT_RING3_CS32: u32 = 57379;
22pub const FLAT_RING3_CS64: u32 = 57395;
23pub const FLAT_RING3_DS32: u32 = 57387;
24pub const FLAT_RING3_DS64: u32 = 0;
25pub const FLAT_RING3_SS32: u32 = 57387;
26pub const FLAT_RING3_SS64: u32 = 57387;
27pub const FLAT_KERNEL_DS64: u32 = 0;
28pub const FLAT_KERNEL_DS32: u32 = 57387;
29pub const FLAT_KERNEL_DS: u32 = 0;
30pub const FLAT_KERNEL_CS64: u32 = 57395;
31pub const FLAT_KERNEL_CS32: u32 = 57379;
32pub const FLAT_KERNEL_CS: u32 = 57395;
33pub const FLAT_KERNEL_SS64: u32 = 57387;
34pub const FLAT_KERNEL_SS32: u32 = 57387;
35pub const FLAT_KERNEL_SS: u32 = 57387;
36pub const FLAT_USER_DS64: u32 = 0;
37pub const FLAT_USER_DS32: u32 = 57387;
38pub const FLAT_USER_DS: u32 = 0;
39pub const FLAT_USER_CS64: u32 = 57395;
40pub const FLAT_USER_CS32: u32 = 57379;
41pub const FLAT_USER_CS: u32 = 57395;
42pub const FLAT_USER_SS64: u32 = 57387;
43pub const FLAT_USER_SS32: u32 = 57387;
44pub const FLAT_USER_SS: u32 = 57387;
45pub const __HYPERVISOR_VIRT_START: i64 = -140737488355328;
46pub const __HYPERVISOR_VIRT_END: i64 = -131941395333120;
47pub const __MACH2PHYS_VIRT_START: i64 = -140737488355328;
48pub const __MACH2PHYS_VIRT_END: i64 = -140462610448384;
49pub const SEGBASE_FS: u32 = 0;
50pub const SEGBASE_GS_USER: u32 = 1;
51pub const SEGBASE_GS_KERNEL: u32 = 2;
52pub const SEGBASE_GS_USER_SEL: u32 = 3;
53pub const _VGCF_in_syscall: u32 = 8;
54pub const VGCF_in_syscall: u32 = 256;
55pub const VGCF_IN_SYSCALL: u32 = 256;
56pub const PRI_xen_pfn: &'static [u8; 3usize] = b"lx\0";
57pub const PRIu_xen_pfn: &'static [u8; 3usize] = b"lu\0";
58pub const XEN_HAVE_PV_GUEST_ENTRY: u32 = 1;
59pub const XEN_HAVE_PV_UPCALL_MASK: u32 = 1;
60pub const FIRST_RESERVED_GDT_PAGE: u32 = 14;
61pub const FIRST_RESERVED_GDT_BYTE: u32 = 57344;
62pub const FIRST_RESERVED_GDT_ENTRY: u32 = 7168;
63pub const XEN_LEGACY_MAX_VCPUS: u32 = 32;
64pub const PRI_xen_ulong: &'static [u8; 3usize] = b"lx\0";
65pub const VGCF_I387_VALID: u32 = 1;
66pub const VGCF_IN_KERNEL: u32 = 4;
67pub const _VGCF_i387_valid: u32 = 0;
68pub const VGCF_i387_valid: u32 = 1;
69pub const _VGCF_in_kernel: u32 = 2;
70pub const VGCF_in_kernel: u32 = 4;
71pub const _VGCF_failsafe_disables_events: u32 = 3;
72pub const VGCF_failsafe_disables_events: u32 = 8;
73pub const _VGCF_syscall_disables_events: u32 = 4;
74pub const VGCF_syscall_disables_events: u32 = 16;
75pub const _VGCF_online: u32 = 5;
76pub const VGCF_online: u32 = 32;
77pub const XEN_CPUID_NO_SUBLEAF: u32 = 4294967295;
78pub const XEN_EMULATE_PREFIX: &'static [u8; 34usize] = b".byte 0x0f,0x0b,0x78,0x65,0x6e ; \0";
79pub const XEN_CPUID: &'static [u8; 39usize] = b".byte 0x0f,0x0b,0x78,0x65,0x6e ; cpuid\0";
80pub const XEN_HVM_DEBUGCONS_IOPORT: u32 = 233;
81pub const __HYPERVISOR_set_trap_table: u32 = 0;
82pub const __HYPERVISOR_mmu_update: u32 = 1;
83pub const __HYPERVISOR_set_gdt: u32 = 2;
84pub const __HYPERVISOR_stack_switch: u32 = 3;
85pub const __HYPERVISOR_set_callbacks: u32 = 4;
86pub const __HYPERVISOR_fpu_taskswitch: u32 = 5;
87pub const __HYPERVISOR_sched_op_compat: u32 = 6;
88pub const __HYPERVISOR_platform_op: u32 = 7;
89pub const __HYPERVISOR_set_debugreg: u32 = 8;
90pub const __HYPERVISOR_get_debugreg: u32 = 9;
91pub const __HYPERVISOR_update_descriptor: u32 = 10;
92pub const __HYPERVISOR_memory_op: u32 = 12;
93pub const __HYPERVISOR_multicall: u32 = 13;
94pub const __HYPERVISOR_update_va_mapping: u32 = 14;
95pub const __HYPERVISOR_set_timer_op: u32 = 15;
96pub const __HYPERVISOR_event_channel_op_compat: u32 = 16;
97pub const __HYPERVISOR_xen_version: u32 = 17;
98pub const __HYPERVISOR_console_io: u32 = 18;
99pub const __HYPERVISOR_physdev_op_compat: u32 = 19;
100pub const __HYPERVISOR_grant_table_op: u32 = 20;
101pub const __HYPERVISOR_vm_assist: u32 = 21;
102pub const __HYPERVISOR_update_va_mapping_otherdomain: u32 = 22;
103pub const __HYPERVISOR_iret: u32 = 23;
104pub const __HYPERVISOR_vcpu_op: u32 = 24;
105pub const __HYPERVISOR_set_segment_base: u32 = 25;
106pub const __HYPERVISOR_mmuext_op: u32 = 26;
107pub const __HYPERVISOR_xsm_op: u32 = 27;
108pub const __HYPERVISOR_nmi_op: u32 = 28;
109pub const __HYPERVISOR_sched_op: u32 = 29;
110pub const __HYPERVISOR_callback_op: u32 = 30;
111pub const __HYPERVISOR_xenoprof_op: u32 = 31;
112pub const __HYPERVISOR_event_channel_op: u32 = 32;
113pub const __HYPERVISOR_physdev_op: u32 = 33;
114pub const __HYPERVISOR_hvm_op: u32 = 34;
115pub const __HYPERVISOR_sysctl: u32 = 35;
116pub const __HYPERVISOR_domctl: u32 = 36;
117pub const __HYPERVISOR_kexec_op: u32 = 37;
118pub const __HYPERVISOR_tmem_op: u32 = 38;
119pub const __HYPERVISOR_argo_op: u32 = 39;
120pub const __HYPERVISOR_xenpmu_op: u32 = 40;
121pub const __HYPERVISOR_dm_op: u32 = 41;
122pub const __HYPERVISOR_hypfs_op: u32 = 42;
123pub const __HYPERVISOR_arch_0: u32 = 48;
124pub const __HYPERVISOR_arch_1: u32 = 49;
125pub const __HYPERVISOR_arch_2: u32 = 50;
126pub const __HYPERVISOR_arch_3: u32 = 51;
127pub const __HYPERVISOR_arch_4: u32 = 52;
128pub const __HYPERVISOR_arch_5: u32 = 53;
129pub const __HYPERVISOR_arch_6: u32 = 54;
130pub const __HYPERVISOR_arch_7: u32 = 55;
131pub const __HYPERVISOR_dom0_op: u32 = 7;
132pub const VIRQ_TIMER: u32 = 0;
133pub const VIRQ_DEBUG: u32 = 1;
134pub const VIRQ_CONSOLE: u32 = 2;
135pub const VIRQ_DOM_EXC: u32 = 3;
136pub const VIRQ_TBUF: u32 = 4;
137pub const VIRQ_DEBUGGER: u32 = 6;
138pub const VIRQ_XENOPROF: u32 = 7;
139pub const VIRQ_CON_RING: u32 = 8;
140pub const VIRQ_PCPU_STATE: u32 = 9;
141pub const VIRQ_MEM_EVENT: u32 = 10;
142pub const VIRQ_ARGO: u32 = 11;
143pub const VIRQ_ENOMEM: u32 = 12;
144pub const VIRQ_XENPMU: u32 = 13;
145pub const VIRQ_ARCH_0: u32 = 16;
146pub const VIRQ_ARCH_1: u32 = 17;
147pub const VIRQ_ARCH_2: u32 = 18;
148pub const VIRQ_ARCH_3: u32 = 19;
149pub const VIRQ_ARCH_4: u32 = 20;
150pub const VIRQ_ARCH_5: u32 = 21;
151pub const VIRQ_ARCH_6: u32 = 22;
152pub const VIRQ_ARCH_7: u32 = 23;
153pub const NR_VIRQS: u32 = 24;
154pub const MMU_NORMAL_PT_UPDATE: u32 = 0;
155pub const MMU_MACHPHYS_UPDATE: u32 = 1;
156pub const MMU_PT_UPDATE_PRESERVE_AD: u32 = 2;
157pub const MMU_PT_UPDATE_NO_TRANSLATE: u32 = 3;
158pub const MMUEXT_PIN_L1_TABLE: u32 = 0;
159pub const MMUEXT_PIN_L2_TABLE: u32 = 1;
160pub const MMUEXT_PIN_L3_TABLE: u32 = 2;
161pub const MMUEXT_PIN_L4_TABLE: u32 = 3;
162pub const MMUEXT_UNPIN_TABLE: u32 = 4;
163pub const MMUEXT_NEW_BASEPTR: u32 = 5;
164pub const MMUEXT_TLB_FLUSH_LOCAL: u32 = 6;
165pub const MMUEXT_INVLPG_LOCAL: u32 = 7;
166pub const MMUEXT_TLB_FLUSH_MULTI: u32 = 8;
167pub const MMUEXT_INVLPG_MULTI: u32 = 9;
168pub const MMUEXT_TLB_FLUSH_ALL: u32 = 10;
169pub const MMUEXT_INVLPG_ALL: u32 = 11;
170pub const MMUEXT_FLUSH_CACHE: u32 = 12;
171pub const MMUEXT_SET_LDT: u32 = 13;
172pub const MMUEXT_NEW_USER_BASEPTR: u32 = 15;
173pub const MMUEXT_CLEAR_PAGE: u32 = 16;
174pub const MMUEXT_COPY_PAGE: u32 = 17;
175pub const MMUEXT_FLUSH_CACHE_GLOBAL: u32 = 18;
176pub const MMUEXT_MARK_SUPER: u32 = 19;
177pub const MMUEXT_UNMARK_SUPER: u32 = 20;
178pub const CONSOLEIO_write: u32 = 0;
179pub const CONSOLEIO_read: u32 = 1;
180pub const VMASST_CMD_enable: u32 = 0;
181pub const VMASST_CMD_disable: u32 = 1;
182pub const VMASST_TYPE_4gb_segments: u32 = 0;
183pub const VMASST_TYPE_4gb_segments_notify: u32 = 1;
184pub const VMASST_TYPE_writable_pagetables: u32 = 2;
185pub const VMASST_TYPE_pae_extended_cr3: u32 = 3;
186pub const VMASST_TYPE_architectural_iopl: u32 = 4;
187pub const VMASST_TYPE_runstate_update_flag: u32 = 5;
188pub const VMASST_TYPE_m2p_strict: u32 = 32;
189pub const MAX_VMASST_TYPE: u32 = 3;
190pub const XEN_PVCLOCK_TSC_STABLE_BIT: u32 = 1;
191pub const XEN_PVCLOCK_GUEST_STOPPED: u32 = 2;
192pub const MAX_GUEST_CMDLINE: u32 = 1024;
193pub const SIF_PRIVILEGED: u32 = 1;
194pub const SIF_INITDOMAIN: u32 = 2;
195pub const SIF_MULTIBOOT_MOD: u32 = 4;
196pub const SIF_MOD_START_PFN: u32 = 8;
197pub const SIF_VIRT_P2M_4TOOLS: u32 = 16;
198pub const SIF_PM_MASK: u32 = 65280;
199pub const XEN_VGATYPE_TEXT_MODE_3: u32 = 3;
200pub const XEN_VGATYPE_VESA_LFB: u32 = 35;
201pub const XEN_VGATYPE_EFI_LFB: u32 = 112;
202pub const EVTCHNOP_bind_interdomain: u32 = 0;
203pub const EVTCHNOP_bind_virq: u32 = 1;
204pub const EVTCHNOP_bind_pirq: u32 = 2;
205pub const EVTCHNOP_close: u32 = 3;
206pub const EVTCHNOP_send: u32 = 4;
207pub const EVTCHNOP_status: u32 = 5;
208pub const EVTCHNOP_alloc_unbound: u32 = 6;
209pub const EVTCHNOP_bind_ipi: u32 = 7;
210pub const EVTCHNOP_bind_vcpu: u32 = 8;
211pub const EVTCHNOP_unmask: u32 = 9;
212pub const EVTCHNOP_reset: u32 = 10;
213pub const EVTCHNOP_init_control: u32 = 11;
214pub const EVTCHNOP_expand_array: u32 = 12;
215pub const EVTCHNOP_set_priority: u32 = 13;
216pub const BIND_PIRQ__WILL_SHARE: u32 = 1;
217pub const EVTCHNSTAT_closed: u32 = 0;
218pub const EVTCHNSTAT_unbound: u32 = 1;
219pub const EVTCHNSTAT_interdomain: u32 = 2;
220pub const EVTCHNSTAT_pirq: u32 = 3;
221pub const EVTCHNSTAT_virq: u32 = 4;
222pub const EVTCHNSTAT_ipi: u32 = 5;
223pub const EVTCHN_FIFO_PRIORITY_MAX: u32 = 0;
224pub const EVTCHN_FIFO_PRIORITY_DEFAULT: u32 = 7;
225pub const EVTCHN_FIFO_PRIORITY_MIN: u32 = 15;
226pub const EVTCHN_FIFO_MAX_QUEUES: u32 = 16;
227pub const EVTCHN_FIFO_PENDING: u32 = 31;
228pub const EVTCHN_FIFO_MASKED: u32 = 30;
229pub const EVTCHN_FIFO_LINKED: u32 = 29;
230pub const EVTCHN_FIFO_BUSY: u32 = 28;
231pub const EVTCHN_FIFO_LINK_BITS: u32 = 17;
232pub const EVTCHN_FIFO_LINK_MASK: u32 = 131071;
233pub const EVTCHN_FIFO_NR_CHANNELS: u32 = 131072;
234pub const SCHEDOP_yield: u32 = 0;
235pub const SCHEDOP_block: u32 = 1;
236pub const SCHEDOP_shutdown: u32 = 2;
237pub const SCHEDOP_poll: u32 = 3;
238pub const SCHEDOP_remote_shutdown: u32 = 4;
239pub const SCHEDOP_shutdown_code: u32 = 5;
240pub const SCHEDOP_watchdog: u32 = 6;
241pub const SCHEDOP_pin_override: u32 = 7;
242pub const SHUTDOWN_poweroff: u32 = 0;
243pub const SHUTDOWN_reboot: u32 = 1;
244pub const SHUTDOWN_suspend: u32 = 2;
245pub const SHUTDOWN_crash: u32 = 3;
246pub const SHUTDOWN_watchdog: u32 = 4;
247pub const SHUTDOWN_soft_reset: u32 = 5;
248pub const SHUTDOWN_MAX: u32 = 5;
249pub const XEN_ELFNOTE_INFO: u32 = 0;
250pub const XEN_ELFNOTE_ENTRY: u32 = 1;
251pub const XEN_ELFNOTE_HYPERCALL_PAGE: u32 = 2;
252pub const XEN_ELFNOTE_VIRT_BASE: u32 = 3;
253pub const XEN_ELFNOTE_PADDR_OFFSET: u32 = 4;
254pub const XEN_ELFNOTE_XEN_VERSION: u32 = 5;
255pub const XEN_ELFNOTE_GUEST_OS: u32 = 6;
256pub const XEN_ELFNOTE_GUEST_VERSION: u32 = 7;
257pub const XEN_ELFNOTE_LOADER: u32 = 8;
258pub const XEN_ELFNOTE_PAE_MODE: u32 = 9;
259pub const XEN_ELFNOTE_FEATURES: u32 = 10;
260pub const XEN_ELFNOTE_BSD_SYMTAB: u32 = 11;
261pub const XEN_ELFNOTE_HV_START_LOW: u32 = 12;
262pub const XEN_ELFNOTE_L1_MFN_VALID: u32 = 13;
263pub const XEN_ELFNOTE_SUSPEND_CANCEL: u32 = 14;
264pub const XEN_ELFNOTE_INIT_P2M: u32 = 15;
265pub const XEN_ELFNOTE_MOD_START_PFN: u32 = 16;
266pub const XEN_ELFNOTE_SUPPORTED_FEATURES: u32 = 17;
267pub const XEN_ELFNOTE_PHYS32_ENTRY: u32 = 18;
268pub const XEN_ELFNOTE_MAX: u32 = 18;
269pub const XEN_ELFNOTE_CRASH_INFO: u32 = 16777217;
270pub const XEN_ELFNOTE_CRASH_REGS: u32 = 16777218;
271pub const XEN_ELFNOTE_DUMPCORE_NONE: u32 = 33554432;
272pub const XEN_ELFNOTE_DUMPCORE_HEADER: u32 = 33554433;
273pub const XEN_ELFNOTE_DUMPCORE_XEN_VERSION: u32 = 33554434;
274pub const XEN_ELFNOTE_DUMPCORE_FORMAT_VERSION: u32 = 33554435;
275pub type __s8 = cty::c_schar;
276pub type __u8 = cty::c_uchar;
277pub type __s16 = cty::c_short;
278pub type __u16 = cty::c_ushort;
279pub type __s32 = cty::c_int;
280pub type __u32 = cty::c_uint;
281pub type __s64 = cty::c_long;
282pub type __u64 = cty::c_ulong;
283pub type s8 = cty::c_schar;
284pub type u8_ = cty::c_uchar;
285pub type s16 = cty::c_short;
286pub type u16_ = cty::c_ushort;
287pub type s32 = cty::c_int;
288pub type u32_ = cty::c_uint;
289pub type s64 = cty::c_long;
290pub type u64_ = cty::c_ulong;
291pub type paddr_t = cty::c_ulong;
292pub type size_t = cty::c_ulong;
293pub type ssize_t = cty::c_long;
294pub type __le16 = __u16;
295pub type __be16 = __u16;
296pub type __le32 = __u32;
297pub type __be32 = __u32;
298pub type __le64 = __u64;
299pub type __be64 = __u64;
300pub type bool_t = bool;
301#[repr(C)]
302#[derive(Debug, Copy, Clone)]
303pub struct iret_context {
304 pub rax: u64,
305 pub r11: u64,
306 pub rcx: u64,
307 pub flags: u64,
308 pub rip: u64,
309 pub cs: u64,
310 pub rflags: u64,
311 pub rsp: u64,
312 pub ss: u64,
313}
314#[test]
315fn bindgen_test_layout_iret_context() {
316 assert_eq!(
317 ::core::mem::size_of::<iret_context>(),
318 72usize,
319 concat!("Size of: ", stringify!(iret_context))
320 );
321 assert_eq!(
322 ::core::mem::align_of::<iret_context>(),
323 8usize,
324 concat!("Alignment of ", stringify!(iret_context))
325 );
326 assert_eq!(
327 unsafe { &(*(::core::ptr::null::<iret_context>())).rax as *const _ as usize },
328 0usize,
329 concat!(
330 "Offset of field: ",
331 stringify!(iret_context),
332 "::",
333 stringify!(rax)
334 )
335 );
336 assert_eq!(
337 unsafe { &(*(::core::ptr::null::<iret_context>())).r11 as *const _ as usize },
338 8usize,
339 concat!(
340 "Offset of field: ",
341 stringify!(iret_context),
342 "::",
343 stringify!(r11)
344 )
345 );
346 assert_eq!(
347 unsafe { &(*(::core::ptr::null::<iret_context>())).rcx as *const _ as usize },
348 16usize,
349 concat!(
350 "Offset of field: ",
351 stringify!(iret_context),
352 "::",
353 stringify!(rcx)
354 )
355 );
356 assert_eq!(
357 unsafe { &(*(::core::ptr::null::<iret_context>())).flags as *const _ as usize },
358 24usize,
359 concat!(
360 "Offset of field: ",
361 stringify!(iret_context),
362 "::",
363 stringify!(flags)
364 )
365 );
366 assert_eq!(
367 unsafe { &(*(::core::ptr::null::<iret_context>())).rip as *const _ as usize },
368 32usize,
369 concat!(
370 "Offset of field: ",
371 stringify!(iret_context),
372 "::",
373 stringify!(rip)
374 )
375 );
376 assert_eq!(
377 unsafe { &(*(::core::ptr::null::<iret_context>())).cs as *const _ as usize },
378 40usize,
379 concat!(
380 "Offset of field: ",
381 stringify!(iret_context),
382 "::",
383 stringify!(cs)
384 )
385 );
386 assert_eq!(
387 unsafe { &(*(::core::ptr::null::<iret_context>())).rflags as *const _ as usize },
388 48usize,
389 concat!(
390 "Offset of field: ",
391 stringify!(iret_context),
392 "::",
393 stringify!(rflags)
394 )
395 );
396 assert_eq!(
397 unsafe { &(*(::core::ptr::null::<iret_context>())).rsp as *const _ as usize },
398 56usize,
399 concat!(
400 "Offset of field: ",
401 stringify!(iret_context),
402 "::",
403 stringify!(rsp)
404 )
405 );
406 assert_eq!(
407 unsafe { &(*(::core::ptr::null::<iret_context>())).ss as *const _ as usize },
408 64usize,
409 concat!(
410 "Offset of field: ",
411 stringify!(iret_context),
412 "::",
413 stringify!(ss)
414 )
415 );
416}
417#[repr(C)]
418#[derive(Copy, Clone)]
419pub struct cpu_user_regs {
420 pub r15: u64,
421 pub r14: u64,
422 pub r13: u64,
423 pub r12: u64,
424 pub __bindgen_anon_1: cpu_user_regs__bindgen_ty_1,
425 pub __bindgen_anon_2: cpu_user_regs__bindgen_ty_2,
426 pub r11: u64,
427 pub r10: u64,
428 pub r9: u64,
429 pub r8: u64,
430 pub __bindgen_anon_3: cpu_user_regs__bindgen_ty_3,
431 pub __bindgen_anon_4: cpu_user_regs__bindgen_ty_4,
432 pub __bindgen_anon_5: cpu_user_regs__bindgen_ty_5,
433 pub __bindgen_anon_6: cpu_user_regs__bindgen_ty_6,
434 pub __bindgen_anon_7: cpu_user_regs__bindgen_ty_7,
435 pub error_code: u32,
436 pub entry_vector: u32,
437 pub __bindgen_anon_8: cpu_user_regs__bindgen_ty_8,
438 pub cs: u16,
439 pub _pad0: [u16; 1usize],
440 pub saved_upcall_mask: u8,
441 pub _pad1: [u8; 3usize],
442 pub __bindgen_anon_9: cpu_user_regs__bindgen_ty_9,
443 pub __bindgen_anon_10: cpu_user_regs__bindgen_ty_10,
444 pub ss: u16,
445 pub _pad2: [u16; 3usize],
446 pub es: u16,
447 pub _pad3: [u16; 3usize],
448 pub ds: u16,
449 pub _pad4: [u16; 3usize],
450 pub fs: u16,
451 pub _pad5: [u16; 3usize],
452 pub gs: u16,
453 pub _pad6: [u16; 3usize],
454}
455#[repr(C)]
456#[derive(Copy, Clone)]
457pub union cpu_user_regs__bindgen_ty_1 {
458 pub rbp: u64,
459 pub ebp: u64,
460 pub _ebp: u32,
461}
462#[test]
463fn bindgen_test_layout_cpu_user_regs__bindgen_ty_1() {
464 assert_eq!(
465 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_1>(),
466 8usize,
467 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_1))
468 );
469 assert_eq!(
470 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_1>(),
471 8usize,
472 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_1))
473 );
474 assert_eq!(
475 unsafe {
476 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_1>())).rbp as *const _ as usize
477 },
478 0usize,
479 concat!(
480 "Offset of field: ",
481 stringify!(cpu_user_regs__bindgen_ty_1),
482 "::",
483 stringify!(rbp)
484 )
485 );
486 assert_eq!(
487 unsafe {
488 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_1>())).ebp as *const _ as usize
489 },
490 0usize,
491 concat!(
492 "Offset of field: ",
493 stringify!(cpu_user_regs__bindgen_ty_1),
494 "::",
495 stringify!(ebp)
496 )
497 );
498 assert_eq!(
499 unsafe {
500 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_1>()))._ebp as *const _ as usize
501 },
502 0usize,
503 concat!(
504 "Offset of field: ",
505 stringify!(cpu_user_regs__bindgen_ty_1),
506 "::",
507 stringify!(_ebp)
508 )
509 );
510}
511#[repr(C)]
512#[derive(Copy, Clone)]
513pub union cpu_user_regs__bindgen_ty_2 {
514 pub rbx: u64,
515 pub ebx: u64,
516 pub _ebx: u32,
517}
518#[test]
519fn bindgen_test_layout_cpu_user_regs__bindgen_ty_2() {
520 assert_eq!(
521 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_2>(),
522 8usize,
523 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_2))
524 );
525 assert_eq!(
526 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_2>(),
527 8usize,
528 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_2))
529 );
530 assert_eq!(
531 unsafe {
532 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_2>())).rbx as *const _ as usize
533 },
534 0usize,
535 concat!(
536 "Offset of field: ",
537 stringify!(cpu_user_regs__bindgen_ty_2),
538 "::",
539 stringify!(rbx)
540 )
541 );
542 assert_eq!(
543 unsafe {
544 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_2>())).ebx as *const _ as usize
545 },
546 0usize,
547 concat!(
548 "Offset of field: ",
549 stringify!(cpu_user_regs__bindgen_ty_2),
550 "::",
551 stringify!(ebx)
552 )
553 );
554 assert_eq!(
555 unsafe {
556 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_2>()))._ebx as *const _ as usize
557 },
558 0usize,
559 concat!(
560 "Offset of field: ",
561 stringify!(cpu_user_regs__bindgen_ty_2),
562 "::",
563 stringify!(_ebx)
564 )
565 );
566}
567#[repr(C)]
568#[derive(Copy, Clone)]
569pub union cpu_user_regs__bindgen_ty_3 {
570 pub rax: u64,
571 pub eax: u64,
572 pub _eax: u32,
573}
574#[test]
575fn bindgen_test_layout_cpu_user_regs__bindgen_ty_3() {
576 assert_eq!(
577 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_3>(),
578 8usize,
579 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_3))
580 );
581 assert_eq!(
582 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_3>(),
583 8usize,
584 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_3))
585 );
586 assert_eq!(
587 unsafe {
588 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_3>())).rax as *const _ as usize
589 },
590 0usize,
591 concat!(
592 "Offset of field: ",
593 stringify!(cpu_user_regs__bindgen_ty_3),
594 "::",
595 stringify!(rax)
596 )
597 );
598 assert_eq!(
599 unsafe {
600 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_3>())).eax as *const _ as usize
601 },
602 0usize,
603 concat!(
604 "Offset of field: ",
605 stringify!(cpu_user_regs__bindgen_ty_3),
606 "::",
607 stringify!(eax)
608 )
609 );
610 assert_eq!(
611 unsafe {
612 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_3>()))._eax as *const _ as usize
613 },
614 0usize,
615 concat!(
616 "Offset of field: ",
617 stringify!(cpu_user_regs__bindgen_ty_3),
618 "::",
619 stringify!(_eax)
620 )
621 );
622}
623#[repr(C)]
624#[derive(Copy, Clone)]
625pub union cpu_user_regs__bindgen_ty_4 {
626 pub rcx: u64,
627 pub ecx: u64,
628 pub _ecx: u32,
629}
630#[test]
631fn bindgen_test_layout_cpu_user_regs__bindgen_ty_4() {
632 assert_eq!(
633 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_4>(),
634 8usize,
635 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_4))
636 );
637 assert_eq!(
638 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_4>(),
639 8usize,
640 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_4))
641 );
642 assert_eq!(
643 unsafe {
644 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_4>())).rcx as *const _ as usize
645 },
646 0usize,
647 concat!(
648 "Offset of field: ",
649 stringify!(cpu_user_regs__bindgen_ty_4),
650 "::",
651 stringify!(rcx)
652 )
653 );
654 assert_eq!(
655 unsafe {
656 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_4>())).ecx as *const _ as usize
657 },
658 0usize,
659 concat!(
660 "Offset of field: ",
661 stringify!(cpu_user_regs__bindgen_ty_4),
662 "::",
663 stringify!(ecx)
664 )
665 );
666 assert_eq!(
667 unsafe {
668 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_4>()))._ecx as *const _ as usize
669 },
670 0usize,
671 concat!(
672 "Offset of field: ",
673 stringify!(cpu_user_regs__bindgen_ty_4),
674 "::",
675 stringify!(_ecx)
676 )
677 );
678}
679#[repr(C)]
680#[derive(Copy, Clone)]
681pub union cpu_user_regs__bindgen_ty_5 {
682 pub rdx: u64,
683 pub edx: u64,
684 pub _edx: u32,
685}
686#[test]
687fn bindgen_test_layout_cpu_user_regs__bindgen_ty_5() {
688 assert_eq!(
689 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_5>(),
690 8usize,
691 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_5))
692 );
693 assert_eq!(
694 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_5>(),
695 8usize,
696 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_5))
697 );
698 assert_eq!(
699 unsafe {
700 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_5>())).rdx as *const _ as usize
701 },
702 0usize,
703 concat!(
704 "Offset of field: ",
705 stringify!(cpu_user_regs__bindgen_ty_5),
706 "::",
707 stringify!(rdx)
708 )
709 );
710 assert_eq!(
711 unsafe {
712 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_5>())).edx as *const _ as usize
713 },
714 0usize,
715 concat!(
716 "Offset of field: ",
717 stringify!(cpu_user_regs__bindgen_ty_5),
718 "::",
719 stringify!(edx)
720 )
721 );
722 assert_eq!(
723 unsafe {
724 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_5>()))._edx as *const _ as usize
725 },
726 0usize,
727 concat!(
728 "Offset of field: ",
729 stringify!(cpu_user_regs__bindgen_ty_5),
730 "::",
731 stringify!(_edx)
732 )
733 );
734}
735#[repr(C)]
736#[derive(Copy, Clone)]
737pub union cpu_user_regs__bindgen_ty_6 {
738 pub rsi: u64,
739 pub esi: u64,
740 pub _esi: u32,
741}
742#[test]
743fn bindgen_test_layout_cpu_user_regs__bindgen_ty_6() {
744 assert_eq!(
745 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_6>(),
746 8usize,
747 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_6))
748 );
749 assert_eq!(
750 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_6>(),
751 8usize,
752 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_6))
753 );
754 assert_eq!(
755 unsafe {
756 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_6>())).rsi as *const _ as usize
757 },
758 0usize,
759 concat!(
760 "Offset of field: ",
761 stringify!(cpu_user_regs__bindgen_ty_6),
762 "::",
763 stringify!(rsi)
764 )
765 );
766 assert_eq!(
767 unsafe {
768 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_6>())).esi as *const _ as usize
769 },
770 0usize,
771 concat!(
772 "Offset of field: ",
773 stringify!(cpu_user_regs__bindgen_ty_6),
774 "::",
775 stringify!(esi)
776 )
777 );
778 assert_eq!(
779 unsafe {
780 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_6>()))._esi as *const _ as usize
781 },
782 0usize,
783 concat!(
784 "Offset of field: ",
785 stringify!(cpu_user_regs__bindgen_ty_6),
786 "::",
787 stringify!(_esi)
788 )
789 );
790}
791#[repr(C)]
792#[derive(Copy, Clone)]
793pub union cpu_user_regs__bindgen_ty_7 {
794 pub rdi: u64,
795 pub edi: u64,
796 pub _edi: u32,
797}
798#[test]
799fn bindgen_test_layout_cpu_user_regs__bindgen_ty_7() {
800 assert_eq!(
801 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_7>(),
802 8usize,
803 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_7))
804 );
805 assert_eq!(
806 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_7>(),
807 8usize,
808 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_7))
809 );
810 assert_eq!(
811 unsafe {
812 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_7>())).rdi as *const _ as usize
813 },
814 0usize,
815 concat!(
816 "Offset of field: ",
817 stringify!(cpu_user_regs__bindgen_ty_7),
818 "::",
819 stringify!(rdi)
820 )
821 );
822 assert_eq!(
823 unsafe {
824 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_7>())).edi as *const _ as usize
825 },
826 0usize,
827 concat!(
828 "Offset of field: ",
829 stringify!(cpu_user_regs__bindgen_ty_7),
830 "::",
831 stringify!(edi)
832 )
833 );
834 assert_eq!(
835 unsafe {
836 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_7>()))._edi as *const _ as usize
837 },
838 0usize,
839 concat!(
840 "Offset of field: ",
841 stringify!(cpu_user_regs__bindgen_ty_7),
842 "::",
843 stringify!(_edi)
844 )
845 );
846}
847#[repr(C)]
848#[derive(Copy, Clone)]
849pub union cpu_user_regs__bindgen_ty_8 {
850 pub rip: u64,
851 pub eip: u64,
852 pub _eip: u32,
853}
854#[test]
855fn bindgen_test_layout_cpu_user_regs__bindgen_ty_8() {
856 assert_eq!(
857 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_8>(),
858 8usize,
859 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_8))
860 );
861 assert_eq!(
862 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_8>(),
863 8usize,
864 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_8))
865 );
866 assert_eq!(
867 unsafe {
868 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_8>())).rip as *const _ as usize
869 },
870 0usize,
871 concat!(
872 "Offset of field: ",
873 stringify!(cpu_user_regs__bindgen_ty_8),
874 "::",
875 stringify!(rip)
876 )
877 );
878 assert_eq!(
879 unsafe {
880 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_8>())).eip as *const _ as usize
881 },
882 0usize,
883 concat!(
884 "Offset of field: ",
885 stringify!(cpu_user_regs__bindgen_ty_8),
886 "::",
887 stringify!(eip)
888 )
889 );
890 assert_eq!(
891 unsafe {
892 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_8>()))._eip as *const _ as usize
893 },
894 0usize,
895 concat!(
896 "Offset of field: ",
897 stringify!(cpu_user_regs__bindgen_ty_8),
898 "::",
899 stringify!(_eip)
900 )
901 );
902}
903#[repr(C)]
904#[derive(Copy, Clone)]
905pub union cpu_user_regs__bindgen_ty_9 {
906 pub rflags: u64,
907 pub eflags: u64,
908 pub _eflags: u32,
909}
910#[test]
911fn bindgen_test_layout_cpu_user_regs__bindgen_ty_9() {
912 assert_eq!(
913 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_9>(),
914 8usize,
915 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_9))
916 );
917 assert_eq!(
918 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_9>(),
919 8usize,
920 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_9))
921 );
922 assert_eq!(
923 unsafe {
924 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_9>())).rflags as *const _ as usize
925 },
926 0usize,
927 concat!(
928 "Offset of field: ",
929 stringify!(cpu_user_regs__bindgen_ty_9),
930 "::",
931 stringify!(rflags)
932 )
933 );
934 assert_eq!(
935 unsafe {
936 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_9>())).eflags as *const _ as usize
937 },
938 0usize,
939 concat!(
940 "Offset of field: ",
941 stringify!(cpu_user_regs__bindgen_ty_9),
942 "::",
943 stringify!(eflags)
944 )
945 );
946 assert_eq!(
947 unsafe {
948 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_9>()))._eflags as *const _ as usize
949 },
950 0usize,
951 concat!(
952 "Offset of field: ",
953 stringify!(cpu_user_regs__bindgen_ty_9),
954 "::",
955 stringify!(_eflags)
956 )
957 );
958}
959#[repr(C)]
960#[derive(Copy, Clone)]
961pub union cpu_user_regs__bindgen_ty_10 {
962 pub rsp: u64,
963 pub esp: u64,
964 pub _esp: u32,
965}
966#[test]
967fn bindgen_test_layout_cpu_user_regs__bindgen_ty_10() {
968 assert_eq!(
969 ::core::mem::size_of::<cpu_user_regs__bindgen_ty_10>(),
970 8usize,
971 concat!("Size of: ", stringify!(cpu_user_regs__bindgen_ty_10))
972 );
973 assert_eq!(
974 ::core::mem::align_of::<cpu_user_regs__bindgen_ty_10>(),
975 8usize,
976 concat!("Alignment of ", stringify!(cpu_user_regs__bindgen_ty_10))
977 );
978 assert_eq!(
979 unsafe {
980 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_10>())).rsp as *const _ as usize
981 },
982 0usize,
983 concat!(
984 "Offset of field: ",
985 stringify!(cpu_user_regs__bindgen_ty_10),
986 "::",
987 stringify!(rsp)
988 )
989 );
990 assert_eq!(
991 unsafe {
992 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_10>())).esp as *const _ as usize
993 },
994 0usize,
995 concat!(
996 "Offset of field: ",
997 stringify!(cpu_user_regs__bindgen_ty_10),
998 "::",
999 stringify!(esp)
1000 )
1001 );
1002 assert_eq!(
1003 unsafe {
1004 &(*(::core::ptr::null::<cpu_user_regs__bindgen_ty_10>()))._esp as *const _ as usize
1005 },
1006 0usize,
1007 concat!(
1008 "Offset of field: ",
1009 stringify!(cpu_user_regs__bindgen_ty_10),
1010 "::",
1011 stringify!(_esp)
1012 )
1013 );
1014}
1015#[test]
1016fn bindgen_test_layout_cpu_user_regs() {
1017 assert_eq!(
1018 ::core::mem::size_of::<cpu_user_regs>(),
1019 200usize,
1020 concat!("Size of: ", stringify!(cpu_user_regs))
1021 );
1022 assert_eq!(
1023 ::core::mem::align_of::<cpu_user_regs>(),
1024 8usize,
1025 concat!("Alignment of ", stringify!(cpu_user_regs))
1026 );
1027 assert_eq!(
1028 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r15 as *const _ as usize },
1029 0usize,
1030 concat!(
1031 "Offset of field: ",
1032 stringify!(cpu_user_regs),
1033 "::",
1034 stringify!(r15)
1035 )
1036 );
1037 assert_eq!(
1038 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r14 as *const _ as usize },
1039 8usize,
1040 concat!(
1041 "Offset of field: ",
1042 stringify!(cpu_user_regs),
1043 "::",
1044 stringify!(r14)
1045 )
1046 );
1047 assert_eq!(
1048 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r13 as *const _ as usize },
1049 16usize,
1050 concat!(
1051 "Offset of field: ",
1052 stringify!(cpu_user_regs),
1053 "::",
1054 stringify!(r13)
1055 )
1056 );
1057 assert_eq!(
1058 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r12 as *const _ as usize },
1059 24usize,
1060 concat!(
1061 "Offset of field: ",
1062 stringify!(cpu_user_regs),
1063 "::",
1064 stringify!(r12)
1065 )
1066 );
1067 assert_eq!(
1068 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r11 as *const _ as usize },
1069 48usize,
1070 concat!(
1071 "Offset of field: ",
1072 stringify!(cpu_user_regs),
1073 "::",
1074 stringify!(r11)
1075 )
1076 );
1077 assert_eq!(
1078 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r10 as *const _ as usize },
1079 56usize,
1080 concat!(
1081 "Offset of field: ",
1082 stringify!(cpu_user_regs),
1083 "::",
1084 stringify!(r10)
1085 )
1086 );
1087 assert_eq!(
1088 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r9 as *const _ as usize },
1089 64usize,
1090 concat!(
1091 "Offset of field: ",
1092 stringify!(cpu_user_regs),
1093 "::",
1094 stringify!(r9)
1095 )
1096 );
1097 assert_eq!(
1098 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).r8 as *const _ as usize },
1099 72usize,
1100 concat!(
1101 "Offset of field: ",
1102 stringify!(cpu_user_regs),
1103 "::",
1104 stringify!(r8)
1105 )
1106 );
1107 assert_eq!(
1108 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).error_code as *const _ as usize },
1109 120usize,
1110 concat!(
1111 "Offset of field: ",
1112 stringify!(cpu_user_regs),
1113 "::",
1114 stringify!(error_code)
1115 )
1116 );
1117 assert_eq!(
1118 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).entry_vector as *const _ as usize },
1119 124usize,
1120 concat!(
1121 "Offset of field: ",
1122 stringify!(cpu_user_regs),
1123 "::",
1124 stringify!(entry_vector)
1125 )
1126 );
1127 assert_eq!(
1128 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).cs as *const _ as usize },
1129 136usize,
1130 concat!(
1131 "Offset of field: ",
1132 stringify!(cpu_user_regs),
1133 "::",
1134 stringify!(cs)
1135 )
1136 );
1137 assert_eq!(
1138 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad0 as *const _ as usize },
1139 138usize,
1140 concat!(
1141 "Offset of field: ",
1142 stringify!(cpu_user_regs),
1143 "::",
1144 stringify!(_pad0)
1145 )
1146 );
1147 assert_eq!(
1148 unsafe {
1149 &(*(::core::ptr::null::<cpu_user_regs>())).saved_upcall_mask as *const _ as usize
1150 },
1151 140usize,
1152 concat!(
1153 "Offset of field: ",
1154 stringify!(cpu_user_regs),
1155 "::",
1156 stringify!(saved_upcall_mask)
1157 )
1158 );
1159 assert_eq!(
1160 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad1 as *const _ as usize },
1161 141usize,
1162 concat!(
1163 "Offset of field: ",
1164 stringify!(cpu_user_regs),
1165 "::",
1166 stringify!(_pad1)
1167 )
1168 );
1169 assert_eq!(
1170 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).ss as *const _ as usize },
1171 160usize,
1172 concat!(
1173 "Offset of field: ",
1174 stringify!(cpu_user_regs),
1175 "::",
1176 stringify!(ss)
1177 )
1178 );
1179 assert_eq!(
1180 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad2 as *const _ as usize },
1181 162usize,
1182 concat!(
1183 "Offset of field: ",
1184 stringify!(cpu_user_regs),
1185 "::",
1186 stringify!(_pad2)
1187 )
1188 );
1189 assert_eq!(
1190 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).es as *const _ as usize },
1191 168usize,
1192 concat!(
1193 "Offset of field: ",
1194 stringify!(cpu_user_regs),
1195 "::",
1196 stringify!(es)
1197 )
1198 );
1199 assert_eq!(
1200 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad3 as *const _ as usize },
1201 170usize,
1202 concat!(
1203 "Offset of field: ",
1204 stringify!(cpu_user_regs),
1205 "::",
1206 stringify!(_pad3)
1207 )
1208 );
1209 assert_eq!(
1210 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).ds as *const _ as usize },
1211 176usize,
1212 concat!(
1213 "Offset of field: ",
1214 stringify!(cpu_user_regs),
1215 "::",
1216 stringify!(ds)
1217 )
1218 );
1219 assert_eq!(
1220 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad4 as *const _ as usize },
1221 178usize,
1222 concat!(
1223 "Offset of field: ",
1224 stringify!(cpu_user_regs),
1225 "::",
1226 stringify!(_pad4)
1227 )
1228 );
1229 assert_eq!(
1230 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).fs as *const _ as usize },
1231 184usize,
1232 concat!(
1233 "Offset of field: ",
1234 stringify!(cpu_user_regs),
1235 "::",
1236 stringify!(fs)
1237 )
1238 );
1239 assert_eq!(
1240 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad5 as *const _ as usize },
1241 186usize,
1242 concat!(
1243 "Offset of field: ",
1244 stringify!(cpu_user_regs),
1245 "::",
1246 stringify!(_pad5)
1247 )
1248 );
1249 assert_eq!(
1250 unsafe { &(*(::core::ptr::null::<cpu_user_regs>())).gs as *const _ as usize },
1251 192usize,
1252 concat!(
1253 "Offset of field: ",
1254 stringify!(cpu_user_regs),
1255 "::",
1256 stringify!(gs)
1257 )
1258 );
1259 assert_eq!(
1260 unsafe { &(*(::core::ptr::null::<cpu_user_regs>()))._pad6 as *const _ as usize },
1261 194usize,
1262 concat!(
1263 "Offset of field: ",
1264 stringify!(cpu_user_regs),
1265 "::",
1266 stringify!(_pad6)
1267 )
1268 );
1269}
1270pub type cpu_user_regs_t = cpu_user_regs;
1271pub type __guest_handle_cpu_user_regs_t = *mut cpu_user_regs_t;
1272pub type __guest_handle_const_cpu_user_regs_t = *const cpu_user_regs_t;
1273#[repr(C)]
1274#[derive(Debug, Copy, Clone)]
1275pub struct arch_vcpu_info {
1276 pub cr2: cty::c_ulong,
1277 pub pad: cty::c_ulong,
1278}
1279#[test]
1280fn bindgen_test_layout_arch_vcpu_info() {
1281 assert_eq!(
1282 ::core::mem::size_of::<arch_vcpu_info>(),
1283 16usize,
1284 concat!("Size of: ", stringify!(arch_vcpu_info))
1285 );
1286 assert_eq!(
1287 ::core::mem::align_of::<arch_vcpu_info>(),
1288 8usize,
1289 concat!("Alignment of ", stringify!(arch_vcpu_info))
1290 );
1291 assert_eq!(
1292 unsafe { &(*(::core::ptr::null::<arch_vcpu_info>())).cr2 as *const _ as usize },
1293 0usize,
1294 concat!(
1295 "Offset of field: ",
1296 stringify!(arch_vcpu_info),
1297 "::",
1298 stringify!(cr2)
1299 )
1300 );
1301 assert_eq!(
1302 unsafe { &(*(::core::ptr::null::<arch_vcpu_info>())).pad as *const _ as usize },
1303 8usize,
1304 concat!(
1305 "Offset of field: ",
1306 stringify!(arch_vcpu_info),
1307 "::",
1308 stringify!(pad)
1309 )
1310 );
1311}
1312pub type arch_vcpu_info_t = arch_vcpu_info;
1313pub type xen_callback_t = cty::c_ulong;
1314pub type xen_pfn_t = cty::c_ulong;
1315pub type xen_ulong_t = cty::c_ulong;
1316#[repr(C)]
1317#[derive(Debug, Copy, Clone)]
1318pub struct trap_info {
1319 pub vector: u8,
1320 pub flags: u8,
1321 pub cs: u16,
1322 pub address: cty::c_ulong,
1323}
1324#[test]
1325fn bindgen_test_layout_trap_info() {
1326 assert_eq!(
1327 ::core::mem::size_of::<trap_info>(),
1328 16usize,
1329 concat!("Size of: ", stringify!(trap_info))
1330 );
1331 assert_eq!(
1332 ::core::mem::align_of::<trap_info>(),
1333 8usize,
1334 concat!("Alignment of ", stringify!(trap_info))
1335 );
1336 assert_eq!(
1337 unsafe { &(*(::core::ptr::null::<trap_info>())).vector as *const _ as usize },
1338 0usize,
1339 concat!(
1340 "Offset of field: ",
1341 stringify!(trap_info),
1342 "::",
1343 stringify!(vector)
1344 )
1345 );
1346 assert_eq!(
1347 unsafe { &(*(::core::ptr::null::<trap_info>())).flags as *const _ as usize },
1348 1usize,
1349 concat!(
1350 "Offset of field: ",
1351 stringify!(trap_info),
1352 "::",
1353 stringify!(flags)
1354 )
1355 );
1356 assert_eq!(
1357 unsafe { &(*(::core::ptr::null::<trap_info>())).cs as *const _ as usize },
1358 2usize,
1359 concat!(
1360 "Offset of field: ",
1361 stringify!(trap_info),
1362 "::",
1363 stringify!(cs)
1364 )
1365 );
1366 assert_eq!(
1367 unsafe { &(*(::core::ptr::null::<trap_info>())).address as *const _ as usize },
1368 8usize,
1369 concat!(
1370 "Offset of field: ",
1371 stringify!(trap_info),
1372 "::",
1373 stringify!(address)
1374 )
1375 );
1376}
1377pub type trap_info_t = trap_info;
1378pub type __guest_handle_trap_info_t = *mut trap_info_t;
1379pub type __guest_handle_const_trap_info_t = *const trap_info_t;
1380pub type tsc_timestamp_t = u64;
1381#[repr(C)]
1382#[derive(Copy, Clone)]
1383pub struct vcpu_guest_context {
1384 pub fpu_ctxt: vcpu_guest_context__bindgen_ty_1,
1385 pub flags: cty::c_ulong,
1386 pub user_regs: cpu_user_regs,
1387 pub trap_ctxt: [trap_info; 256usize],
1388 pub ldt_base: cty::c_ulong,
1389 pub ldt_ents: cty::c_ulong,
1390 pub gdt_frames: [cty::c_ulong; 16usize],
1391 pub gdt_ents: cty::c_ulong,
1392 pub kernel_ss: cty::c_ulong,
1393 pub kernel_sp: cty::c_ulong,
1394 pub ctrlreg: [cty::c_ulong; 8usize],
1395 pub debugreg: [cty::c_ulong; 8usize],
1396 pub event_callback_eip: cty::c_ulong,
1397 pub failsafe_callback_eip: cty::c_ulong,
1398 pub syscall_callback_eip: cty::c_ulong,
1399 pub vm_assist: cty::c_ulong,
1400 pub fs_base: u64,
1401 pub gs_base_kernel: u64,
1402 pub gs_base_user: u64,
1403}
1404#[repr(C)]
1405#[derive(Debug, Copy, Clone)]
1406pub struct vcpu_guest_context__bindgen_ty_1 {
1407 pub x: [cty::c_char; 512usize],
1408}
1409#[test]
1410fn bindgen_test_layout_vcpu_guest_context__bindgen_ty_1() {
1411 assert_eq!(
1412 ::core::mem::size_of::<vcpu_guest_context__bindgen_ty_1>(),
1413 512usize,
1414 concat!("Size of: ", stringify!(vcpu_guest_context__bindgen_ty_1))
1415 );
1416 assert_eq!(
1417 ::core::mem::align_of::<vcpu_guest_context__bindgen_ty_1>(),
1418 1usize,
1419 concat!(
1420 "Alignment of ",
1421 stringify!(vcpu_guest_context__bindgen_ty_1)
1422 )
1423 );
1424 assert_eq!(
1425 unsafe {
1426 &(*(::core::ptr::null::<vcpu_guest_context__bindgen_ty_1>())).x as *const _ as usize
1427 },
1428 0usize,
1429 concat!(
1430 "Offset of field: ",
1431 stringify!(vcpu_guest_context__bindgen_ty_1),
1432 "::",
1433 stringify!(x)
1434 )
1435 );
1436}
1437#[test]
1438fn bindgen_test_layout_vcpu_guest_context() {
1439 assert_eq!(
1440 ::core::mem::size_of::<vcpu_guest_context>(),
1441 5168usize,
1442 concat!("Size of: ", stringify!(vcpu_guest_context))
1443 );
1444 assert_eq!(
1445 ::core::mem::align_of::<vcpu_guest_context>(),
1446 8usize,
1447 concat!("Alignment of ", stringify!(vcpu_guest_context))
1448 );
1449 assert_eq!(
1450 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).fpu_ctxt as *const _ as usize },
1451 0usize,
1452 concat!(
1453 "Offset of field: ",
1454 stringify!(vcpu_guest_context),
1455 "::",
1456 stringify!(fpu_ctxt)
1457 )
1458 );
1459 assert_eq!(
1460 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).flags as *const _ as usize },
1461 512usize,
1462 concat!(
1463 "Offset of field: ",
1464 stringify!(vcpu_guest_context),
1465 "::",
1466 stringify!(flags)
1467 )
1468 );
1469 assert_eq!(
1470 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).user_regs as *const _ as usize },
1471 520usize,
1472 concat!(
1473 "Offset of field: ",
1474 stringify!(vcpu_guest_context),
1475 "::",
1476 stringify!(user_regs)
1477 )
1478 );
1479 assert_eq!(
1480 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).trap_ctxt as *const _ as usize },
1481 720usize,
1482 concat!(
1483 "Offset of field: ",
1484 stringify!(vcpu_guest_context),
1485 "::",
1486 stringify!(trap_ctxt)
1487 )
1488 );
1489 assert_eq!(
1490 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).ldt_base as *const _ as usize },
1491 4816usize,
1492 concat!(
1493 "Offset of field: ",
1494 stringify!(vcpu_guest_context),
1495 "::",
1496 stringify!(ldt_base)
1497 )
1498 );
1499 assert_eq!(
1500 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).ldt_ents as *const _ as usize },
1501 4824usize,
1502 concat!(
1503 "Offset of field: ",
1504 stringify!(vcpu_guest_context),
1505 "::",
1506 stringify!(ldt_ents)
1507 )
1508 );
1509 assert_eq!(
1510 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).gdt_frames as *const _ as usize },
1511 4832usize,
1512 concat!(
1513 "Offset of field: ",
1514 stringify!(vcpu_guest_context),
1515 "::",
1516 stringify!(gdt_frames)
1517 )
1518 );
1519 assert_eq!(
1520 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).gdt_ents as *const _ as usize },
1521 4960usize,
1522 concat!(
1523 "Offset of field: ",
1524 stringify!(vcpu_guest_context),
1525 "::",
1526 stringify!(gdt_ents)
1527 )
1528 );
1529 assert_eq!(
1530 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).kernel_ss as *const _ as usize },
1531 4968usize,
1532 concat!(
1533 "Offset of field: ",
1534 stringify!(vcpu_guest_context),
1535 "::",
1536 stringify!(kernel_ss)
1537 )
1538 );
1539 assert_eq!(
1540 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).kernel_sp as *const _ as usize },
1541 4976usize,
1542 concat!(
1543 "Offset of field: ",
1544 stringify!(vcpu_guest_context),
1545 "::",
1546 stringify!(kernel_sp)
1547 )
1548 );
1549 assert_eq!(
1550 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).ctrlreg as *const _ as usize },
1551 4984usize,
1552 concat!(
1553 "Offset of field: ",
1554 stringify!(vcpu_guest_context),
1555 "::",
1556 stringify!(ctrlreg)
1557 )
1558 );
1559 assert_eq!(
1560 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).debugreg as *const _ as usize },
1561 5048usize,
1562 concat!(
1563 "Offset of field: ",
1564 stringify!(vcpu_guest_context),
1565 "::",
1566 stringify!(debugreg)
1567 )
1568 );
1569 assert_eq!(
1570 unsafe {
1571 &(*(::core::ptr::null::<vcpu_guest_context>())).event_callback_eip as *const _ as usize
1572 },
1573 5112usize,
1574 concat!(
1575 "Offset of field: ",
1576 stringify!(vcpu_guest_context),
1577 "::",
1578 stringify!(event_callback_eip)
1579 )
1580 );
1581 assert_eq!(
1582 unsafe {
1583 &(*(::core::ptr::null::<vcpu_guest_context>())).failsafe_callback_eip as *const _
1584 as usize
1585 },
1586 5120usize,
1587 concat!(
1588 "Offset of field: ",
1589 stringify!(vcpu_guest_context),
1590 "::",
1591 stringify!(failsafe_callback_eip)
1592 )
1593 );
1594 assert_eq!(
1595 unsafe {
1596 &(*(::core::ptr::null::<vcpu_guest_context>())).syscall_callback_eip as *const _
1597 as usize
1598 },
1599 5128usize,
1600 concat!(
1601 "Offset of field: ",
1602 stringify!(vcpu_guest_context),
1603 "::",
1604 stringify!(syscall_callback_eip)
1605 )
1606 );
1607 assert_eq!(
1608 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).vm_assist as *const _ as usize },
1609 5136usize,
1610 concat!(
1611 "Offset of field: ",
1612 stringify!(vcpu_guest_context),
1613 "::",
1614 stringify!(vm_assist)
1615 )
1616 );
1617 assert_eq!(
1618 unsafe { &(*(::core::ptr::null::<vcpu_guest_context>())).fs_base as *const _ as usize },
1619 5144usize,
1620 concat!(
1621 "Offset of field: ",
1622 stringify!(vcpu_guest_context),
1623 "::",
1624 stringify!(fs_base)
1625 )
1626 );
1627 assert_eq!(
1628 unsafe {
1629 &(*(::core::ptr::null::<vcpu_guest_context>())).gs_base_kernel as *const _ as usize
1630 },
1631 5152usize,
1632 concat!(
1633 "Offset of field: ",
1634 stringify!(vcpu_guest_context),
1635 "::",
1636 stringify!(gs_base_kernel)
1637 )
1638 );
1639 assert_eq!(
1640 unsafe {
1641 &(*(::core::ptr::null::<vcpu_guest_context>())).gs_base_user as *const _ as usize
1642 },
1643 5160usize,
1644 concat!(
1645 "Offset of field: ",
1646 stringify!(vcpu_guest_context),
1647 "::",
1648 stringify!(gs_base_user)
1649 )
1650 );
1651}
1652pub type vcpu_guest_context_t = vcpu_guest_context;
1653pub type __guest_handle_vcpu_guest_context_t = *mut vcpu_guest_context_t;
1654pub type __guest_handle_const_vcpu_guest_context_t = *const vcpu_guest_context_t;
1655#[repr(C)]
1656#[derive(Debug, Copy, Clone)]
1657pub struct arch_shared_info {
1658 pub max_pfn: cty::c_ulong,
1659 pub pfn_to_mfn_frame_list_list: xen_pfn_t,
1660 pub nmi_reason: cty::c_ulong,
1661 pub p2m_cr3: cty::c_ulong,
1662 pub p2m_vaddr: cty::c_ulong,
1663 pub p2m_generation: cty::c_ulong,
1664}
1665#[test]
1666fn bindgen_test_layout_arch_shared_info() {
1667 assert_eq!(
1668 ::core::mem::size_of::<arch_shared_info>(),
1669 48usize,
1670 concat!("Size of: ", stringify!(arch_shared_info))
1671 );
1672 assert_eq!(
1673 ::core::mem::align_of::<arch_shared_info>(),
1674 8usize,
1675 concat!("Alignment of ", stringify!(arch_shared_info))
1676 );
1677 assert_eq!(
1678 unsafe { &(*(::core::ptr::null::<arch_shared_info>())).max_pfn as *const _ as usize },
1679 0usize,
1680 concat!(
1681 "Offset of field: ",
1682 stringify!(arch_shared_info),
1683 "::",
1684 stringify!(max_pfn)
1685 )
1686 );
1687 assert_eq!(
1688 unsafe {
1689 &(*(::core::ptr::null::<arch_shared_info>())).pfn_to_mfn_frame_list_list as *const _
1690 as usize
1691 },
1692 8usize,
1693 concat!(
1694 "Offset of field: ",
1695 stringify!(arch_shared_info),
1696 "::",
1697 stringify!(pfn_to_mfn_frame_list_list)
1698 )
1699 );
1700 assert_eq!(
1701 unsafe { &(*(::core::ptr::null::<arch_shared_info>())).nmi_reason as *const _ as usize },
1702 16usize,
1703 concat!(
1704 "Offset of field: ",
1705 stringify!(arch_shared_info),
1706 "::",
1707 stringify!(nmi_reason)
1708 )
1709 );
1710 assert_eq!(
1711 unsafe { &(*(::core::ptr::null::<arch_shared_info>())).p2m_cr3 as *const _ as usize },
1712 24usize,
1713 concat!(
1714 "Offset of field: ",
1715 stringify!(arch_shared_info),
1716 "::",
1717 stringify!(p2m_cr3)
1718 )
1719 );
1720 assert_eq!(
1721 unsafe { &(*(::core::ptr::null::<arch_shared_info>())).p2m_vaddr as *const _ as usize },
1722 32usize,
1723 concat!(
1724 "Offset of field: ",
1725 stringify!(arch_shared_info),
1726 "::",
1727 stringify!(p2m_vaddr)
1728 )
1729 );
1730 assert_eq!(
1731 unsafe {
1732 &(*(::core::ptr::null::<arch_shared_info>())).p2m_generation as *const _ as usize
1733 },
1734 40usize,
1735 concat!(
1736 "Offset of field: ",
1737 stringify!(arch_shared_info),
1738 "::",
1739 stringify!(p2m_generation)
1740 )
1741 );
1742}
1743pub type arch_shared_info_t = arch_shared_info;
1744#[repr(C)]
1745#[derive(Debug, Copy, Clone)]
1746pub struct xen_cpuid_leaf {
1747 pub leaf: u32,
1748 pub subleaf: u32,
1749 pub a: u32,
1750 pub b: u32,
1751 pub c: u32,
1752 pub d: u32,
1753}
1754#[test]
1755fn bindgen_test_layout_xen_cpuid_leaf() {
1756 assert_eq!(
1757 ::core::mem::size_of::<xen_cpuid_leaf>(),
1758 24usize,
1759 concat!("Size of: ", stringify!(xen_cpuid_leaf))
1760 );
1761 assert_eq!(
1762 ::core::mem::align_of::<xen_cpuid_leaf>(),
1763 4usize,
1764 concat!("Alignment of ", stringify!(xen_cpuid_leaf))
1765 );
1766 assert_eq!(
1767 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).leaf as *const _ as usize },
1768 0usize,
1769 concat!(
1770 "Offset of field: ",
1771 stringify!(xen_cpuid_leaf),
1772 "::",
1773 stringify!(leaf)
1774 )
1775 );
1776 assert_eq!(
1777 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).subleaf as *const _ as usize },
1778 4usize,
1779 concat!(
1780 "Offset of field: ",
1781 stringify!(xen_cpuid_leaf),
1782 "::",
1783 stringify!(subleaf)
1784 )
1785 );
1786 assert_eq!(
1787 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).a as *const _ as usize },
1788 8usize,
1789 concat!(
1790 "Offset of field: ",
1791 stringify!(xen_cpuid_leaf),
1792 "::",
1793 stringify!(a)
1794 )
1795 );
1796 assert_eq!(
1797 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).b as *const _ as usize },
1798 12usize,
1799 concat!(
1800 "Offset of field: ",
1801 stringify!(xen_cpuid_leaf),
1802 "::",
1803 stringify!(b)
1804 )
1805 );
1806 assert_eq!(
1807 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).c as *const _ as usize },
1808 16usize,
1809 concat!(
1810 "Offset of field: ",
1811 stringify!(xen_cpuid_leaf),
1812 "::",
1813 stringify!(c)
1814 )
1815 );
1816 assert_eq!(
1817 unsafe { &(*(::core::ptr::null::<xen_cpuid_leaf>())).d as *const _ as usize },
1818 20usize,
1819 concat!(
1820 "Offset of field: ",
1821 stringify!(xen_cpuid_leaf),
1822 "::",
1823 stringify!(d)
1824 )
1825 );
1826}
1827pub type xen_cpuid_leaf_t = xen_cpuid_leaf;
1828pub type __guest_handle_xen_cpuid_leaf_t = *mut xen_cpuid_leaf_t;
1829pub type __guest_handle_const_xen_cpuid_leaf_t = *const xen_cpuid_leaf_t;
1830#[repr(C)]
1831#[derive(Debug, Copy, Clone)]
1832pub struct xen_msr_entry {
1833 pub idx: u32,
1834 pub flags: u32,
1835 pub val: u64,
1836}
1837#[test]
1838fn bindgen_test_layout_xen_msr_entry() {
1839 assert_eq!(
1840 ::core::mem::size_of::<xen_msr_entry>(),
1841 16usize,
1842 concat!("Size of: ", stringify!(xen_msr_entry))
1843 );
1844 assert_eq!(
1845 ::core::mem::align_of::<xen_msr_entry>(),
1846 8usize,
1847 concat!("Alignment of ", stringify!(xen_msr_entry))
1848 );
1849 assert_eq!(
1850 unsafe { &(*(::core::ptr::null::<xen_msr_entry>())).idx as *const _ as usize },
1851 0usize,
1852 concat!(
1853 "Offset of field: ",
1854 stringify!(xen_msr_entry),
1855 "::",
1856 stringify!(idx)
1857 )
1858 );
1859 assert_eq!(
1860 unsafe { &(*(::core::ptr::null::<xen_msr_entry>())).flags as *const _ as usize },
1861 4usize,
1862 concat!(
1863 "Offset of field: ",
1864 stringify!(xen_msr_entry),
1865 "::",
1866 stringify!(flags)
1867 )
1868 );
1869 assert_eq!(
1870 unsafe { &(*(::core::ptr::null::<xen_msr_entry>())).val as *const _ as usize },
1871 8usize,
1872 concat!(
1873 "Offset of field: ",
1874 stringify!(xen_msr_entry),
1875 "::",
1876 stringify!(val)
1877 )
1878 );
1879}
1880pub type xen_msr_entry_t = xen_msr_entry;
1881pub type __guest_handle_xen_msr_entry_t = *mut xen_msr_entry_t;
1882pub type __guest_handle_const_xen_msr_entry_t = *const xen_msr_entry_t;
1883pub type __guest_handle_char = *mut cty::c_char;
1884pub type __guest_handle_const_char = *const cty::c_char;
1885pub type __guest_handle_uchar = *mut cty::c_uchar;
1886pub type __guest_handle_const_uchar = *const cty::c_uchar;
1887pub type __guest_handle_int = *mut cty::c_int;
1888pub type __guest_handle_const_int = *const cty::c_int;
1889pub type __guest_handle_uint = *mut cty::c_uint;
1890pub type __guest_handle_const_uint = *const cty::c_uint;
1891pub type __guest_handle_long = *mut cty::c_long;
1892pub type __guest_handle_const_long = *const cty::c_long;
1893pub type __guest_handle_ulong = *mut cty::c_ulong;
1894pub type __guest_handle_const_ulong = *const cty::c_ulong;
1895pub type __guest_handle_void = *mut cty::c_void;
1896pub type __guest_handle_const_void = *const cty::c_void;
1897pub type __guest_handle_uint64_t = *mut u64;
1898pub type __guest_handle_const_uint64_t = *const u64;
1899pub type __guest_handle_xen_pfn_t = *mut xen_pfn_t;
1900pub type __guest_handle_const_xen_pfn_t = *const xen_pfn_t;
1901pub type __guest_handle_xen_ulong_t = *mut xen_ulong_t;
1902pub type __guest_handle_const_xen_ulong_t = *const xen_ulong_t;
1903#[repr(C)]
1904#[derive(Copy, Clone)]
1905pub struct mmuext_op {
1906 pub cmd: cty::c_uint,
1907 pub arg1: mmuext_op__bindgen_ty_1,
1908 pub arg2: mmuext_op__bindgen_ty_2,
1909}
1910#[repr(C)]
1911#[derive(Copy, Clone)]
1912pub union mmuext_op__bindgen_ty_1 {
1913 pub mfn: xen_pfn_t,
1914 pub linear_addr: cty::c_ulong,
1915}
1916#[test]
1917fn bindgen_test_layout_mmuext_op__bindgen_ty_1() {
1918 assert_eq!(
1919 ::core::mem::size_of::<mmuext_op__bindgen_ty_1>(),
1920 8usize,
1921 concat!("Size of: ", stringify!(mmuext_op__bindgen_ty_1))
1922 );
1923 assert_eq!(
1924 ::core::mem::align_of::<mmuext_op__bindgen_ty_1>(),
1925 8usize,
1926 concat!("Alignment of ", stringify!(mmuext_op__bindgen_ty_1))
1927 );
1928 assert_eq!(
1929 unsafe { &(*(::core::ptr::null::<mmuext_op__bindgen_ty_1>())).mfn as *const _ as usize },
1930 0usize,
1931 concat!(
1932 "Offset of field: ",
1933 stringify!(mmuext_op__bindgen_ty_1),
1934 "::",
1935 stringify!(mfn)
1936 )
1937 );
1938 assert_eq!(
1939 unsafe {
1940 &(*(::core::ptr::null::<mmuext_op__bindgen_ty_1>())).linear_addr as *const _ as usize
1941 },
1942 0usize,
1943 concat!(
1944 "Offset of field: ",
1945 stringify!(mmuext_op__bindgen_ty_1),
1946 "::",
1947 stringify!(linear_addr)
1948 )
1949 );
1950}
1951#[repr(C)]
1952#[derive(Copy, Clone)]
1953pub union mmuext_op__bindgen_ty_2 {
1954 pub nr_ents: cty::c_uint,
1955 pub vcpumask: *const cty::c_void,
1956 pub src_mfn: xen_pfn_t,
1957}
1958#[test]
1959fn bindgen_test_layout_mmuext_op__bindgen_ty_2() {
1960 assert_eq!(
1961 ::core::mem::size_of::<mmuext_op__bindgen_ty_2>(),
1962 8usize,
1963 concat!("Size of: ", stringify!(mmuext_op__bindgen_ty_2))
1964 );
1965 assert_eq!(
1966 ::core::mem::align_of::<mmuext_op__bindgen_ty_2>(),
1967 8usize,
1968 concat!("Alignment of ", stringify!(mmuext_op__bindgen_ty_2))
1969 );
1970 assert_eq!(
1971 unsafe {
1972 &(*(::core::ptr::null::<mmuext_op__bindgen_ty_2>())).nr_ents as *const _ as usize
1973 },
1974 0usize,
1975 concat!(
1976 "Offset of field: ",
1977 stringify!(mmuext_op__bindgen_ty_2),
1978 "::",
1979 stringify!(nr_ents)
1980 )
1981 );
1982 assert_eq!(
1983 unsafe {
1984 &(*(::core::ptr::null::<mmuext_op__bindgen_ty_2>())).vcpumask as *const _ as usize
1985 },
1986 0usize,
1987 concat!(
1988 "Offset of field: ",
1989 stringify!(mmuext_op__bindgen_ty_2),
1990 "::",
1991 stringify!(vcpumask)
1992 )
1993 );
1994 assert_eq!(
1995 unsafe {
1996 &(*(::core::ptr::null::<mmuext_op__bindgen_ty_2>())).src_mfn as *const _ as usize
1997 },
1998 0usize,
1999 concat!(
2000 "Offset of field: ",
2001 stringify!(mmuext_op__bindgen_ty_2),
2002 "::",
2003 stringify!(src_mfn)
2004 )
2005 );
2006}
2007#[test]
2008fn bindgen_test_layout_mmuext_op() {
2009 assert_eq!(
2010 ::core::mem::size_of::<mmuext_op>(),
2011 24usize,
2012 concat!("Size of: ", stringify!(mmuext_op))
2013 );
2014 assert_eq!(
2015 ::core::mem::align_of::<mmuext_op>(),
2016 8usize,
2017 concat!("Alignment of ", stringify!(mmuext_op))
2018 );
2019 assert_eq!(
2020 unsafe { &(*(::core::ptr::null::<mmuext_op>())).cmd as *const _ as usize },
2021 0usize,
2022 concat!(
2023 "Offset of field: ",
2024 stringify!(mmuext_op),
2025 "::",
2026 stringify!(cmd)
2027 )
2028 );
2029 assert_eq!(
2030 unsafe { &(*(::core::ptr::null::<mmuext_op>())).arg1 as *const _ as usize },
2031 8usize,
2032 concat!(
2033 "Offset of field: ",
2034 stringify!(mmuext_op),
2035 "::",
2036 stringify!(arg1)
2037 )
2038 );
2039 assert_eq!(
2040 unsafe { &(*(::core::ptr::null::<mmuext_op>())).arg2 as *const _ as usize },
2041 16usize,
2042 concat!(
2043 "Offset of field: ",
2044 stringify!(mmuext_op),
2045 "::",
2046 stringify!(arg2)
2047 )
2048 );
2049}
2050pub type mmuext_op_t = mmuext_op;
2051pub type __guest_handle_mmuext_op_t = *mut mmuext_op_t;
2052pub type __guest_handle_const_mmuext_op_t = *const mmuext_op_t;
2053pub type domid_t = u16;
2054#[repr(C)]
2055#[derive(Debug, Copy, Clone)]
2056pub struct mmu_update {
2057 pub ptr: u64,
2058 pub val: u64,
2059}
2060#[test]
2061fn bindgen_test_layout_mmu_update() {
2062 assert_eq!(
2063 ::core::mem::size_of::<mmu_update>(),
2064 16usize,
2065 concat!("Size of: ", stringify!(mmu_update))
2066 );
2067 assert_eq!(
2068 ::core::mem::align_of::<mmu_update>(),
2069 8usize,
2070 concat!("Alignment of ", stringify!(mmu_update))
2071 );
2072 assert_eq!(
2073 unsafe { &(*(::core::ptr::null::<mmu_update>())).ptr as *const _ as usize },
2074 0usize,
2075 concat!(
2076 "Offset of field: ",
2077 stringify!(mmu_update),
2078 "::",
2079 stringify!(ptr)
2080 )
2081 );
2082 assert_eq!(
2083 unsafe { &(*(::core::ptr::null::<mmu_update>())).val as *const _ as usize },
2084 8usize,
2085 concat!(
2086 "Offset of field: ",
2087 stringify!(mmu_update),
2088 "::",
2089 stringify!(val)
2090 )
2091 );
2092}
2093pub type mmu_update_t = mmu_update;
2094pub type __guest_handle_mmu_update_t = *mut mmu_update_t;
2095pub type __guest_handle_const_mmu_update_t = *const mmu_update_t;
2096#[repr(C)]
2097#[derive(Debug, Copy, Clone)]
2098pub struct multicall_entry {
2099 pub op: xen_ulong_t,
2100 pub result: xen_ulong_t,
2101 pub args: [xen_ulong_t; 6usize],
2102}
2103#[test]
2104fn bindgen_test_layout_multicall_entry() {
2105 assert_eq!(
2106 ::core::mem::size_of::<multicall_entry>(),
2107 64usize,
2108 concat!("Size of: ", stringify!(multicall_entry))
2109 );
2110 assert_eq!(
2111 ::core::mem::align_of::<multicall_entry>(),
2112 8usize,
2113 concat!("Alignment of ", stringify!(multicall_entry))
2114 );
2115 assert_eq!(
2116 unsafe { &(*(::core::ptr::null::<multicall_entry>())).op as *const _ as usize },
2117 0usize,
2118 concat!(
2119 "Offset of field: ",
2120 stringify!(multicall_entry),
2121 "::",
2122 stringify!(op)
2123 )
2124 );
2125 assert_eq!(
2126 unsafe { &(*(::core::ptr::null::<multicall_entry>())).result as *const _ as usize },
2127 8usize,
2128 concat!(
2129 "Offset of field: ",
2130 stringify!(multicall_entry),
2131 "::",
2132 stringify!(result)
2133 )
2134 );
2135 assert_eq!(
2136 unsafe { &(*(::core::ptr::null::<multicall_entry>())).args as *const _ as usize },
2137 16usize,
2138 concat!(
2139 "Offset of field: ",
2140 stringify!(multicall_entry),
2141 "::",
2142 stringify!(args)
2143 )
2144 );
2145}
2146pub type multicall_entry_t = multicall_entry;
2147pub type __guest_handle_multicall_entry_t = *mut multicall_entry_t;
2148pub type __guest_handle_const_multicall_entry_t = *const multicall_entry_t;
2149#[repr(C)]
2150#[derive(Debug, Copy, Clone)]
2151pub struct vcpu_time_info {
2152 pub version: u32,
2153 pub pad0: u32,
2154 pub tsc_timestamp: u64,
2155 pub system_time: u64,
2156 pub tsc_to_system_mul: u32,
2157 pub tsc_shift: i8,
2158 pub pad1: [i8; 3usize],
2159}
2160#[test]
2161fn bindgen_test_layout_vcpu_time_info() {
2162 assert_eq!(
2163 ::core::mem::size_of::<vcpu_time_info>(),
2164 32usize,
2165 concat!("Size of: ", stringify!(vcpu_time_info))
2166 );
2167 assert_eq!(
2168 ::core::mem::align_of::<vcpu_time_info>(),
2169 8usize,
2170 concat!("Alignment of ", stringify!(vcpu_time_info))
2171 );
2172 assert_eq!(
2173 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).version as *const _ as usize },
2174 0usize,
2175 concat!(
2176 "Offset of field: ",
2177 stringify!(vcpu_time_info),
2178 "::",
2179 stringify!(version)
2180 )
2181 );
2182 assert_eq!(
2183 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).pad0 as *const _ as usize },
2184 4usize,
2185 concat!(
2186 "Offset of field: ",
2187 stringify!(vcpu_time_info),
2188 "::",
2189 stringify!(pad0)
2190 )
2191 );
2192 assert_eq!(
2193 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).tsc_timestamp as *const _ as usize },
2194 8usize,
2195 concat!(
2196 "Offset of field: ",
2197 stringify!(vcpu_time_info),
2198 "::",
2199 stringify!(tsc_timestamp)
2200 )
2201 );
2202 assert_eq!(
2203 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).system_time as *const _ as usize },
2204 16usize,
2205 concat!(
2206 "Offset of field: ",
2207 stringify!(vcpu_time_info),
2208 "::",
2209 stringify!(system_time)
2210 )
2211 );
2212 assert_eq!(
2213 unsafe {
2214 &(*(::core::ptr::null::<vcpu_time_info>())).tsc_to_system_mul as *const _ as usize
2215 },
2216 24usize,
2217 concat!(
2218 "Offset of field: ",
2219 stringify!(vcpu_time_info),
2220 "::",
2221 stringify!(tsc_to_system_mul)
2222 )
2223 );
2224 assert_eq!(
2225 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).tsc_shift as *const _ as usize },
2226 28usize,
2227 concat!(
2228 "Offset of field: ",
2229 stringify!(vcpu_time_info),
2230 "::",
2231 stringify!(tsc_shift)
2232 )
2233 );
2234 assert_eq!(
2235 unsafe { &(*(::core::ptr::null::<vcpu_time_info>())).pad1 as *const _ as usize },
2236 29usize,
2237 concat!(
2238 "Offset of field: ",
2239 stringify!(vcpu_time_info),
2240 "::",
2241 stringify!(pad1)
2242 )
2243 );
2244}
2245pub type vcpu_time_info_t = vcpu_time_info;
2246#[repr(C)]
2247#[derive(Debug, Copy, Clone)]
2248pub struct vcpu_info {
2249 pub evtchn_upcall_pending: u8,
2250 pub evtchn_upcall_mask: u8,
2251 pub evtchn_pending_sel: xen_ulong_t,
2252 pub arch: arch_vcpu_info,
2253 pub time: vcpu_time_info_t,
2254}
2255#[test]
2256fn bindgen_test_layout_vcpu_info() {
2257 assert_eq!(
2258 ::core::mem::size_of::<vcpu_info>(),
2259 64usize,
2260 concat!("Size of: ", stringify!(vcpu_info))
2261 );
2262 assert_eq!(
2263 ::core::mem::align_of::<vcpu_info>(),
2264 8usize,
2265 concat!("Alignment of ", stringify!(vcpu_info))
2266 );
2267 assert_eq!(
2268 unsafe {
2269 &(*(::core::ptr::null::<vcpu_info>())).evtchn_upcall_pending as *const _ as usize
2270 },
2271 0usize,
2272 concat!(
2273 "Offset of field: ",
2274 stringify!(vcpu_info),
2275 "::",
2276 stringify!(evtchn_upcall_pending)
2277 )
2278 );
2279 assert_eq!(
2280 unsafe { &(*(::core::ptr::null::<vcpu_info>())).evtchn_upcall_mask as *const _ as usize },
2281 1usize,
2282 concat!(
2283 "Offset of field: ",
2284 stringify!(vcpu_info),
2285 "::",
2286 stringify!(evtchn_upcall_mask)
2287 )
2288 );
2289 assert_eq!(
2290 unsafe { &(*(::core::ptr::null::<vcpu_info>())).evtchn_pending_sel as *const _ as usize },
2291 8usize,
2292 concat!(
2293 "Offset of field: ",
2294 stringify!(vcpu_info),
2295 "::",
2296 stringify!(evtchn_pending_sel)
2297 )
2298 );
2299 assert_eq!(
2300 unsafe { &(*(::core::ptr::null::<vcpu_info>())).arch as *const _ as usize },
2301 16usize,
2302 concat!(
2303 "Offset of field: ",
2304 stringify!(vcpu_info),
2305 "::",
2306 stringify!(arch)
2307 )
2308 );
2309 assert_eq!(
2310 unsafe { &(*(::core::ptr::null::<vcpu_info>())).time as *const _ as usize },
2311 32usize,
2312 concat!(
2313 "Offset of field: ",
2314 stringify!(vcpu_info),
2315 "::",
2316 stringify!(time)
2317 )
2318 );
2319}
2320pub type vcpu_info_t = vcpu_info;
2321#[repr(C)]
2322#[derive(Debug, Copy, Clone)]
2323pub struct shared_info {
2324 pub vcpu_info: [vcpu_info; 32usize],
2325 pub evtchn_pending: [xen_ulong_t; 64usize],
2326 pub evtchn_mask: [xen_ulong_t; 64usize],
2327 pub wc_version: u32,
2328 pub wc_sec: u32,
2329 pub wc_nsec: u32,
2330 pub wc_sec_hi: u32,
2331 pub arch: arch_shared_info,
2332}
2333#[test]
2334fn bindgen_test_layout_shared_info() {
2335 assert_eq!(
2336 ::core::mem::size_of::<shared_info>(),
2337 3136usize,
2338 concat!("Size of: ", stringify!(shared_info))
2339 );
2340 assert_eq!(
2341 ::core::mem::align_of::<shared_info>(),
2342 8usize,
2343 concat!("Alignment of ", stringify!(shared_info))
2344 );
2345 assert_eq!(
2346 unsafe { &(*(::core::ptr::null::<shared_info>())).vcpu_info as *const _ as usize },
2347 0usize,
2348 concat!(
2349 "Offset of field: ",
2350 stringify!(shared_info),
2351 "::",
2352 stringify!(vcpu_info)
2353 )
2354 );
2355 assert_eq!(
2356 unsafe { &(*(::core::ptr::null::<shared_info>())).evtchn_pending as *const _ as usize },
2357 2048usize,
2358 concat!(
2359 "Offset of field: ",
2360 stringify!(shared_info),
2361 "::",
2362 stringify!(evtchn_pending)
2363 )
2364 );
2365 assert_eq!(
2366 unsafe { &(*(::core::ptr::null::<shared_info>())).evtchn_mask as *const _ as usize },
2367 2560usize,
2368 concat!(
2369 "Offset of field: ",
2370 stringify!(shared_info),
2371 "::",
2372 stringify!(evtchn_mask)
2373 )
2374 );
2375 assert_eq!(
2376 unsafe { &(*(::core::ptr::null::<shared_info>())).wc_version as *const _ as usize },
2377 3072usize,
2378 concat!(
2379 "Offset of field: ",
2380 stringify!(shared_info),
2381 "::",
2382 stringify!(wc_version)
2383 )
2384 );
2385 assert_eq!(
2386 unsafe { &(*(::core::ptr::null::<shared_info>())).wc_sec as *const _ as usize },
2387 3076usize,
2388 concat!(
2389 "Offset of field: ",
2390 stringify!(shared_info),
2391 "::",
2392 stringify!(wc_sec)
2393 )
2394 );
2395 assert_eq!(
2396 unsafe { &(*(::core::ptr::null::<shared_info>())).wc_nsec as *const _ as usize },
2397 3080usize,
2398 concat!(
2399 "Offset of field: ",
2400 stringify!(shared_info),
2401 "::",
2402 stringify!(wc_nsec)
2403 )
2404 );
2405 assert_eq!(
2406 unsafe { &(*(::core::ptr::null::<shared_info>())).wc_sec_hi as *const _ as usize },
2407 3084usize,
2408 concat!(
2409 "Offset of field: ",
2410 stringify!(shared_info),
2411 "::",
2412 stringify!(wc_sec_hi)
2413 )
2414 );
2415 assert_eq!(
2416 unsafe { &(*(::core::ptr::null::<shared_info>())).arch as *const _ as usize },
2417 3088usize,
2418 concat!(
2419 "Offset of field: ",
2420 stringify!(shared_info),
2421 "::",
2422 stringify!(arch)
2423 )
2424 );
2425}
2426pub type shared_info_t = shared_info;
2427#[repr(C)]
2428#[derive(Copy, Clone)]
2429pub struct start_info {
2430 pub magic: [cty::c_char; 32usize],
2431 pub nr_pages: cty::c_ulong,
2432 pub shared_info: cty::c_ulong,
2433 pub flags: u32,
2434 pub store_mfn: xen_pfn_t,
2435 pub store_evtchn: u32,
2436 pub console: start_info__bindgen_ty_1,
2437 pub pt_base: cty::c_ulong,
2438 pub nr_pt_frames: cty::c_ulong,
2439 pub mfn_list: cty::c_ulong,
2440 pub mod_start: cty::c_ulong,
2441 pub mod_len: cty::c_ulong,
2442 pub cmd_line: [i8; 1024usize],
2443 pub first_p2m_pfn: cty::c_ulong,
2444 pub nr_p2m_frames: cty::c_ulong,
2445}
2446#[repr(C)]
2447#[derive(Copy, Clone)]
2448pub union start_info__bindgen_ty_1 {
2449 pub domU: start_info__bindgen_ty_1__bindgen_ty_1,
2450 pub dom0: start_info__bindgen_ty_1__bindgen_ty_2,
2451}
2452#[repr(C)]
2453#[derive(Debug, Copy, Clone)]
2454pub struct start_info__bindgen_ty_1__bindgen_ty_1 {
2455 pub mfn: xen_pfn_t,
2456 pub evtchn: u32,
2457}
2458#[test]
2459fn bindgen_test_layout_start_info__bindgen_ty_1__bindgen_ty_1() {
2460 assert_eq!(
2461 ::core::mem::size_of::<start_info__bindgen_ty_1__bindgen_ty_1>(),
2462 16usize,
2463 concat!(
2464 "Size of: ",
2465 stringify!(start_info__bindgen_ty_1__bindgen_ty_1)
2466 )
2467 );
2468 assert_eq!(
2469 ::core::mem::align_of::<start_info__bindgen_ty_1__bindgen_ty_1>(),
2470 8usize,
2471 concat!(
2472 "Alignment of ",
2473 stringify!(start_info__bindgen_ty_1__bindgen_ty_1)
2474 )
2475 );
2476 assert_eq!(
2477 unsafe {
2478 &(*(::core::ptr::null::<start_info__bindgen_ty_1__bindgen_ty_1>())).mfn as *const _
2479 as usize
2480 },
2481 0usize,
2482 concat!(
2483 "Offset of field: ",
2484 stringify!(start_info__bindgen_ty_1__bindgen_ty_1),
2485 "::",
2486 stringify!(mfn)
2487 )
2488 );
2489 assert_eq!(
2490 unsafe {
2491 &(*(::core::ptr::null::<start_info__bindgen_ty_1__bindgen_ty_1>())).evtchn as *const _
2492 as usize
2493 },
2494 8usize,
2495 concat!(
2496 "Offset of field: ",
2497 stringify!(start_info__bindgen_ty_1__bindgen_ty_1),
2498 "::",
2499 stringify!(evtchn)
2500 )
2501 );
2502}
2503#[repr(C)]
2504#[derive(Debug, Copy, Clone)]
2505pub struct start_info__bindgen_ty_1__bindgen_ty_2 {
2506 pub info_off: u32,
2507 pub info_size: u32,
2508}
2509#[test]
2510fn bindgen_test_layout_start_info__bindgen_ty_1__bindgen_ty_2() {
2511 assert_eq!(
2512 ::core::mem::size_of::<start_info__bindgen_ty_1__bindgen_ty_2>(),
2513 8usize,
2514 concat!(
2515 "Size of: ",
2516 stringify!(start_info__bindgen_ty_1__bindgen_ty_2)
2517 )
2518 );
2519 assert_eq!(
2520 ::core::mem::align_of::<start_info__bindgen_ty_1__bindgen_ty_2>(),
2521 4usize,
2522 concat!(
2523 "Alignment of ",
2524 stringify!(start_info__bindgen_ty_1__bindgen_ty_2)
2525 )
2526 );
2527 assert_eq!(
2528 unsafe {
2529 &(*(::core::ptr::null::<start_info__bindgen_ty_1__bindgen_ty_2>())).info_off as *const _
2530 as usize
2531 },
2532 0usize,
2533 concat!(
2534 "Offset of field: ",
2535 stringify!(start_info__bindgen_ty_1__bindgen_ty_2),
2536 "::",
2537 stringify!(info_off)
2538 )
2539 );
2540 assert_eq!(
2541 unsafe {
2542 &(*(::core::ptr::null::<start_info__bindgen_ty_1__bindgen_ty_2>())).info_size
2543 as *const _ as usize
2544 },
2545 4usize,
2546 concat!(
2547 "Offset of field: ",
2548 stringify!(start_info__bindgen_ty_1__bindgen_ty_2),
2549 "::",
2550 stringify!(info_size)
2551 )
2552 );
2553}
2554#[test]
2555fn bindgen_test_layout_start_info__bindgen_ty_1() {
2556 assert_eq!(
2557 ::core::mem::size_of::<start_info__bindgen_ty_1>(),
2558 16usize,
2559 concat!("Size of: ", stringify!(start_info__bindgen_ty_1))
2560 );
2561 assert_eq!(
2562 ::core::mem::align_of::<start_info__bindgen_ty_1>(),
2563 8usize,
2564 concat!("Alignment of ", stringify!(start_info__bindgen_ty_1))
2565 );
2566 assert_eq!(
2567 unsafe { &(*(::core::ptr::null::<start_info__bindgen_ty_1>())).domU as *const _ as usize },
2568 0usize,
2569 concat!(
2570 "Offset of field: ",
2571 stringify!(start_info__bindgen_ty_1),
2572 "::",
2573 stringify!(domU)
2574 )
2575 );
2576 assert_eq!(
2577 unsafe { &(*(::core::ptr::null::<start_info__bindgen_ty_1>())).dom0 as *const _ as usize },
2578 0usize,
2579 concat!(
2580 "Offset of field: ",
2581 stringify!(start_info__bindgen_ty_1),
2582 "::",
2583 stringify!(dom0)
2584 )
2585 );
2586}
2587#[test]
2588fn bindgen_test_layout_start_info() {
2589 assert_eq!(
2590 ::core::mem::size_of::<start_info>(),
2591 1168usize,
2592 concat!("Size of: ", stringify!(start_info))
2593 );
2594 assert_eq!(
2595 ::core::mem::align_of::<start_info>(),
2596 8usize,
2597 concat!("Alignment of ", stringify!(start_info))
2598 );
2599 assert_eq!(
2600 unsafe { &(*(::core::ptr::null::<start_info>())).magic as *const _ as usize },
2601 0usize,
2602 concat!(
2603 "Offset of field: ",
2604 stringify!(start_info),
2605 "::",
2606 stringify!(magic)
2607 )
2608 );
2609 assert_eq!(
2610 unsafe { &(*(::core::ptr::null::<start_info>())).nr_pages as *const _ as usize },
2611 32usize,
2612 concat!(
2613 "Offset of field: ",
2614 stringify!(start_info),
2615 "::",
2616 stringify!(nr_pages)
2617 )
2618 );
2619 assert_eq!(
2620 unsafe { &(*(::core::ptr::null::<start_info>())).shared_info as *const _ as usize },
2621 40usize,
2622 concat!(
2623 "Offset of field: ",
2624 stringify!(start_info),
2625 "::",
2626 stringify!(shared_info)
2627 )
2628 );
2629 assert_eq!(
2630 unsafe { &(*(::core::ptr::null::<start_info>())).flags as *const _ as usize },
2631 48usize,
2632 concat!(
2633 "Offset of field: ",
2634 stringify!(start_info),
2635 "::",
2636 stringify!(flags)
2637 )
2638 );
2639 assert_eq!(
2640 unsafe { &(*(::core::ptr::null::<start_info>())).store_mfn as *const _ as usize },
2641 56usize,
2642 concat!(
2643 "Offset of field: ",
2644 stringify!(start_info),
2645 "::",
2646 stringify!(store_mfn)
2647 )
2648 );
2649 assert_eq!(
2650 unsafe { &(*(::core::ptr::null::<start_info>())).store_evtchn as *const _ as usize },
2651 64usize,
2652 concat!(
2653 "Offset of field: ",
2654 stringify!(start_info),
2655 "::",
2656 stringify!(store_evtchn)
2657 )
2658 );
2659 assert_eq!(
2660 unsafe { &(*(::core::ptr::null::<start_info>())).console as *const _ as usize },
2661 72usize,
2662 concat!(
2663 "Offset of field: ",
2664 stringify!(start_info),
2665 "::",
2666 stringify!(console)
2667 )
2668 );
2669 assert_eq!(
2670 unsafe { &(*(::core::ptr::null::<start_info>())).pt_base as *const _ as usize },
2671 88usize,
2672 concat!(
2673 "Offset of field: ",
2674 stringify!(start_info),
2675 "::",
2676 stringify!(pt_base)
2677 )
2678 );
2679 assert_eq!(
2680 unsafe { &(*(::core::ptr::null::<start_info>())).nr_pt_frames as *const _ as usize },
2681 96usize,
2682 concat!(
2683 "Offset of field: ",
2684 stringify!(start_info),
2685 "::",
2686 stringify!(nr_pt_frames)
2687 )
2688 );
2689 assert_eq!(
2690 unsafe { &(*(::core::ptr::null::<start_info>())).mfn_list as *const _ as usize },
2691 104usize,
2692 concat!(
2693 "Offset of field: ",
2694 stringify!(start_info),
2695 "::",
2696 stringify!(mfn_list)
2697 )
2698 );
2699 assert_eq!(
2700 unsafe { &(*(::core::ptr::null::<start_info>())).mod_start as *const _ as usize },
2701 112usize,
2702 concat!(
2703 "Offset of field: ",
2704 stringify!(start_info),
2705 "::",
2706 stringify!(mod_start)
2707 )
2708 );
2709 assert_eq!(
2710 unsafe { &(*(::core::ptr::null::<start_info>())).mod_len as *const _ as usize },
2711 120usize,
2712 concat!(
2713 "Offset of field: ",
2714 stringify!(start_info),
2715 "::",
2716 stringify!(mod_len)
2717 )
2718 );
2719 assert_eq!(
2720 unsafe { &(*(::core::ptr::null::<start_info>())).cmd_line as *const _ as usize },
2721 128usize,
2722 concat!(
2723 "Offset of field: ",
2724 stringify!(start_info),
2725 "::",
2726 stringify!(cmd_line)
2727 )
2728 );
2729 assert_eq!(
2730 unsafe { &(*(::core::ptr::null::<start_info>())).first_p2m_pfn as *const _ as usize },
2731 1152usize,
2732 concat!(
2733 "Offset of field: ",
2734 stringify!(start_info),
2735 "::",
2736 stringify!(first_p2m_pfn)
2737 )
2738 );
2739 assert_eq!(
2740 unsafe { &(*(::core::ptr::null::<start_info>())).nr_p2m_frames as *const _ as usize },
2741 1160usize,
2742 concat!(
2743 "Offset of field: ",
2744 stringify!(start_info),
2745 "::",
2746 stringify!(nr_p2m_frames)
2747 )
2748 );
2749}
2750pub type start_info_t = start_info;
2751#[repr(C)]
2752#[derive(Debug, Copy, Clone)]
2753pub struct xen_multiboot_mod_list {
2754 pub mod_start: u32,
2755 pub mod_end: u32,
2756 pub cmdline: u32,
2757 pub pad: u32,
2758}
2759#[test]
2760fn bindgen_test_layout_xen_multiboot_mod_list() {
2761 assert_eq!(
2762 ::core::mem::size_of::<xen_multiboot_mod_list>(),
2763 16usize,
2764 concat!("Size of: ", stringify!(xen_multiboot_mod_list))
2765 );
2766 assert_eq!(
2767 ::core::mem::align_of::<xen_multiboot_mod_list>(),
2768 4usize,
2769 concat!("Alignment of ", stringify!(xen_multiboot_mod_list))
2770 );
2771 assert_eq!(
2772 unsafe {
2773 &(*(::core::ptr::null::<xen_multiboot_mod_list>())).mod_start as *const _ as usize
2774 },
2775 0usize,
2776 concat!(
2777 "Offset of field: ",
2778 stringify!(xen_multiboot_mod_list),
2779 "::",
2780 stringify!(mod_start)
2781 )
2782 );
2783 assert_eq!(
2784 unsafe { &(*(::core::ptr::null::<xen_multiboot_mod_list>())).mod_end as *const _ as usize },
2785 4usize,
2786 concat!(
2787 "Offset of field: ",
2788 stringify!(xen_multiboot_mod_list),
2789 "::",
2790 stringify!(mod_end)
2791 )
2792 );
2793 assert_eq!(
2794 unsafe { &(*(::core::ptr::null::<xen_multiboot_mod_list>())).cmdline as *const _ as usize },
2795 8usize,
2796 concat!(
2797 "Offset of field: ",
2798 stringify!(xen_multiboot_mod_list),
2799 "::",
2800 stringify!(cmdline)
2801 )
2802 );
2803 assert_eq!(
2804 unsafe { &(*(::core::ptr::null::<xen_multiboot_mod_list>())).pad as *const _ as usize },
2805 12usize,
2806 concat!(
2807 "Offset of field: ",
2808 stringify!(xen_multiboot_mod_list),
2809 "::",
2810 stringify!(pad)
2811 )
2812 );
2813}
2814#[repr(C)]
2815#[derive(Copy, Clone)]
2816pub struct dom0_vga_console_info {
2817 pub video_type: u8,
2818 pub u: dom0_vga_console_info__bindgen_ty_1,
2819}
2820#[repr(C)]
2821#[derive(Copy, Clone)]
2822pub union dom0_vga_console_info__bindgen_ty_1 {
2823 pub text_mode_3: dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1,
2824 pub vesa_lfb: dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2,
2825}
2826#[repr(C)]
2827#[derive(Debug, Copy, Clone)]
2828pub struct dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1 {
2829 pub font_height: u16,
2830 pub cursor_x: u16,
2831 pub cursor_y: u16,
2832 pub rows: u16,
2833 pub columns: u16,
2834}
2835#[test]
2836fn bindgen_test_layout_dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1() {
2837 assert_eq!(
2838 ::core::mem::size_of::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>(),
2839 10usize,
2840 concat!(
2841 "Size of: ",
2842 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1)
2843 )
2844 );
2845 assert_eq!(
2846 ::core::mem::align_of::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>(),
2847 2usize,
2848 concat!(
2849 "Alignment of ",
2850 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1)
2851 )
2852 );
2853 assert_eq!(
2854 unsafe {
2855 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>()))
2856 .font_height as *const _ as usize
2857 },
2858 0usize,
2859 concat!(
2860 "Offset of field: ",
2861 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1),
2862 "::",
2863 stringify!(font_height)
2864 )
2865 );
2866 assert_eq!(
2867 unsafe {
2868 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>())).cursor_x
2869 as *const _ as usize
2870 },
2871 2usize,
2872 concat!(
2873 "Offset of field: ",
2874 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1),
2875 "::",
2876 stringify!(cursor_x)
2877 )
2878 );
2879 assert_eq!(
2880 unsafe {
2881 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>())).cursor_y
2882 as *const _ as usize
2883 },
2884 4usize,
2885 concat!(
2886 "Offset of field: ",
2887 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1),
2888 "::",
2889 stringify!(cursor_y)
2890 )
2891 );
2892 assert_eq!(
2893 unsafe {
2894 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>())).rows
2895 as *const _ as usize
2896 },
2897 6usize,
2898 concat!(
2899 "Offset of field: ",
2900 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1),
2901 "::",
2902 stringify!(rows)
2903 )
2904 );
2905 assert_eq!(
2906 unsafe {
2907 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1>())).columns
2908 as *const _ as usize
2909 },
2910 8usize,
2911 concat!(
2912 "Offset of field: ",
2913 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_1),
2914 "::",
2915 stringify!(columns)
2916 )
2917 );
2918}
2919#[repr(C)]
2920#[derive(Debug, Copy, Clone)]
2921pub struct dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2 {
2922 pub width: u16,
2923 pub height: u16,
2924 pub bytes_per_line: u16,
2925 pub bits_per_pixel: u16,
2926 pub lfb_base: u32,
2927 pub lfb_size: u32,
2928 pub red_pos: u8,
2929 pub red_size: u8,
2930 pub green_pos: u8,
2931 pub green_size: u8,
2932 pub blue_pos: u8,
2933 pub blue_size: u8,
2934 pub rsvd_pos: u8,
2935 pub rsvd_size: u8,
2936}
2937#[test]
2938fn bindgen_test_layout_dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2() {
2939 assert_eq!(
2940 ::core::mem::size_of::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>(),
2941 24usize,
2942 concat!(
2943 "Size of: ",
2944 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2)
2945 )
2946 );
2947 assert_eq!(
2948 ::core::mem::align_of::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>(),
2949 4usize,
2950 concat!(
2951 "Alignment of ",
2952 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2)
2953 )
2954 );
2955 assert_eq!(
2956 unsafe {
2957 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).width
2958 as *const _ as usize
2959 },
2960 0usize,
2961 concat!(
2962 "Offset of field: ",
2963 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
2964 "::",
2965 stringify!(width)
2966 )
2967 );
2968 assert_eq!(
2969 unsafe {
2970 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).height
2971 as *const _ as usize
2972 },
2973 2usize,
2974 concat!(
2975 "Offset of field: ",
2976 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
2977 "::",
2978 stringify!(height)
2979 )
2980 );
2981 assert_eq!(
2982 unsafe {
2983 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>()))
2984 .bytes_per_line as *const _ as usize
2985 },
2986 4usize,
2987 concat!(
2988 "Offset of field: ",
2989 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
2990 "::",
2991 stringify!(bytes_per_line)
2992 )
2993 );
2994 assert_eq!(
2995 unsafe {
2996 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>()))
2997 .bits_per_pixel as *const _ as usize
2998 },
2999 6usize,
3000 concat!(
3001 "Offset of field: ",
3002 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3003 "::",
3004 stringify!(bits_per_pixel)
3005 )
3006 );
3007 assert_eq!(
3008 unsafe {
3009 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).lfb_base
3010 as *const _ as usize
3011 },
3012 8usize,
3013 concat!(
3014 "Offset of field: ",
3015 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3016 "::",
3017 stringify!(lfb_base)
3018 )
3019 );
3020 assert_eq!(
3021 unsafe {
3022 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).lfb_size
3023 as *const _ as usize
3024 },
3025 12usize,
3026 concat!(
3027 "Offset of field: ",
3028 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3029 "::",
3030 stringify!(lfb_size)
3031 )
3032 );
3033 assert_eq!(
3034 unsafe {
3035 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).red_pos
3036 as *const _ as usize
3037 },
3038 16usize,
3039 concat!(
3040 "Offset of field: ",
3041 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3042 "::",
3043 stringify!(red_pos)
3044 )
3045 );
3046 assert_eq!(
3047 unsafe {
3048 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).red_size
3049 as *const _ as usize
3050 },
3051 17usize,
3052 concat!(
3053 "Offset of field: ",
3054 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3055 "::",
3056 stringify!(red_size)
3057 )
3058 );
3059 assert_eq!(
3060 unsafe {
3061 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).green_pos
3062 as *const _ as usize
3063 },
3064 18usize,
3065 concat!(
3066 "Offset of field: ",
3067 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3068 "::",
3069 stringify!(green_pos)
3070 )
3071 );
3072 assert_eq!(
3073 unsafe {
3074 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>()))
3075 .green_size as *const _ as usize
3076 },
3077 19usize,
3078 concat!(
3079 "Offset of field: ",
3080 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3081 "::",
3082 stringify!(green_size)
3083 )
3084 );
3085 assert_eq!(
3086 unsafe {
3087 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).blue_pos
3088 as *const _ as usize
3089 },
3090 20usize,
3091 concat!(
3092 "Offset of field: ",
3093 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3094 "::",
3095 stringify!(blue_pos)
3096 )
3097 );
3098 assert_eq!(
3099 unsafe {
3100 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).blue_size
3101 as *const _ as usize
3102 },
3103 21usize,
3104 concat!(
3105 "Offset of field: ",
3106 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3107 "::",
3108 stringify!(blue_size)
3109 )
3110 );
3111 assert_eq!(
3112 unsafe {
3113 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).rsvd_pos
3114 as *const _ as usize
3115 },
3116 22usize,
3117 concat!(
3118 "Offset of field: ",
3119 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3120 "::",
3121 stringify!(rsvd_pos)
3122 )
3123 );
3124 assert_eq!(
3125 unsafe {
3126 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2>())).rsvd_size
3127 as *const _ as usize
3128 },
3129 23usize,
3130 concat!(
3131 "Offset of field: ",
3132 stringify!(dom0_vga_console_info__bindgen_ty_1__bindgen_ty_2),
3133 "::",
3134 stringify!(rsvd_size)
3135 )
3136 );
3137}
3138#[test]
3139fn bindgen_test_layout_dom0_vga_console_info__bindgen_ty_1() {
3140 assert_eq!(
3141 ::core::mem::size_of::<dom0_vga_console_info__bindgen_ty_1>(),
3142 24usize,
3143 concat!("Size of: ", stringify!(dom0_vga_console_info__bindgen_ty_1))
3144 );
3145 assert_eq!(
3146 ::core::mem::align_of::<dom0_vga_console_info__bindgen_ty_1>(),
3147 4usize,
3148 concat!(
3149 "Alignment of ",
3150 stringify!(dom0_vga_console_info__bindgen_ty_1)
3151 )
3152 );
3153 assert_eq!(
3154 unsafe {
3155 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1>())).text_mode_3 as *const _
3156 as usize
3157 },
3158 0usize,
3159 concat!(
3160 "Offset of field: ",
3161 stringify!(dom0_vga_console_info__bindgen_ty_1),
3162 "::",
3163 stringify!(text_mode_3)
3164 )
3165 );
3166 assert_eq!(
3167 unsafe {
3168 &(*(::core::ptr::null::<dom0_vga_console_info__bindgen_ty_1>())).vesa_lfb as *const _
3169 as usize
3170 },
3171 0usize,
3172 concat!(
3173 "Offset of field: ",
3174 stringify!(dom0_vga_console_info__bindgen_ty_1),
3175 "::",
3176 stringify!(vesa_lfb)
3177 )
3178 );
3179}
3180#[test]
3181fn bindgen_test_layout_dom0_vga_console_info() {
3182 assert_eq!(
3183 ::core::mem::size_of::<dom0_vga_console_info>(),
3184 28usize,
3185 concat!("Size of: ", stringify!(dom0_vga_console_info))
3186 );
3187 assert_eq!(
3188 ::core::mem::align_of::<dom0_vga_console_info>(),
3189 4usize,
3190 concat!("Alignment of ", stringify!(dom0_vga_console_info))
3191 );
3192 assert_eq!(
3193 unsafe {
3194 &(*(::core::ptr::null::<dom0_vga_console_info>())).video_type as *const _ as usize
3195 },
3196 0usize,
3197 concat!(
3198 "Offset of field: ",
3199 stringify!(dom0_vga_console_info),
3200 "::",
3201 stringify!(video_type)
3202 )
3203 );
3204 assert_eq!(
3205 unsafe { &(*(::core::ptr::null::<dom0_vga_console_info>())).u as *const _ as usize },
3206 4usize,
3207 concat!(
3208 "Offset of field: ",
3209 stringify!(dom0_vga_console_info),
3210 "::",
3211 stringify!(u)
3212 )
3213 );
3214}
3215pub type dom0_vga_console_info_t = dom0_vga_console_info;
3216pub type xen_domain_handle_t = [u8; 16usize];
3217pub type __guest_handle_uint8 = *mut u8;
3218pub type __guest_handle_const_uint8 = *const u8;
3219pub type __guest_handle_uint16 = *mut u16;
3220pub type __guest_handle_const_uint16 = *const u16;
3221pub type __guest_handle_uint32 = *mut u32;
3222pub type __guest_handle_const_uint32 = *const u32;
3223pub type __guest_handle_uint64 = *mut u64;
3224pub type __guest_handle_const_uint64 = *const u64;
3225#[repr(C)]
3226#[derive(Debug, Copy, Clone)]
3227pub struct xen_uuid_t {
3228 pub a: [u8; 16usize],
3229}
3230#[test]
3231fn bindgen_test_layout_xen_uuid_t() {
3232 assert_eq!(
3233 ::core::mem::size_of::<xen_uuid_t>(),
3234 16usize,
3235 concat!("Size of: ", stringify!(xen_uuid_t))
3236 );
3237 assert_eq!(
3238 ::core::mem::align_of::<xen_uuid_t>(),
3239 1usize,
3240 concat!("Alignment of ", stringify!(xen_uuid_t))
3241 );
3242 assert_eq!(
3243 unsafe { &(*(::core::ptr::null::<xen_uuid_t>())).a as *const _ as usize },
3244 0usize,
3245 concat!(
3246 "Offset of field: ",
3247 stringify!(xen_uuid_t),
3248 "::",
3249 stringify!(a)
3250 )
3251 );
3252}
3253pub type evtchn_port_t = u32;
3254pub type __guest_handle_evtchn_port_t = *mut evtchn_port_t;
3255pub type __guest_handle_const_evtchn_port_t = *const evtchn_port_t;
3256#[repr(C)]
3257#[derive(Debug, Copy, Clone)]
3258pub struct evtchn_alloc_unbound {
3259 pub dom: domid_t,
3260 pub remote_dom: domid_t,
3261 pub port: evtchn_port_t,
3262}
3263#[test]
3264fn bindgen_test_layout_evtchn_alloc_unbound() {
3265 assert_eq!(
3266 ::core::mem::size_of::<evtchn_alloc_unbound>(),
3267 8usize,
3268 concat!("Size of: ", stringify!(evtchn_alloc_unbound))
3269 );
3270 assert_eq!(
3271 ::core::mem::align_of::<evtchn_alloc_unbound>(),
3272 4usize,
3273 concat!("Alignment of ", stringify!(evtchn_alloc_unbound))
3274 );
3275 assert_eq!(
3276 unsafe { &(*(::core::ptr::null::<evtchn_alloc_unbound>())).dom as *const _ as usize },
3277 0usize,
3278 concat!(
3279 "Offset of field: ",
3280 stringify!(evtchn_alloc_unbound),
3281 "::",
3282 stringify!(dom)
3283 )
3284 );
3285 assert_eq!(
3286 unsafe {
3287 &(*(::core::ptr::null::<evtchn_alloc_unbound>())).remote_dom as *const _ as usize
3288 },
3289 2usize,
3290 concat!(
3291 "Offset of field: ",
3292 stringify!(evtchn_alloc_unbound),
3293 "::",
3294 stringify!(remote_dom)
3295 )
3296 );
3297 assert_eq!(
3298 unsafe { &(*(::core::ptr::null::<evtchn_alloc_unbound>())).port as *const _ as usize },
3299 4usize,
3300 concat!(
3301 "Offset of field: ",
3302 stringify!(evtchn_alloc_unbound),
3303 "::",
3304 stringify!(port)
3305 )
3306 );
3307}
3308pub type evtchn_alloc_unbound_t = evtchn_alloc_unbound;
3309#[repr(C)]
3310#[derive(Debug, Copy, Clone)]
3311pub struct evtchn_bind_interdomain {
3312 pub remote_dom: domid_t,
3313 pub remote_port: evtchn_port_t,
3314 pub local_port: evtchn_port_t,
3315}
3316#[test]
3317fn bindgen_test_layout_evtchn_bind_interdomain() {
3318 assert_eq!(
3319 ::core::mem::size_of::<evtchn_bind_interdomain>(),
3320 12usize,
3321 concat!("Size of: ", stringify!(evtchn_bind_interdomain))
3322 );
3323 assert_eq!(
3324 ::core::mem::align_of::<evtchn_bind_interdomain>(),
3325 4usize,
3326 concat!("Alignment of ", stringify!(evtchn_bind_interdomain))
3327 );
3328 assert_eq!(
3329 unsafe {
3330 &(*(::core::ptr::null::<evtchn_bind_interdomain>())).remote_dom as *const _ as usize
3331 },
3332 0usize,
3333 concat!(
3334 "Offset of field: ",
3335 stringify!(evtchn_bind_interdomain),
3336 "::",
3337 stringify!(remote_dom)
3338 )
3339 );
3340 assert_eq!(
3341 unsafe {
3342 &(*(::core::ptr::null::<evtchn_bind_interdomain>())).remote_port as *const _ as usize
3343 },
3344 4usize,
3345 concat!(
3346 "Offset of field: ",
3347 stringify!(evtchn_bind_interdomain),
3348 "::",
3349 stringify!(remote_port)
3350 )
3351 );
3352 assert_eq!(
3353 unsafe {
3354 &(*(::core::ptr::null::<evtchn_bind_interdomain>())).local_port as *const _ as usize
3355 },
3356 8usize,
3357 concat!(
3358 "Offset of field: ",
3359 stringify!(evtchn_bind_interdomain),
3360 "::",
3361 stringify!(local_port)
3362 )
3363 );
3364}
3365pub type evtchn_bind_interdomain_t = evtchn_bind_interdomain;
3366#[repr(C)]
3367#[derive(Debug, Copy, Clone)]
3368pub struct evtchn_bind_virq {
3369 pub virq: u32,
3370 pub vcpu: u32,
3371 pub port: evtchn_port_t,
3372}
3373#[test]
3374fn bindgen_test_layout_evtchn_bind_virq() {
3375 assert_eq!(
3376 ::core::mem::size_of::<evtchn_bind_virq>(),
3377 12usize,
3378 concat!("Size of: ", stringify!(evtchn_bind_virq))
3379 );
3380 assert_eq!(
3381 ::core::mem::align_of::<evtchn_bind_virq>(),
3382 4usize,
3383 concat!("Alignment of ", stringify!(evtchn_bind_virq))
3384 );
3385 assert_eq!(
3386 unsafe { &(*(::core::ptr::null::<evtchn_bind_virq>())).virq as *const _ as usize },
3387 0usize,
3388 concat!(
3389 "Offset of field: ",
3390 stringify!(evtchn_bind_virq),
3391 "::",
3392 stringify!(virq)
3393 )
3394 );
3395 assert_eq!(
3396 unsafe { &(*(::core::ptr::null::<evtchn_bind_virq>())).vcpu as *const _ as usize },
3397 4usize,
3398 concat!(
3399 "Offset of field: ",
3400 stringify!(evtchn_bind_virq),
3401 "::",
3402 stringify!(vcpu)
3403 )
3404 );
3405 assert_eq!(
3406 unsafe { &(*(::core::ptr::null::<evtchn_bind_virq>())).port as *const _ as usize },
3407 8usize,
3408 concat!(
3409 "Offset of field: ",
3410 stringify!(evtchn_bind_virq),
3411 "::",
3412 stringify!(port)
3413 )
3414 );
3415}
3416pub type evtchn_bind_virq_t = evtchn_bind_virq;
3417#[repr(C)]
3418#[derive(Debug, Copy, Clone)]
3419pub struct evtchn_bind_pirq {
3420 pub pirq: u32,
3421 pub flags: u32,
3422 pub port: evtchn_port_t,
3423}
3424#[test]
3425fn bindgen_test_layout_evtchn_bind_pirq() {
3426 assert_eq!(
3427 ::core::mem::size_of::<evtchn_bind_pirq>(),
3428 12usize,
3429 concat!("Size of: ", stringify!(evtchn_bind_pirq))
3430 );
3431 assert_eq!(
3432 ::core::mem::align_of::<evtchn_bind_pirq>(),
3433 4usize,
3434 concat!("Alignment of ", stringify!(evtchn_bind_pirq))
3435 );
3436 assert_eq!(
3437 unsafe { &(*(::core::ptr::null::<evtchn_bind_pirq>())).pirq as *const _ as usize },
3438 0usize,
3439 concat!(
3440 "Offset of field: ",
3441 stringify!(evtchn_bind_pirq),
3442 "::",
3443 stringify!(pirq)
3444 )
3445 );
3446 assert_eq!(
3447 unsafe { &(*(::core::ptr::null::<evtchn_bind_pirq>())).flags as *const _ as usize },
3448 4usize,
3449 concat!(
3450 "Offset of field: ",
3451 stringify!(evtchn_bind_pirq),
3452 "::",
3453 stringify!(flags)
3454 )
3455 );
3456 assert_eq!(
3457 unsafe { &(*(::core::ptr::null::<evtchn_bind_pirq>())).port as *const _ as usize },
3458 8usize,
3459 concat!(
3460 "Offset of field: ",
3461 stringify!(evtchn_bind_pirq),
3462 "::",
3463 stringify!(port)
3464 )
3465 );
3466}
3467pub type evtchn_bind_pirq_t = evtchn_bind_pirq;
3468#[repr(C)]
3469#[derive(Debug, Copy, Clone)]
3470pub struct evtchn_bind_ipi {
3471 pub vcpu: u32,
3472 pub port: evtchn_port_t,
3473}
3474#[test]
3475fn bindgen_test_layout_evtchn_bind_ipi() {
3476 assert_eq!(
3477 ::core::mem::size_of::<evtchn_bind_ipi>(),
3478 8usize,
3479 concat!("Size of: ", stringify!(evtchn_bind_ipi))
3480 );
3481 assert_eq!(
3482 ::core::mem::align_of::<evtchn_bind_ipi>(),
3483 4usize,
3484 concat!("Alignment of ", stringify!(evtchn_bind_ipi))
3485 );
3486 assert_eq!(
3487 unsafe { &(*(::core::ptr::null::<evtchn_bind_ipi>())).vcpu as *const _ as usize },
3488 0usize,
3489 concat!(
3490 "Offset of field: ",
3491 stringify!(evtchn_bind_ipi),
3492 "::",
3493 stringify!(vcpu)
3494 )
3495 );
3496 assert_eq!(
3497 unsafe { &(*(::core::ptr::null::<evtchn_bind_ipi>())).port as *const _ as usize },
3498 4usize,
3499 concat!(
3500 "Offset of field: ",
3501 stringify!(evtchn_bind_ipi),
3502 "::",
3503 stringify!(port)
3504 )
3505 );
3506}
3507pub type evtchn_bind_ipi_t = evtchn_bind_ipi;
3508#[repr(C)]
3509#[derive(Debug, Copy, Clone)]
3510pub struct evtchn_close {
3511 pub port: evtchn_port_t,
3512}
3513#[test]
3514fn bindgen_test_layout_evtchn_close() {
3515 assert_eq!(
3516 ::core::mem::size_of::<evtchn_close>(),
3517 4usize,
3518 concat!("Size of: ", stringify!(evtchn_close))
3519 );
3520 assert_eq!(
3521 ::core::mem::align_of::<evtchn_close>(),
3522 4usize,
3523 concat!("Alignment of ", stringify!(evtchn_close))
3524 );
3525 assert_eq!(
3526 unsafe { &(*(::core::ptr::null::<evtchn_close>())).port as *const _ as usize },
3527 0usize,
3528 concat!(
3529 "Offset of field: ",
3530 stringify!(evtchn_close),
3531 "::",
3532 stringify!(port)
3533 )
3534 );
3535}
3536pub type evtchn_close_t = evtchn_close;
3537#[repr(C)]
3538#[derive(Debug, Copy, Clone)]
3539pub struct evtchn_send {
3540 pub port: evtchn_port_t,
3541}
3542#[test]
3543fn bindgen_test_layout_evtchn_send() {
3544 assert_eq!(
3545 ::core::mem::size_of::<evtchn_send>(),
3546 4usize,
3547 concat!("Size of: ", stringify!(evtchn_send))
3548 );
3549 assert_eq!(
3550 ::core::mem::align_of::<evtchn_send>(),
3551 4usize,
3552 concat!("Alignment of ", stringify!(evtchn_send))
3553 );
3554 assert_eq!(
3555 unsafe { &(*(::core::ptr::null::<evtchn_send>())).port as *const _ as usize },
3556 0usize,
3557 concat!(
3558 "Offset of field: ",
3559 stringify!(evtchn_send),
3560 "::",
3561 stringify!(port)
3562 )
3563 );
3564}
3565pub type evtchn_send_t = evtchn_send;
3566#[repr(C)]
3567#[derive(Copy, Clone)]
3568pub struct evtchn_status {
3569 pub dom: domid_t,
3570 pub port: evtchn_port_t,
3571 pub status: u32,
3572 pub vcpu: u32,
3573 pub u: evtchn_status__bindgen_ty_1,
3574}
3575#[repr(C)]
3576#[derive(Copy, Clone)]
3577pub union evtchn_status__bindgen_ty_1 {
3578 pub unbound: evtchn_status__bindgen_ty_1__bindgen_ty_1,
3579 pub interdomain: evtchn_status__bindgen_ty_1__bindgen_ty_2,
3580 pub pirq: u32,
3581 pub virq: u32,
3582}
3583#[repr(C)]
3584#[derive(Debug, Copy, Clone)]
3585pub struct evtchn_status__bindgen_ty_1__bindgen_ty_1 {
3586 pub dom: domid_t,
3587}
3588#[test]
3589fn bindgen_test_layout_evtchn_status__bindgen_ty_1__bindgen_ty_1() {
3590 assert_eq!(
3591 ::core::mem::size_of::<evtchn_status__bindgen_ty_1__bindgen_ty_1>(),
3592 2usize,
3593 concat!(
3594 "Size of: ",
3595 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_1)
3596 )
3597 );
3598 assert_eq!(
3599 ::core::mem::align_of::<evtchn_status__bindgen_ty_1__bindgen_ty_1>(),
3600 2usize,
3601 concat!(
3602 "Alignment of ",
3603 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_1)
3604 )
3605 );
3606 assert_eq!(
3607 unsafe {
3608 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1__bindgen_ty_1>())).dom as *const _
3609 as usize
3610 },
3611 0usize,
3612 concat!(
3613 "Offset of field: ",
3614 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_1),
3615 "::",
3616 stringify!(dom)
3617 )
3618 );
3619}
3620#[repr(C)]
3621#[derive(Debug, Copy, Clone)]
3622pub struct evtchn_status__bindgen_ty_1__bindgen_ty_2 {
3623 pub dom: domid_t,
3624 pub port: evtchn_port_t,
3625}
3626#[test]
3627fn bindgen_test_layout_evtchn_status__bindgen_ty_1__bindgen_ty_2() {
3628 assert_eq!(
3629 ::core::mem::size_of::<evtchn_status__bindgen_ty_1__bindgen_ty_2>(),
3630 8usize,
3631 concat!(
3632 "Size of: ",
3633 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_2)
3634 )
3635 );
3636 assert_eq!(
3637 ::core::mem::align_of::<evtchn_status__bindgen_ty_1__bindgen_ty_2>(),
3638 4usize,
3639 concat!(
3640 "Alignment of ",
3641 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_2)
3642 )
3643 );
3644 assert_eq!(
3645 unsafe {
3646 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1__bindgen_ty_2>())).dom as *const _
3647 as usize
3648 },
3649 0usize,
3650 concat!(
3651 "Offset of field: ",
3652 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_2),
3653 "::",
3654 stringify!(dom)
3655 )
3656 );
3657 assert_eq!(
3658 unsafe {
3659 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1__bindgen_ty_2>())).port as *const _
3660 as usize
3661 },
3662 4usize,
3663 concat!(
3664 "Offset of field: ",
3665 stringify!(evtchn_status__bindgen_ty_1__bindgen_ty_2),
3666 "::",
3667 stringify!(port)
3668 )
3669 );
3670}
3671#[test]
3672fn bindgen_test_layout_evtchn_status__bindgen_ty_1() {
3673 assert_eq!(
3674 ::core::mem::size_of::<evtchn_status__bindgen_ty_1>(),
3675 8usize,
3676 concat!("Size of: ", stringify!(evtchn_status__bindgen_ty_1))
3677 );
3678 assert_eq!(
3679 ::core::mem::align_of::<evtchn_status__bindgen_ty_1>(),
3680 4usize,
3681 concat!("Alignment of ", stringify!(evtchn_status__bindgen_ty_1))
3682 );
3683 assert_eq!(
3684 unsafe {
3685 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1>())).unbound as *const _ as usize
3686 },
3687 0usize,
3688 concat!(
3689 "Offset of field: ",
3690 stringify!(evtchn_status__bindgen_ty_1),
3691 "::",
3692 stringify!(unbound)
3693 )
3694 );
3695 assert_eq!(
3696 unsafe {
3697 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1>())).interdomain as *const _
3698 as usize
3699 },
3700 0usize,
3701 concat!(
3702 "Offset of field: ",
3703 stringify!(evtchn_status__bindgen_ty_1),
3704 "::",
3705 stringify!(interdomain)
3706 )
3707 );
3708 assert_eq!(
3709 unsafe {
3710 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1>())).pirq as *const _ as usize
3711 },
3712 0usize,
3713 concat!(
3714 "Offset of field: ",
3715 stringify!(evtchn_status__bindgen_ty_1),
3716 "::",
3717 stringify!(pirq)
3718 )
3719 );
3720 assert_eq!(
3721 unsafe {
3722 &(*(::core::ptr::null::<evtchn_status__bindgen_ty_1>())).virq as *const _ as usize
3723 },
3724 0usize,
3725 concat!(
3726 "Offset of field: ",
3727 stringify!(evtchn_status__bindgen_ty_1),
3728 "::",
3729 stringify!(virq)
3730 )
3731 );
3732}
3733#[test]
3734fn bindgen_test_layout_evtchn_status() {
3735 assert_eq!(
3736 ::core::mem::size_of::<evtchn_status>(),
3737 24usize,
3738 concat!("Size of: ", stringify!(evtchn_status))
3739 );
3740 assert_eq!(
3741 ::core::mem::align_of::<evtchn_status>(),
3742 4usize,
3743 concat!("Alignment of ", stringify!(evtchn_status))
3744 );
3745 assert_eq!(
3746 unsafe { &(*(::core::ptr::null::<evtchn_status>())).dom as *const _ as usize },
3747 0usize,
3748 concat!(
3749 "Offset of field: ",
3750 stringify!(evtchn_status),
3751 "::",
3752 stringify!(dom)
3753 )
3754 );
3755 assert_eq!(
3756 unsafe { &(*(::core::ptr::null::<evtchn_status>())).port as *const _ as usize },
3757 4usize,
3758 concat!(
3759 "Offset of field: ",
3760 stringify!(evtchn_status),
3761 "::",
3762 stringify!(port)
3763 )
3764 );
3765 assert_eq!(
3766 unsafe { &(*(::core::ptr::null::<evtchn_status>())).status as *const _ as usize },
3767 8usize,
3768 concat!(
3769 "Offset of field: ",
3770 stringify!(evtchn_status),
3771 "::",
3772 stringify!(status)
3773 )
3774 );
3775 assert_eq!(
3776 unsafe { &(*(::core::ptr::null::<evtchn_status>())).vcpu as *const _ as usize },
3777 12usize,
3778 concat!(
3779 "Offset of field: ",
3780 stringify!(evtchn_status),
3781 "::",
3782 stringify!(vcpu)
3783 )
3784 );
3785 assert_eq!(
3786 unsafe { &(*(::core::ptr::null::<evtchn_status>())).u as *const _ as usize },
3787 16usize,
3788 concat!(
3789 "Offset of field: ",
3790 stringify!(evtchn_status),
3791 "::",
3792 stringify!(u)
3793 )
3794 );
3795}
3796pub type evtchn_status_t = evtchn_status;
3797#[repr(C)]
3798#[derive(Debug, Copy, Clone)]
3799pub struct evtchn_bind_vcpu {
3800 pub port: evtchn_port_t,
3801 pub vcpu: u32,
3802}
3803#[test]
3804fn bindgen_test_layout_evtchn_bind_vcpu() {
3805 assert_eq!(
3806 ::core::mem::size_of::<evtchn_bind_vcpu>(),
3807 8usize,
3808 concat!("Size of: ", stringify!(evtchn_bind_vcpu))
3809 );
3810 assert_eq!(
3811 ::core::mem::align_of::<evtchn_bind_vcpu>(),
3812 4usize,
3813 concat!("Alignment of ", stringify!(evtchn_bind_vcpu))
3814 );
3815 assert_eq!(
3816 unsafe { &(*(::core::ptr::null::<evtchn_bind_vcpu>())).port as *const _ as usize },
3817 0usize,
3818 concat!(
3819 "Offset of field: ",
3820 stringify!(evtchn_bind_vcpu),
3821 "::",
3822 stringify!(port)
3823 )
3824 );
3825 assert_eq!(
3826 unsafe { &(*(::core::ptr::null::<evtchn_bind_vcpu>())).vcpu as *const _ as usize },
3827 4usize,
3828 concat!(
3829 "Offset of field: ",
3830 stringify!(evtchn_bind_vcpu),
3831 "::",
3832 stringify!(vcpu)
3833 )
3834 );
3835}
3836pub type evtchn_bind_vcpu_t = evtchn_bind_vcpu;
3837#[repr(C)]
3838#[derive(Debug, Copy, Clone)]
3839pub struct evtchn_unmask {
3840 pub port: evtchn_port_t,
3841}
3842#[test]
3843fn bindgen_test_layout_evtchn_unmask() {
3844 assert_eq!(
3845 ::core::mem::size_of::<evtchn_unmask>(),
3846 4usize,
3847 concat!("Size of: ", stringify!(evtchn_unmask))
3848 );
3849 assert_eq!(
3850 ::core::mem::align_of::<evtchn_unmask>(),
3851 4usize,
3852 concat!("Alignment of ", stringify!(evtchn_unmask))
3853 );
3854 assert_eq!(
3855 unsafe { &(*(::core::ptr::null::<evtchn_unmask>())).port as *const _ as usize },
3856 0usize,
3857 concat!(
3858 "Offset of field: ",
3859 stringify!(evtchn_unmask),
3860 "::",
3861 stringify!(port)
3862 )
3863 );
3864}
3865pub type evtchn_unmask_t = evtchn_unmask;
3866#[repr(C)]
3867#[derive(Debug, Copy, Clone)]
3868pub struct evtchn_reset {
3869 pub dom: domid_t,
3870}
3871#[test]
3872fn bindgen_test_layout_evtchn_reset() {
3873 assert_eq!(
3874 ::core::mem::size_of::<evtchn_reset>(),
3875 2usize,
3876 concat!("Size of: ", stringify!(evtchn_reset))
3877 );
3878 assert_eq!(
3879 ::core::mem::align_of::<evtchn_reset>(),
3880 2usize,
3881 concat!("Alignment of ", stringify!(evtchn_reset))
3882 );
3883 assert_eq!(
3884 unsafe { &(*(::core::ptr::null::<evtchn_reset>())).dom as *const _ as usize },
3885 0usize,
3886 concat!(
3887 "Offset of field: ",
3888 stringify!(evtchn_reset),
3889 "::",
3890 stringify!(dom)
3891 )
3892 );
3893}
3894pub type evtchn_reset_t = evtchn_reset;
3895#[repr(C)]
3896#[derive(Debug, Copy, Clone)]
3897pub struct evtchn_init_control {
3898 pub control_gfn: u64,
3899 pub offset: u32,
3900 pub vcpu: u32,
3901 pub link_bits: u8,
3902 pub _pad: [u8; 7usize],
3903}
3904#[test]
3905fn bindgen_test_layout_evtchn_init_control() {
3906 assert_eq!(
3907 ::core::mem::size_of::<evtchn_init_control>(),
3908 24usize,
3909 concat!("Size of: ", stringify!(evtchn_init_control))
3910 );
3911 assert_eq!(
3912 ::core::mem::align_of::<evtchn_init_control>(),
3913 8usize,
3914 concat!("Alignment of ", stringify!(evtchn_init_control))
3915 );
3916 assert_eq!(
3917 unsafe {
3918 &(*(::core::ptr::null::<evtchn_init_control>())).control_gfn as *const _ as usize
3919 },
3920 0usize,
3921 concat!(
3922 "Offset of field: ",
3923 stringify!(evtchn_init_control),
3924 "::",
3925 stringify!(control_gfn)
3926 )
3927 );
3928 assert_eq!(
3929 unsafe { &(*(::core::ptr::null::<evtchn_init_control>())).offset as *const _ as usize },
3930 8usize,
3931 concat!(
3932 "Offset of field: ",
3933 stringify!(evtchn_init_control),
3934 "::",
3935 stringify!(offset)
3936 )
3937 );
3938 assert_eq!(
3939 unsafe { &(*(::core::ptr::null::<evtchn_init_control>())).vcpu as *const _ as usize },
3940 12usize,
3941 concat!(
3942 "Offset of field: ",
3943 stringify!(evtchn_init_control),
3944 "::",
3945 stringify!(vcpu)
3946 )
3947 );
3948 assert_eq!(
3949 unsafe { &(*(::core::ptr::null::<evtchn_init_control>())).link_bits as *const _ as usize },
3950 16usize,
3951 concat!(
3952 "Offset of field: ",
3953 stringify!(evtchn_init_control),
3954 "::",
3955 stringify!(link_bits)
3956 )
3957 );
3958 assert_eq!(
3959 unsafe { &(*(::core::ptr::null::<evtchn_init_control>()))._pad as *const _ as usize },
3960 17usize,
3961 concat!(
3962 "Offset of field: ",
3963 stringify!(evtchn_init_control),
3964 "::",
3965 stringify!(_pad)
3966 )
3967 );
3968}
3969pub type evtchn_init_control_t = evtchn_init_control;
3970#[repr(C)]
3971#[derive(Debug, Copy, Clone)]
3972pub struct evtchn_expand_array {
3973 pub array_gfn: u64,
3974}
3975#[test]
3976fn bindgen_test_layout_evtchn_expand_array() {
3977 assert_eq!(
3978 ::core::mem::size_of::<evtchn_expand_array>(),
3979 8usize,
3980 concat!("Size of: ", stringify!(evtchn_expand_array))
3981 );
3982 assert_eq!(
3983 ::core::mem::align_of::<evtchn_expand_array>(),
3984 8usize,
3985 concat!("Alignment of ", stringify!(evtchn_expand_array))
3986 );
3987 assert_eq!(
3988 unsafe { &(*(::core::ptr::null::<evtchn_expand_array>())).array_gfn as *const _ as usize },
3989 0usize,
3990 concat!(
3991 "Offset of field: ",
3992 stringify!(evtchn_expand_array),
3993 "::",
3994 stringify!(array_gfn)
3995 )
3996 );
3997}
3998pub type evtchn_expand_array_t = evtchn_expand_array;
3999#[repr(C)]
4000#[derive(Debug, Copy, Clone)]
4001pub struct evtchn_set_priority {
4002 pub port: evtchn_port_t,
4003 pub priority: u32,
4004}
4005#[test]
4006fn bindgen_test_layout_evtchn_set_priority() {
4007 assert_eq!(
4008 ::core::mem::size_of::<evtchn_set_priority>(),
4009 8usize,
4010 concat!("Size of: ", stringify!(evtchn_set_priority))
4011 );
4012 assert_eq!(
4013 ::core::mem::align_of::<evtchn_set_priority>(),
4014 4usize,
4015 concat!("Alignment of ", stringify!(evtchn_set_priority))
4016 );
4017 assert_eq!(
4018 unsafe { &(*(::core::ptr::null::<evtchn_set_priority>())).port as *const _ as usize },
4019 0usize,
4020 concat!(
4021 "Offset of field: ",
4022 stringify!(evtchn_set_priority),
4023 "::",
4024 stringify!(port)
4025 )
4026 );
4027 assert_eq!(
4028 unsafe { &(*(::core::ptr::null::<evtchn_set_priority>())).priority as *const _ as usize },
4029 4usize,
4030 concat!(
4031 "Offset of field: ",
4032 stringify!(evtchn_set_priority),
4033 "::",
4034 stringify!(priority)
4035 )
4036 );
4037}
4038pub type evtchn_set_priority_t = evtchn_set_priority;
4039#[repr(C)]
4040#[derive(Copy, Clone)]
4041pub struct evtchn_op {
4042 pub cmd: u32,
4043 pub u: evtchn_op__bindgen_ty_1,
4044}
4045#[repr(C)]
4046#[derive(Copy, Clone)]
4047pub union evtchn_op__bindgen_ty_1 {
4048 pub alloc_unbound: evtchn_alloc_unbound_t,
4049 pub bind_interdomain: evtchn_bind_interdomain_t,
4050 pub bind_virq: evtchn_bind_virq_t,
4051 pub bind_pirq: evtchn_bind_pirq_t,
4052 pub bind_ipi: evtchn_bind_ipi_t,
4053 pub close: evtchn_close_t,
4054 pub send: evtchn_send_t,
4055 pub status: evtchn_status_t,
4056 pub bind_vcpu: evtchn_bind_vcpu_t,
4057 pub unmask: evtchn_unmask_t,
4058}
4059#[test]
4060fn bindgen_test_layout_evtchn_op__bindgen_ty_1() {
4061 assert_eq!(
4062 ::core::mem::size_of::<evtchn_op__bindgen_ty_1>(),
4063 24usize,
4064 concat!("Size of: ", stringify!(evtchn_op__bindgen_ty_1))
4065 );
4066 assert_eq!(
4067 ::core::mem::align_of::<evtchn_op__bindgen_ty_1>(),
4068 4usize,
4069 concat!("Alignment of ", stringify!(evtchn_op__bindgen_ty_1))
4070 );
4071 assert_eq!(
4072 unsafe {
4073 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).alloc_unbound as *const _ as usize
4074 },
4075 0usize,
4076 concat!(
4077 "Offset of field: ",
4078 stringify!(evtchn_op__bindgen_ty_1),
4079 "::",
4080 stringify!(alloc_unbound)
4081 )
4082 );
4083 assert_eq!(
4084 unsafe {
4085 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).bind_interdomain as *const _
4086 as usize
4087 },
4088 0usize,
4089 concat!(
4090 "Offset of field: ",
4091 stringify!(evtchn_op__bindgen_ty_1),
4092 "::",
4093 stringify!(bind_interdomain)
4094 )
4095 );
4096 assert_eq!(
4097 unsafe {
4098 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).bind_virq as *const _ as usize
4099 },
4100 0usize,
4101 concat!(
4102 "Offset of field: ",
4103 stringify!(evtchn_op__bindgen_ty_1),
4104 "::",
4105 stringify!(bind_virq)
4106 )
4107 );
4108 assert_eq!(
4109 unsafe {
4110 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).bind_pirq as *const _ as usize
4111 },
4112 0usize,
4113 concat!(
4114 "Offset of field: ",
4115 stringify!(evtchn_op__bindgen_ty_1),
4116 "::",
4117 stringify!(bind_pirq)
4118 )
4119 );
4120 assert_eq!(
4121 unsafe {
4122 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).bind_ipi as *const _ as usize
4123 },
4124 0usize,
4125 concat!(
4126 "Offset of field: ",
4127 stringify!(evtchn_op__bindgen_ty_1),
4128 "::",
4129 stringify!(bind_ipi)
4130 )
4131 );
4132 assert_eq!(
4133 unsafe { &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).close as *const _ as usize },
4134 0usize,
4135 concat!(
4136 "Offset of field: ",
4137 stringify!(evtchn_op__bindgen_ty_1),
4138 "::",
4139 stringify!(close)
4140 )
4141 );
4142 assert_eq!(
4143 unsafe { &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).send as *const _ as usize },
4144 0usize,
4145 concat!(
4146 "Offset of field: ",
4147 stringify!(evtchn_op__bindgen_ty_1),
4148 "::",
4149 stringify!(send)
4150 )
4151 );
4152 assert_eq!(
4153 unsafe { &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).status as *const _ as usize },
4154 0usize,
4155 concat!(
4156 "Offset of field: ",
4157 stringify!(evtchn_op__bindgen_ty_1),
4158 "::",
4159 stringify!(status)
4160 )
4161 );
4162 assert_eq!(
4163 unsafe {
4164 &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).bind_vcpu as *const _ as usize
4165 },
4166 0usize,
4167 concat!(
4168 "Offset of field: ",
4169 stringify!(evtchn_op__bindgen_ty_1),
4170 "::",
4171 stringify!(bind_vcpu)
4172 )
4173 );
4174 assert_eq!(
4175 unsafe { &(*(::core::ptr::null::<evtchn_op__bindgen_ty_1>())).unmask as *const _ as usize },
4176 0usize,
4177 concat!(
4178 "Offset of field: ",
4179 stringify!(evtchn_op__bindgen_ty_1),
4180 "::",
4181 stringify!(unmask)
4182 )
4183 );
4184}
4185#[test]
4186fn bindgen_test_layout_evtchn_op() {
4187 assert_eq!(
4188 ::core::mem::size_of::<evtchn_op>(),
4189 28usize,
4190 concat!("Size of: ", stringify!(evtchn_op))
4191 );
4192 assert_eq!(
4193 ::core::mem::align_of::<evtchn_op>(),
4194 4usize,
4195 concat!("Alignment of ", stringify!(evtchn_op))
4196 );
4197 assert_eq!(
4198 unsafe { &(*(::core::ptr::null::<evtchn_op>())).cmd as *const _ as usize },
4199 0usize,
4200 concat!(
4201 "Offset of field: ",
4202 stringify!(evtchn_op),
4203 "::",
4204 stringify!(cmd)
4205 )
4206 );
4207 assert_eq!(
4208 unsafe { &(*(::core::ptr::null::<evtchn_op>())).u as *const _ as usize },
4209 4usize,
4210 concat!(
4211 "Offset of field: ",
4212 stringify!(evtchn_op),
4213 "::",
4214 stringify!(u)
4215 )
4216 );
4217}
4218pub type evtchn_op_t = evtchn_op;
4219pub type __guest_handle_evtchn_op_t = *mut evtchn_op_t;
4220pub type __guest_handle_const_evtchn_op_t = *const evtchn_op_t;
4221pub type event_word_t = u32;
4222#[repr(C)]
4223#[derive(Debug, Copy, Clone)]
4224pub struct evtchn_fifo_control_block {
4225 pub ready: u32,
4226 pub _rsvd: u32,
4227 pub head: [u32; 16usize],
4228}
4229#[test]
4230fn bindgen_test_layout_evtchn_fifo_control_block() {
4231 assert_eq!(
4232 ::core::mem::size_of::<evtchn_fifo_control_block>(),
4233 72usize,
4234 concat!("Size of: ", stringify!(evtchn_fifo_control_block))
4235 );
4236 assert_eq!(
4237 ::core::mem::align_of::<evtchn_fifo_control_block>(),
4238 4usize,
4239 concat!("Alignment of ", stringify!(evtchn_fifo_control_block))
4240 );
4241 assert_eq!(
4242 unsafe {
4243 &(*(::core::ptr::null::<evtchn_fifo_control_block>())).ready as *const _ as usize
4244 },
4245 0usize,
4246 concat!(
4247 "Offset of field: ",
4248 stringify!(evtchn_fifo_control_block),
4249 "::",
4250 stringify!(ready)
4251 )
4252 );
4253 assert_eq!(
4254 unsafe {
4255 &(*(::core::ptr::null::<evtchn_fifo_control_block>()))._rsvd as *const _ as usize
4256 },
4257 4usize,
4258 concat!(
4259 "Offset of field: ",
4260 stringify!(evtchn_fifo_control_block),
4261 "::",
4262 stringify!(_rsvd)
4263 )
4264 );
4265 assert_eq!(
4266 unsafe { &(*(::core::ptr::null::<evtchn_fifo_control_block>())).head as *const _ as usize },
4267 8usize,
4268 concat!(
4269 "Offset of field: ",
4270 stringify!(evtchn_fifo_control_block),
4271 "::",
4272 stringify!(head)
4273 )
4274 );
4275}
4276pub type evtchn_fifo_control_block_t = evtchn_fifo_control_block;
4277#[repr(C)]
4278#[derive(Debug, Copy, Clone)]
4279pub struct sched_shutdown {
4280 pub reason: cty::c_uint,
4281}
4282#[test]
4283fn bindgen_test_layout_sched_shutdown() {
4284 assert_eq!(
4285 ::core::mem::size_of::<sched_shutdown>(),
4286 4usize,
4287 concat!("Size of: ", stringify!(sched_shutdown))
4288 );
4289 assert_eq!(
4290 ::core::mem::align_of::<sched_shutdown>(),
4291 4usize,
4292 concat!("Alignment of ", stringify!(sched_shutdown))
4293 );
4294 assert_eq!(
4295 unsafe { &(*(::core::ptr::null::<sched_shutdown>())).reason as *const _ as usize },
4296 0usize,
4297 concat!(
4298 "Offset of field: ",
4299 stringify!(sched_shutdown),
4300 "::",
4301 stringify!(reason)
4302 )
4303 );
4304}
4305pub type sched_shutdown_t = sched_shutdown;
4306pub type __guest_handle_sched_shutdown_t = *mut sched_shutdown_t;
4307pub type __guest_handle_const_sched_shutdown_t = *const sched_shutdown_t;
4308#[repr(C)]
4309#[derive(Debug, Copy, Clone)]
4310pub struct sched_poll {
4311 pub ports: __guest_handle_evtchn_port_t,
4312 pub nr_ports: cty::c_uint,
4313 pub timeout: u64,
4314}
4315#[test]
4316fn bindgen_test_layout_sched_poll() {
4317 assert_eq!(
4318 ::core::mem::size_of::<sched_poll>(),
4319 24usize,
4320 concat!("Size of: ", stringify!(sched_poll))
4321 );
4322 assert_eq!(
4323 ::core::mem::align_of::<sched_poll>(),
4324 8usize,
4325 concat!("Alignment of ", stringify!(sched_poll))
4326 );
4327 assert_eq!(
4328 unsafe { &(*(::core::ptr::null::<sched_poll>())).ports as *const _ as usize },
4329 0usize,
4330 concat!(
4331 "Offset of field: ",
4332 stringify!(sched_poll),
4333 "::",
4334 stringify!(ports)
4335 )
4336 );
4337 assert_eq!(
4338 unsafe { &(*(::core::ptr::null::<sched_poll>())).nr_ports as *const _ as usize },
4339 8usize,
4340 concat!(
4341 "Offset of field: ",
4342 stringify!(sched_poll),
4343 "::",
4344 stringify!(nr_ports)
4345 )
4346 );
4347 assert_eq!(
4348 unsafe { &(*(::core::ptr::null::<sched_poll>())).timeout as *const _ as usize },
4349 16usize,
4350 concat!(
4351 "Offset of field: ",
4352 stringify!(sched_poll),
4353 "::",
4354 stringify!(timeout)
4355 )
4356 );
4357}
4358pub type sched_poll_t = sched_poll;
4359pub type __guest_handle_sched_poll_t = *mut sched_poll_t;
4360pub type __guest_handle_const_sched_poll_t = *const sched_poll_t;
4361#[repr(C)]
4362#[derive(Debug, Copy, Clone)]
4363pub struct sched_remote_shutdown {
4364 pub domain_id: domid_t,
4365 pub reason: cty::c_uint,
4366}
4367#[test]
4368fn bindgen_test_layout_sched_remote_shutdown() {
4369 assert_eq!(
4370 ::core::mem::size_of::<sched_remote_shutdown>(),
4371 8usize,
4372 concat!("Size of: ", stringify!(sched_remote_shutdown))
4373 );
4374 assert_eq!(
4375 ::core::mem::align_of::<sched_remote_shutdown>(),
4376 4usize,
4377 concat!("Alignment of ", stringify!(sched_remote_shutdown))
4378 );
4379 assert_eq!(
4380 unsafe {
4381 &(*(::core::ptr::null::<sched_remote_shutdown>())).domain_id as *const _ as usize
4382 },
4383 0usize,
4384 concat!(
4385 "Offset of field: ",
4386 stringify!(sched_remote_shutdown),
4387 "::",
4388 stringify!(domain_id)
4389 )
4390 );
4391 assert_eq!(
4392 unsafe { &(*(::core::ptr::null::<sched_remote_shutdown>())).reason as *const _ as usize },
4393 4usize,
4394 concat!(
4395 "Offset of field: ",
4396 stringify!(sched_remote_shutdown),
4397 "::",
4398 stringify!(reason)
4399 )
4400 );
4401}
4402pub type sched_remote_shutdown_t = sched_remote_shutdown;
4403pub type __guest_handle_sched_remote_shutdown_t = *mut sched_remote_shutdown_t;
4404pub type __guest_handle_const_sched_remote_shutdown_t = *const sched_remote_shutdown_t;
4405#[repr(C)]
4406#[derive(Debug, Copy, Clone)]
4407pub struct sched_watchdog {
4408 pub id: u32,
4409 pub timeout: u32,
4410}
4411#[test]
4412fn bindgen_test_layout_sched_watchdog() {
4413 assert_eq!(
4414 ::core::mem::size_of::<sched_watchdog>(),
4415 8usize,
4416 concat!("Size of: ", stringify!(sched_watchdog))
4417 );
4418 assert_eq!(
4419 ::core::mem::align_of::<sched_watchdog>(),
4420 4usize,
4421 concat!("Alignment of ", stringify!(sched_watchdog))
4422 );
4423 assert_eq!(
4424 unsafe { &(*(::core::ptr::null::<sched_watchdog>())).id as *const _ as usize },
4425 0usize,
4426 concat!(
4427 "Offset of field: ",
4428 stringify!(sched_watchdog),
4429 "::",
4430 stringify!(id)
4431 )
4432 );
4433 assert_eq!(
4434 unsafe { &(*(::core::ptr::null::<sched_watchdog>())).timeout as *const _ as usize },
4435 4usize,
4436 concat!(
4437 "Offset of field: ",
4438 stringify!(sched_watchdog),
4439 "::",
4440 stringify!(timeout)
4441 )
4442 );
4443}
4444pub type sched_watchdog_t = sched_watchdog;
4445pub type __guest_handle_sched_watchdog_t = *mut sched_watchdog_t;
4446pub type __guest_handle_const_sched_watchdog_t = *const sched_watchdog_t;
4447#[repr(C)]
4448#[derive(Debug, Copy, Clone)]
4449pub struct sched_pin_override {
4450 pub pcpu: i32,
4451}
4452#[test]
4453fn bindgen_test_layout_sched_pin_override() {
4454 assert_eq!(
4455 ::core::mem::size_of::<sched_pin_override>(),
4456 4usize,
4457 concat!("Size of: ", stringify!(sched_pin_override))
4458 );
4459 assert_eq!(
4460 ::core::mem::align_of::<sched_pin_override>(),
4461 4usize,
4462 concat!("Alignment of ", stringify!(sched_pin_override))
4463 );
4464 assert_eq!(
4465 unsafe { &(*(::core::ptr::null::<sched_pin_override>())).pcpu as *const _ as usize },
4466 0usize,
4467 concat!(
4468 "Offset of field: ",
4469 stringify!(sched_pin_override),
4470 "::",
4471 stringify!(pcpu)
4472 )
4473 );
4474}
4475pub type sched_pin_override_t = sched_pin_override;
4476pub type __guest_handle_sched_pin_override_t = *mut sched_pin_override_t;
4477pub type __guest_handle_const_sched_pin_override_t = *const sched_pin_override_t;