linux_raw_sys/x86_64/
bootparam.rs

1/* automatically generated by rust-bindgen 0.72.1 */
2
3pub type __s8 = crate::ctypes::c_schar;
4pub type __u8 = crate::ctypes::c_uchar;
5pub type __s16 = crate::ctypes::c_short;
6pub type __u16 = crate::ctypes::c_ushort;
7pub type __s32 = crate::ctypes::c_int;
8pub type __u32 = crate::ctypes::c_uint;
9pub type __s64 = crate::ctypes::c_longlong;
10pub type __u64 = crate::ctypes::c_ulonglong;
11pub type __kernel_key_t = crate::ctypes::c_int;
12pub type __kernel_mqd_t = crate::ctypes::c_int;
13pub type __kernel_old_uid_t = crate::ctypes::c_ushort;
14pub type __kernel_old_gid_t = crate::ctypes::c_ushort;
15pub type __kernel_old_dev_t = crate::ctypes::c_ulong;
16pub type __kernel_long_t = crate::ctypes::c_long;
17pub type __kernel_ulong_t = crate::ctypes::c_ulong;
18pub type __kernel_ino_t = __kernel_ulong_t;
19pub type __kernel_mode_t = crate::ctypes::c_uint;
20pub type __kernel_pid_t = crate::ctypes::c_int;
21pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
22pub type __kernel_uid_t = crate::ctypes::c_uint;
23pub type __kernel_gid_t = crate::ctypes::c_uint;
24pub type __kernel_suseconds_t = __kernel_long_t;
25pub type __kernel_daddr_t = crate::ctypes::c_int;
26pub type __kernel_uid32_t = crate::ctypes::c_uint;
27pub type __kernel_gid32_t = crate::ctypes::c_uint;
28pub type __kernel_size_t = __kernel_ulong_t;
29pub type __kernel_ssize_t = __kernel_long_t;
30pub type __kernel_ptrdiff_t = __kernel_long_t;
31pub type __kernel_off_t = __kernel_long_t;
32pub type __kernel_loff_t = crate::ctypes::c_longlong;
33pub type __kernel_old_time_t = __kernel_long_t;
34pub type __kernel_time_t = __kernel_long_t;
35pub type __kernel_time64_t = crate::ctypes::c_longlong;
36pub type __kernel_clock_t = __kernel_long_t;
37pub type __kernel_timer_t = crate::ctypes::c_int;
38pub type __kernel_clockid_t = crate::ctypes::c_int;
39pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
40pub type __kernel_uid16_t = crate::ctypes::c_ushort;
41pub type __kernel_gid16_t = crate::ctypes::c_ushort;
42pub type __s128 = i128;
43pub type __u128 = u128;
44pub type __le16 = __u16;
45pub type __be16 = __u16;
46pub type __le32 = __u32;
47pub type __be32 = __u32;
48pub type __le64 = __u64;
49pub type __be64 = __u64;
50pub type __sum16 = __u16;
51pub type __wsum = __u32;
52pub type __poll_t = crate::ctypes::c_uint;
53pub type apm_event_t = crate::ctypes::c_ushort;
54pub type apm_eventinfo_t = crate::ctypes::c_ushort;
55#[repr(C)]
56#[derive(Default)]
57pub struct __IncompleteArrayField<T>(::core::marker::PhantomData<T>, [T; 0]);
58#[repr(C)]
59#[derive(Debug)]
60pub struct setup_data {
61pub next: __u64,
62pub type_: __u32,
63pub len: __u32,
64pub data: __IncompleteArrayField<__u8>,
65}
66#[repr(C)]
67#[derive(Debug, Copy, Clone)]
68pub struct setup_indirect {
69pub type_: __u32,
70pub reserved: __u32,
71pub len: __u64,
72pub addr: __u64,
73}
74#[repr(C, packed)]
75#[derive(Debug, Copy, Clone)]
76pub struct boot_e820_entry {
77pub addr: __u64,
78pub size: __u64,
79pub type_: __u32,
80}
81#[repr(C, packed)]
82#[derive(Debug, Copy, Clone)]
83pub struct jailhouse_setup_data {
84pub hdr: jailhouse_setup_data__bindgen_ty_1,
85pub v1: jailhouse_setup_data__bindgen_ty_2,
86pub v2: jailhouse_setup_data__bindgen_ty_3,
87}
88#[repr(C, packed)]
89#[derive(Debug, Copy, Clone)]
90pub struct jailhouse_setup_data__bindgen_ty_1 {
91pub version: __u16,
92pub compatible_version: __u16,
93}
94#[repr(C, packed)]
95#[derive(Debug, Copy, Clone)]
96pub struct jailhouse_setup_data__bindgen_ty_2 {
97pub pm_timer_address: __u16,
98pub num_cpus: __u16,
99pub pci_mmconfig_base: __u64,
100pub tsc_khz: __u32,
101pub apic_khz: __u32,
102pub standard_ioapic: __u8,
103pub cpu_ids: [__u8; 255usize],
104}
105#[repr(C, packed)]
106#[derive(Debug, Copy, Clone)]
107pub struct jailhouse_setup_data__bindgen_ty_3 {
108pub flags: __u32,
109}
110#[repr(C, packed)]
111#[derive(Debug, Copy, Clone)]
112pub struct ima_setup_data {
113pub addr: __u64,
114pub size: __u64,
115}
116#[repr(C, packed)]
117#[derive(Debug, Copy, Clone)]
118pub struct kho_data {
119pub fdt_addr: __u64,
120pub fdt_size: __u64,
121pub scratch_addr: __u64,
122pub scratch_size: __u64,
123}
124#[repr(C, packed)]
125#[derive(Debug, Copy, Clone)]
126pub struct screen_info {
127pub orig_x: __u8,
128pub orig_y: __u8,
129pub ext_mem_k: __u16,
130pub orig_video_page: __u16,
131pub orig_video_mode: __u8,
132pub orig_video_cols: __u8,
133pub flags: __u8,
134pub unused2: __u8,
135pub orig_video_ega_bx: __u16,
136pub unused3: __u16,
137pub orig_video_lines: __u8,
138pub orig_video_isVGA: __u8,
139pub orig_video_points: __u16,
140pub lfb_width: __u16,
141pub lfb_height: __u16,
142pub lfb_depth: __u16,
143pub lfb_base: __u32,
144pub lfb_size: __u32,
145pub cl_magic: __u16,
146pub cl_offset: __u16,
147pub lfb_linelength: __u16,
148pub red_size: __u8,
149pub red_pos: __u8,
150pub green_size: __u8,
151pub green_pos: __u8,
152pub blue_size: __u8,
153pub blue_pos: __u8,
154pub rsvd_size: __u8,
155pub rsvd_pos: __u8,
156pub vesapm_seg: __u16,
157pub vesapm_off: __u16,
158pub pages: __u16,
159pub vesa_attributes: __u16,
160pub capabilities: __u32,
161pub ext_lfb_base: __u32,
162pub _reserved: [__u8; 2usize],
163}
164#[repr(C)]
165#[derive(Debug, Copy, Clone)]
166pub struct apm_bios_info {
167pub version: __u16,
168pub cseg: __u16,
169pub offset: __u32,
170pub cseg_16: __u16,
171pub dseg: __u16,
172pub flags: __u16,
173pub cseg_len: __u16,
174pub cseg_16_len: __u16,
175pub dseg_len: __u16,
176}
177#[repr(C, packed)]
178#[derive(Copy, Clone)]
179pub struct edd_device_params {
180pub length: __u16,
181pub info_flags: __u16,
182pub num_default_cylinders: __u32,
183pub num_default_heads: __u32,
184pub sectors_per_track: __u32,
185pub number_of_sectors: __u64,
186pub bytes_per_sector: __u16,
187pub dpte_ptr: __u32,
188pub key: __u16,
189pub device_path_info_length: __u8,
190pub reserved2: __u8,
191pub reserved3: __u16,
192pub host_bus_type: [__u8; 4usize],
193pub interface_type: [__u8; 8usize],
194pub interface_path: edd_device_params__bindgen_ty_1,
195pub device_path: edd_device_params__bindgen_ty_2,
196pub reserved4: __u8,
197pub checksum: __u8,
198}
199#[repr(C, packed)]
200#[derive(Debug, Copy, Clone)]
201pub struct edd_device_params__bindgen_ty_1__bindgen_ty_1 {
202pub base_address: __u16,
203pub reserved1: __u16,
204pub reserved2: __u32,
205}
206#[repr(C, packed)]
207#[derive(Debug, Copy, Clone)]
208pub struct edd_device_params__bindgen_ty_1__bindgen_ty_2 {
209pub bus: __u8,
210pub slot: __u8,
211pub function: __u8,
212pub channel: __u8,
213pub reserved: __u32,
214}
215#[repr(C, packed)]
216#[derive(Debug, Copy, Clone)]
217pub struct edd_device_params__bindgen_ty_1__bindgen_ty_3 {
218pub reserved: __u64,
219}
220#[repr(C, packed)]
221#[derive(Debug, Copy, Clone)]
222pub struct edd_device_params__bindgen_ty_1__bindgen_ty_4 {
223pub reserved: __u64,
224}
225#[repr(C, packed)]
226#[derive(Debug, Copy, Clone)]
227pub struct edd_device_params__bindgen_ty_1__bindgen_ty_5 {
228pub reserved: __u64,
229}
230#[repr(C, packed)]
231#[derive(Debug, Copy, Clone)]
232pub struct edd_device_params__bindgen_ty_1__bindgen_ty_6 {
233pub reserved: __u64,
234}
235#[repr(C, packed)]
236#[derive(Debug, Copy, Clone)]
237pub struct edd_device_params__bindgen_ty_2__bindgen_ty_1 {
238pub device: __u8,
239pub reserved1: __u8,
240pub reserved2: __u16,
241pub reserved3: __u32,
242pub reserved4: __u64,
243}
244#[repr(C, packed)]
245#[derive(Debug, Copy, Clone)]
246pub struct edd_device_params__bindgen_ty_2__bindgen_ty_2 {
247pub device: __u8,
248pub lun: __u8,
249pub reserved1: __u8,
250pub reserved2: __u8,
251pub reserved3: __u32,
252pub reserved4: __u64,
253}
254#[repr(C, packed)]
255#[derive(Debug, Copy, Clone)]
256pub struct edd_device_params__bindgen_ty_2__bindgen_ty_3 {
257pub id: __u16,
258pub lun: __u64,
259pub reserved1: __u16,
260pub reserved2: __u32,
261}
262#[repr(C, packed)]
263#[derive(Debug, Copy, Clone)]
264pub struct edd_device_params__bindgen_ty_2__bindgen_ty_4 {
265pub serial_number: __u64,
266pub reserved: __u64,
267}
268#[repr(C, packed)]
269#[derive(Debug, Copy, Clone)]
270pub struct edd_device_params__bindgen_ty_2__bindgen_ty_5 {
271pub eui: __u64,
272pub reserved: __u64,
273}
274#[repr(C, packed)]
275#[derive(Debug, Copy, Clone)]
276pub struct edd_device_params__bindgen_ty_2__bindgen_ty_6 {
277pub wwid: __u64,
278pub lun: __u64,
279}
280#[repr(C, packed)]
281#[derive(Debug, Copy, Clone)]
282pub struct edd_device_params__bindgen_ty_2__bindgen_ty_7 {
283pub identity_tag: __u64,
284pub reserved: __u64,
285}
286#[repr(C, packed)]
287#[derive(Debug, Copy, Clone)]
288pub struct edd_device_params__bindgen_ty_2__bindgen_ty_8 {
289pub array_number: __u32,
290pub reserved1: __u32,
291pub reserved2: __u64,
292}
293#[repr(C, packed)]
294#[derive(Debug, Copy, Clone)]
295pub struct edd_device_params__bindgen_ty_2__bindgen_ty_9 {
296pub device: __u8,
297pub reserved1: __u8,
298pub reserved2: __u16,
299pub reserved3: __u32,
300pub reserved4: __u64,
301}
302#[repr(C, packed)]
303#[derive(Debug, Copy, Clone)]
304pub struct edd_device_params__bindgen_ty_2__bindgen_ty_10 {
305pub reserved1: __u64,
306pub reserved2: __u64,
307}
308#[repr(C, packed)]
309#[derive(Copy, Clone)]
310pub struct edd_info {
311pub device: __u8,
312pub version: __u8,
313pub interface_support: __u16,
314pub legacy_max_cylinder: __u16,
315pub legacy_max_head: __u8,
316pub legacy_sectors_per_track: __u8,
317pub params: edd_device_params,
318}
319#[repr(C)]
320#[derive(Copy, Clone)]
321pub struct edd {
322pub mbr_signature: [crate::ctypes::c_uint; 16usize],
323pub edd_info: [edd_info; 6usize],
324pub mbr_signature_nr: crate::ctypes::c_uchar,
325pub edd_info_nr: crate::ctypes::c_uchar,
326}
327#[repr(C)]
328#[derive(Debug, Copy, Clone)]
329pub struct ist_info {
330pub signature: __u32,
331pub command: __u32,
332pub event: __u32,
333pub perf_level: __u32,
334}
335#[repr(C)]
336#[derive(Debug, Copy, Clone)]
337pub struct edid_info {
338pub dummy: [crate::ctypes::c_uchar; 128usize],
339}
340#[repr(C, packed)]
341#[derive(Debug, Copy, Clone)]
342pub struct setup_header {
343pub setup_sects: __u8,
344pub root_flags: __u16,
345pub syssize: __u32,
346pub ram_size: __u16,
347pub vid_mode: __u16,
348pub root_dev: __u16,
349pub boot_flag: __u16,
350pub jump: __u16,
351pub header: __u32,
352pub version: __u16,
353pub realmode_swtch: __u32,
354pub start_sys_seg: __u16,
355pub kernel_version: __u16,
356pub type_of_loader: __u8,
357pub loadflags: __u8,
358pub setup_move_size: __u16,
359pub code32_start: __u32,
360pub ramdisk_image: __u32,
361pub ramdisk_size: __u32,
362pub bootsect_kludge: __u32,
363pub heap_end_ptr: __u16,
364pub ext_loader_ver: __u8,
365pub ext_loader_type: __u8,
366pub cmd_line_ptr: __u32,
367pub initrd_addr_max: __u32,
368pub kernel_alignment: __u32,
369pub relocatable_kernel: __u8,
370pub min_alignment: __u8,
371pub xloadflags: __u16,
372pub cmdline_size: __u32,
373pub hardware_subarch: __u32,
374pub hardware_subarch_data: __u64,
375pub payload_offset: __u32,
376pub payload_length: __u32,
377pub setup_data: __u64,
378pub pref_address: __u64,
379pub init_size: __u32,
380pub handover_offset: __u32,
381pub kernel_info_offset: __u32,
382}
383#[repr(C)]
384#[derive(Debug, Copy, Clone)]
385pub struct sys_desc_table {
386pub length: __u16,
387pub table: [__u8; 14usize],
388}
389#[repr(C, packed)]
390#[derive(Debug, Copy, Clone)]
391pub struct olpc_ofw_header {
392pub ofw_magic: __u32,
393pub ofw_version: __u32,
394pub cif_handler: __u32,
395pub irq_desc_table: __u32,
396}
397#[repr(C)]
398#[derive(Debug, Copy, Clone)]
399pub struct efi_info {
400pub efi_loader_signature: __u32,
401pub efi_systab: __u32,
402pub efi_memdesc_size: __u32,
403pub efi_memdesc_version: __u32,
404pub efi_memmap: __u32,
405pub efi_memmap_size: __u32,
406pub efi_systab_hi: __u32,
407pub efi_memmap_hi: __u32,
408}
409#[repr(C, packed)]
410#[derive(Copy, Clone)]
411pub struct boot_params {
412pub screen_info: screen_info,
413pub apm_bios_info: apm_bios_info,
414pub _pad2: [__u8; 4usize],
415pub tboot_addr: __u64,
416pub ist_info: ist_info,
417pub acpi_rsdp_addr: __u64,
418pub _pad3: [__u8; 8usize],
419pub hd0_info: [__u8; 16usize],
420pub hd1_info: [__u8; 16usize],
421pub sys_desc_table: sys_desc_table,
422pub olpc_ofw_header: olpc_ofw_header,
423pub ext_ramdisk_image: __u32,
424pub ext_ramdisk_size: __u32,
425pub ext_cmd_line_ptr: __u32,
426pub _pad4: [__u8; 112usize],
427pub cc_blob_address: __u32,
428pub edid_info: edid_info,
429pub efi_info: efi_info,
430pub alt_mem_k: __u32,
431pub scratch: __u32,
432pub e820_entries: __u8,
433pub eddbuf_entries: __u8,
434pub edd_mbr_sig_buf_entries: __u8,
435pub kbd_status: __u8,
436pub secure_boot: __u8,
437pub _pad5: [__u8; 2usize],
438pub sentinel: __u8,
439pub _pad6: [__u8; 1usize],
440pub hdr: setup_header,
441pub _pad7: [__u8; 36usize],
442pub edd_mbr_sig_buffer: [__u32; 16usize],
443pub e820_table: [boot_e820_entry; 128usize],
444pub _pad8: [__u8; 48usize],
445pub eddbuf: [edd_info; 6usize],
446pub _pad9: [__u8; 276usize],
447}
448pub const SETUP_NONE: u32 = 0;
449pub const SETUP_E820_EXT: u32 = 1;
450pub const SETUP_DTB: u32 = 2;
451pub const SETUP_PCI: u32 = 3;
452pub const SETUP_EFI: u32 = 4;
453pub const SETUP_APPLE_PROPERTIES: u32 = 5;
454pub const SETUP_JAILHOUSE: u32 = 6;
455pub const SETUP_CC_BLOB: u32 = 7;
456pub const SETUP_IMA: u32 = 8;
457pub const SETUP_RNG_SEED: u32 = 9;
458pub const SETUP_KEXEC_KHO: u32 = 10;
459pub const SETUP_ENUM_MAX: u32 = 10;
460pub const SETUP_INDIRECT: u32 = 2147483648;
461pub const SETUP_TYPE_MAX: u32 = 2147483658;
462pub const __BITS_PER_LONG_LONG: u32 = 64;
463pub const RAMDISK_IMAGE_START_MASK: u32 = 2047;
464pub const RAMDISK_PROMPT_FLAG: u32 = 32768;
465pub const RAMDISK_LOAD_FLAG: u32 = 16384;
466pub const LOADED_HIGH: u32 = 1;
467pub const KASLR_FLAG: u32 = 2;
468pub const QUIET_FLAG: u32 = 32;
469pub const KEEP_SEGMENTS: u32 = 64;
470pub const CAN_USE_HEAP: u32 = 128;
471pub const XLF_KERNEL_64: u32 = 1;
472pub const XLF_CAN_BE_LOADED_ABOVE_4G: u32 = 2;
473pub const XLF_EFI_HANDOVER_32: u32 = 4;
474pub const XLF_EFI_HANDOVER_64: u32 = 8;
475pub const XLF_EFI_KEXEC: u32 = 16;
476pub const XLF_5LEVEL: u32 = 32;
477pub const XLF_5LEVEL_ENABLED: u32 = 64;
478pub const XLF_MEM_ENCRYPTION: u32 = 128;
479pub const VIDEO_TYPE_MDA: u32 = 16;
480pub const VIDEO_TYPE_CGA: u32 = 17;
481pub const VIDEO_TYPE_EGAM: u32 = 32;
482pub const VIDEO_TYPE_EGAC: u32 = 33;
483pub const VIDEO_TYPE_VGAC: u32 = 34;
484pub const VIDEO_TYPE_VLFB: u32 = 35;
485pub const VIDEO_TYPE_PICA_S3: u32 = 48;
486pub const VIDEO_TYPE_MIPS_G364: u32 = 49;
487pub const VIDEO_TYPE_SGI: u32 = 51;
488pub const VIDEO_TYPE_TGAC: u32 = 64;
489pub const VIDEO_TYPE_SUN: u32 = 80;
490pub const VIDEO_TYPE_SUNPCI: u32 = 81;
491pub const VIDEO_TYPE_PMAC: u32 = 96;
492pub const VIDEO_TYPE_EFI: u32 = 112;
493pub const VIDEO_FLAGS_NOCURSOR: u32 = 1;
494pub const VIDEO_CAPABILITY_SKIP_QUIRKS: u32 = 1;
495pub const VIDEO_CAPABILITY_64BIT_BASE: u32 = 2;
496pub const APM_STATE_READY: u32 = 0;
497pub const APM_STATE_STANDBY: u32 = 1;
498pub const APM_STATE_SUSPEND: u32 = 2;
499pub const APM_STATE_OFF: u32 = 3;
500pub const APM_STATE_BUSY: u32 = 4;
501pub const APM_STATE_REJECT: u32 = 5;
502pub const APM_STATE_OEM_SYS: u32 = 32;
503pub const APM_STATE_OEM_DEV: u32 = 64;
504pub const APM_STATE_DISABLE: u32 = 0;
505pub const APM_STATE_ENABLE: u32 = 1;
506pub const APM_STATE_DISENGAGE: u32 = 0;
507pub const APM_STATE_ENGAGE: u32 = 1;
508pub const APM_SYS_STANDBY: u32 = 1;
509pub const APM_SYS_SUSPEND: u32 = 2;
510pub const APM_NORMAL_RESUME: u32 = 3;
511pub const APM_CRITICAL_RESUME: u32 = 4;
512pub const APM_LOW_BATTERY: u32 = 5;
513pub const APM_POWER_STATUS_CHANGE: u32 = 6;
514pub const APM_UPDATE_TIME: u32 = 7;
515pub const APM_CRITICAL_SUSPEND: u32 = 8;
516pub const APM_USER_STANDBY: u32 = 9;
517pub const APM_USER_SUSPEND: u32 = 10;
518pub const APM_STANDBY_RESUME: u32 = 11;
519pub const APM_CAPABILITY_CHANGE: u32 = 12;
520pub const APM_USER_HIBERNATION: u32 = 13;
521pub const APM_HIBERNATION_RESUME: u32 = 14;
522pub const APM_SUCCESS: u32 = 0;
523pub const APM_DISABLED: u32 = 1;
524pub const APM_CONNECTED: u32 = 2;
525pub const APM_NOT_CONNECTED: u32 = 3;
526pub const APM_16_CONNECTED: u32 = 5;
527pub const APM_16_UNSUPPORTED: u32 = 6;
528pub const APM_32_CONNECTED: u32 = 7;
529pub const APM_32_UNSUPPORTED: u32 = 8;
530pub const APM_BAD_DEVICE: u32 = 9;
531pub const APM_BAD_PARAM: u32 = 10;
532pub const APM_NOT_ENGAGED: u32 = 11;
533pub const APM_BAD_FUNCTION: u32 = 12;
534pub const APM_RESUME_DISABLED: u32 = 13;
535pub const APM_NO_ERROR: u32 = 83;
536pub const APM_BAD_STATE: u32 = 96;
537pub const APM_NO_EVENTS: u32 = 128;
538pub const APM_NOT_PRESENT: u32 = 134;
539pub const APM_DEVICE_BIOS: u32 = 0;
540pub const APM_DEVICE_ALL: u32 = 1;
541pub const APM_DEVICE_DISPLAY: u32 = 256;
542pub const APM_DEVICE_STORAGE: u32 = 512;
543pub const APM_DEVICE_PARALLEL: u32 = 768;
544pub const APM_DEVICE_SERIAL: u32 = 1024;
545pub const APM_DEVICE_NETWORK: u32 = 1280;
546pub const APM_DEVICE_PCMCIA: u32 = 1536;
547pub const APM_DEVICE_BATTERY: u32 = 32768;
548pub const APM_DEVICE_OEM: u32 = 57344;
549pub const APM_DEVICE_OLD_ALL: u32 = 65535;
550pub const APM_DEVICE_CLASS: u32 = 255;
551pub const APM_DEVICE_MASK: u32 = 65280;
552pub const APM_MAX_BATTERIES: u32 = 2;
553pub const APM_CAP_GLOBAL_STANDBY: u32 = 1;
554pub const APM_CAP_GLOBAL_SUSPEND: u32 = 2;
555pub const APM_CAP_RESUME_STANDBY_TIMER: u32 = 4;
556pub const APM_CAP_RESUME_SUSPEND_TIMER: u32 = 8;
557pub const APM_CAP_RESUME_STANDBY_RING: u32 = 16;
558pub const APM_CAP_RESUME_SUSPEND_RING: u32 = 32;
559pub const APM_CAP_RESUME_STANDBY_PCMCIA: u32 = 64;
560pub const APM_CAP_RESUME_SUSPEND_PCMCIA: u32 = 128;
561pub const _IOC_NRBITS: u32 = 8;
562pub const _IOC_TYPEBITS: u32 = 8;
563pub const _IOC_SIZEBITS: u32 = 14;
564pub const _IOC_DIRBITS: u32 = 2;
565pub const _IOC_NRMASK: u32 = 255;
566pub const _IOC_TYPEMASK: u32 = 255;
567pub const _IOC_SIZEMASK: u32 = 16383;
568pub const _IOC_DIRMASK: u32 = 3;
569pub const _IOC_NRSHIFT: u32 = 0;
570pub const _IOC_TYPESHIFT: u32 = 8;
571pub const _IOC_SIZESHIFT: u32 = 16;
572pub const _IOC_DIRSHIFT: u32 = 30;
573pub const _IOC_NONE: u32 = 0;
574pub const _IOC_WRITE: u32 = 1;
575pub const _IOC_READ: u32 = 2;
576pub const IOC_IN: u32 = 1073741824;
577pub const IOC_OUT: u32 = 2147483648;
578pub const IOC_INOUT: u32 = 3221225472;
579pub const IOCSIZE_MASK: u32 = 1073676288;
580pub const IOCSIZE_SHIFT: u32 = 16;
581pub const EDDNR: u32 = 489;
582pub const EDDBUF: u32 = 3328;
583pub const EDDMAXNR: u32 = 6;
584pub const EDDEXTSIZE: u32 = 8;
585pub const EDDPARMSIZE: u32 = 74;
586pub const CHECKEXTENSIONSPRESENT: u32 = 65;
587pub const GETDEVICEPARAMETERS: u32 = 72;
588pub const LEGACYGETDEVICEPARAMETERS: u32 = 8;
589pub const EDDMAGIC1: u32 = 21930;
590pub const EDDMAGIC2: u32 = 43605;
591pub const READ_SECTORS: u32 = 2;
592pub const EDD_MBR_SIG_OFFSET: u32 = 440;
593pub const EDD_MBR_SIG_BUF: u32 = 656;
594pub const EDD_MBR_SIG_MAX: u32 = 16;
595pub const EDD_MBR_SIG_NR_BUF: u32 = 490;
596pub const EDD_EXT_FIXED_DISK_ACCESS: u32 = 1;
597pub const EDD_EXT_DEVICE_LOCKING_AND_EJECTING: u32 = 2;
598pub const EDD_EXT_ENHANCED_DISK_DRIVE_SUPPORT: u32 = 4;
599pub const EDD_EXT_64BIT_EXTENSIONS: u32 = 8;
600pub const EDD_INFO_DMA_BOUNDARY_ERROR_TRANSPARENT: u32 = 1;
601pub const EDD_INFO_GEOMETRY_VALID: u32 = 2;
602pub const EDD_INFO_REMOVABLE: u32 = 4;
603pub const EDD_INFO_WRITE_VERIFY: u32 = 8;
604pub const EDD_INFO_MEDIA_CHANGE_NOTIFICATION: u32 = 16;
605pub const EDD_INFO_LOCKABLE: u32 = 32;
606pub const EDD_INFO_NO_MEDIA_PRESENT: u32 = 64;
607pub const EDD_INFO_USE_INT13_FN50: u32 = 128;
608pub const E820_MAX_ENTRIES_ZEROPAGE: u32 = 128;
609pub const JAILHOUSE_SETUP_REQUIRED_VERSION: u32 = 1;
610#[repr(u32)]
611#[non_exhaustive]
612#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
613pub enum x86_hardware_subarch {
614X86_SUBARCH_PC = 0,
615X86_SUBARCH_LGUEST = 1,
616X86_SUBARCH_XEN = 2,
617X86_SUBARCH_INTEL_MID = 3,
618X86_SUBARCH_CE4100 = 4,
619X86_NR_SUBARCHS = 5,
620}
621#[repr(C)]
622#[derive(Copy, Clone)]
623pub union edd_device_params__bindgen_ty_1 {
624pub isa: edd_device_params__bindgen_ty_1__bindgen_ty_1,
625pub pci: edd_device_params__bindgen_ty_1__bindgen_ty_2,
626pub ibnd: edd_device_params__bindgen_ty_1__bindgen_ty_3,
627pub xprs: edd_device_params__bindgen_ty_1__bindgen_ty_4,
628pub htpt: edd_device_params__bindgen_ty_1__bindgen_ty_5,
629pub unknown: edd_device_params__bindgen_ty_1__bindgen_ty_6,
630}
631#[repr(C)]
632#[derive(Copy, Clone)]
633pub union edd_device_params__bindgen_ty_2 {
634pub ata: edd_device_params__bindgen_ty_2__bindgen_ty_1,
635pub atapi: edd_device_params__bindgen_ty_2__bindgen_ty_2,
636pub scsi: edd_device_params__bindgen_ty_2__bindgen_ty_3,
637pub usb: edd_device_params__bindgen_ty_2__bindgen_ty_4,
638pub i1394: edd_device_params__bindgen_ty_2__bindgen_ty_5,
639pub fibre: edd_device_params__bindgen_ty_2__bindgen_ty_6,
640pub i2o: edd_device_params__bindgen_ty_2__bindgen_ty_7,
641pub raid: edd_device_params__bindgen_ty_2__bindgen_ty_8,
642pub sata: edd_device_params__bindgen_ty_2__bindgen_ty_9,
643pub unknown: edd_device_params__bindgen_ty_2__bindgen_ty_10,
644}
645impl<T> __IncompleteArrayField<T> {
646#[inline]
647pub const fn new() -> Self {
648__IncompleteArrayField(::core::marker::PhantomData, [])
649}
650#[inline]
651pub fn as_ptr(&self) -> *const T {
652self as *const _ as *const T
653}
654#[inline]
655pub fn as_mut_ptr(&mut self) -> *mut T {
656self as *mut _ as *mut T
657}
658#[inline]
659pub unsafe fn as_slice(&self, len: usize) -> &[T] {
660::core::slice::from_raw_parts(self.as_ptr(), len)
661}
662#[inline]
663pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
664::core::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
665}
666}
667impl<T> ::core::fmt::Debug for __IncompleteArrayField<T> {
668fn fmt(&self, fmt: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
669fmt.write_str("__IncompleteArrayField")
670}
671}