Debian Codegraph @

debian/missing-sources/linux-raw-sys/src/aarch64/image.rs

raw
1 /* automatically generated by rust-bindgen 0.72.1 */
2
3 pub type __s8 = crate::ctypes::c_schar;
4 pub type __u8 = crate::ctypes::c_uchar;
5 pub type __s16 = crate::ctypes::c_short;
6 pub type __u16 = crate::ctypes::c_ushort;
7 pub type __s32 = crate::ctypes::c_int;
8 pub type __u32 = crate::ctypes::c_uint;
9 pub type __s64 = crate::ctypes::c_longlong;
10 pub type __u64 = crate::ctypes::c_ulonglong;
11 pub type __kernel_key_t = crate::ctypes::c_int;
12 pub type __kernel_mqd_t = crate::ctypes::c_int;
13 pub type __kernel_old_uid_t = crate::ctypes::c_ushort;
14 pub type __kernel_old_gid_t = crate::ctypes::c_ushort;
15 pub type __kernel_long_t = crate::ctypes::c_long;
16 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
17 pub type __kernel_ino_t = __kernel_ulong_t;
18 pub type __kernel_mode_t = crate::ctypes::c_uint;
19 pub type __kernel_pid_t = crate::ctypes::c_int;
20 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
21 pub type __kernel_uid_t = crate::ctypes::c_uint;
22 pub type __kernel_gid_t = crate::ctypes::c_uint;
23 pub type __kernel_suseconds_t = __kernel_long_t;
24 pub type __kernel_daddr_t = crate::ctypes::c_int;
25 pub type __kernel_uid32_t = crate::ctypes::c_uint;
26 pub type __kernel_gid32_t = crate::ctypes::c_uint;
27 pub type __kernel_old_dev_t = crate::ctypes::c_uint;
28 pub type __kernel_size_t = __kernel_ulong_t;
29 pub type __kernel_ssize_t = __kernel_long_t;
30 pub type __kernel_ptrdiff_t = __kernel_long_t;
31 pub type __kernel_off_t = __kernel_long_t;
32 pub type __kernel_loff_t = crate::ctypes::c_longlong;
33 pub type __kernel_old_time_t = __kernel_long_t;
34 pub type __kernel_time_t = __kernel_long_t;
35 pub type __kernel_time64_t = crate::ctypes::c_longlong;
36 pub type __kernel_clock_t = __kernel_long_t;
37 pub type __kernel_timer_t = crate::ctypes::c_int;
38 pub type __kernel_clockid_t = crate::ctypes::c_int;
39 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
40 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
41 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
42 pub type __s128 = i128;
43 pub type __u128 = u128;
44 pub type __le16 = __u16;
45 pub type __be16 = __u16;
46 pub type __le32 = __u32;
47 pub type __be32 = __u32;
48 pub type __le64 = __u64;
49 pub type __be64 = __u64;
50 pub type __sum16 = __u16;
51 pub type __wsum = __u32;
52 pub type __poll_t = crate::ctypes::c_uint;
53 #[repr(C)]
54 #[derive(Debug, Copy, Clone)]
55 pub struct arm64_image_header {
56 pub code0: __le32,
57 pub code1: __le32,
58 pub text_offset: __le64,
59 pub image_size: __le64,
60 pub flags: __le64,
61 pub res2: __le64,
62 pub res3: __le64,
63 pub res4: __le64,
64 pub magic: __le32,
65 pub res5: __le32,
66 }
67 pub const __BITS_PER_LONG_LONG: u32 = 64;
68 pub const ARM64_IMAGE_MAGIC: &[u8; 5] = b"ARMd\0";
69 pub const ARM64_IMAGE_FLAG_BE_SHIFT: u32 = 0;
70 pub const ARM64_IMAGE_FLAG_PAGE_SIZE_SHIFT: u32 = 1;
71 pub const ARM64_IMAGE_FLAG_PHYS_BASE_SHIFT: u32 = 3;
72 pub const ARM64_IMAGE_FLAG_BE_MASK: u32 = 1;
73 pub const ARM64_IMAGE_FLAG_PAGE_SIZE_MASK: u32 = 3;
74 pub const ARM64_IMAGE_FLAG_PHYS_BASE_MASK: u32 = 1;
75 pub const ARM64_IMAGE_FLAG_LE: u32 = 0;
76 pub const ARM64_IMAGE_FLAG_BE: u32 = 1;
77 pub const ARM64_IMAGE_FLAG_PAGE_SIZE_4K: u32 = 1;
78 pub const ARM64_IMAGE_FLAG_PAGE_SIZE_16K: u32 = 2;
79 pub const ARM64_IMAGE_FLAG_PAGE_SIZE_64K: u32 = 3;
80 pub const ARM64_IMAGE_FLAG_PHYS_BASE: u32 = 1;