1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
#![allow(non_camel_case_types)]
#![allow(dead_code)]
use core::mem;

pub type multiboot_uint8_t = ::libc::c_uchar;
pub type multiboot_uint16_t = ::libc::c_ushort;
pub type multiboot_uint32_t = ::libc::c_uint;
pub type multiboot_uint64_t = ::libc::c_ulonglong;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_header {
    pub magic: multiboot_uint32_t,
    pub flags: multiboot_uint32_t,
    pub checksum: multiboot_uint32_t,
    pub header_addr: multiboot_uint32_t,
    pub load_addr: multiboot_uint32_t,
    pub load_end_addr: multiboot_uint32_t,
    pub bss_end_addr: multiboot_uint32_t,
    pub entry_addr: multiboot_uint32_t,
    pub mode_type: multiboot_uint32_t,
    pub width: multiboot_uint32_t,
    pub height: multiboot_uint32_t,
    pub depth: multiboot_uint32_t,
}
impl Clone for Struct_multiboot_header {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_header {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_aout_symbol_table {
    pub tabsize: multiboot_uint32_t,
    pub strsize: multiboot_uint32_t,
    pub addr: multiboot_uint32_t,
    pub reserved: multiboot_uint32_t,
}
impl Clone for Struct_multiboot_aout_symbol_table {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_aout_symbol_table {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
pub type multiboot_aout_symbol_table_t = Struct_multiboot_aout_symbol_table;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_elf_section_header_table {
    pub num: multiboot_uint32_t,
    pub size: multiboot_uint32_t,
    pub addr: multiboot_uint32_t,
    pub shndx: multiboot_uint32_t,
}
impl Clone for Struct_multiboot_elf_section_header_table {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_elf_section_header_table {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
pub type multiboot_elf_section_header_table_t =
    Struct_multiboot_elf_section_header_table;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_info {
    pub flags: multiboot_uint32_t,
    pub mem_lower: multiboot_uint32_t,
    pub mem_upper: multiboot_uint32_t,
    pub boot_device: multiboot_uint32_t,
    pub cmdline: multiboot_uint32_t,
    pub mods_count: multiboot_uint32_t,
    pub mods_addr: multiboot_uint32_t,
    pub u: Union_Unnamed1,
    pub mmap_length: multiboot_uint32_t,
    pub mmap_addr: multiboot_uint32_t,
    pub drives_length: multiboot_uint32_t,
    pub drives_addr: multiboot_uint32_t,
    pub config_table: multiboot_uint32_t,
    pub boot_loader_name: multiboot_uint32_t,
    pub apm_table: multiboot_uint32_t,
    pub vbe_control_info: multiboot_uint32_t,
    pub vbe_mode_info: multiboot_uint32_t,
    pub vbe_mode: multiboot_uint16_t,
    pub vbe_interface_seg: multiboot_uint16_t,
    pub vbe_interface_off: multiboot_uint16_t,
    pub vbe_interface_len: multiboot_uint16_t,
    pub framebuffer_addr: multiboot_uint64_t,
    pub framebuffer_pitch: multiboot_uint32_t,
    pub framebuffer_width: multiboot_uint32_t,
    pub framebuffer_height: multiboot_uint32_t,
    pub framebuffer_bpp: multiboot_uint8_t,
    pub framebuffer_type: multiboot_uint8_t,
    pub _bindgen_data_1_: [u32; 2usize],
}
impl Struct_multiboot_info {
    pub unsafe fn framebuffer_palette_addr(&mut self)
     -> *mut multiboot_uint32_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(0))
    }
    pub unsafe fn framebuffer_palette_num_colors(&mut self)
     -> *mut multiboot_uint16_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(4))
    }
    pub unsafe fn framebuffer_red_field_position(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(0))
    }
    pub unsafe fn framebuffer_red_mask_size(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(1))
    }
    pub unsafe fn framebuffer_green_field_position(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(2))
    }
    pub unsafe fn framebuffer_green_mask_size(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(3))
    }
    pub unsafe fn framebuffer_blue_field_position(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(4))
    }
    pub unsafe fn framebuffer_blue_mask_size(&mut self)
     -> *mut multiboot_uint8_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_1_);
        mem::transmute(raw.offset(5))
    }
}
impl Clone for Struct_multiboot_info {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_info {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub struct Union_Unnamed1 {
    pub _bindgen_data_: [u32; 4usize],
}
impl Union_Unnamed1 {
    pub unsafe fn aout_sym(&mut self) -> *mut multiboot_aout_symbol_table_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_);
        mem::transmute(raw.offset(0))
    }
    pub unsafe fn elf_sec(&mut self)
     -> *mut multiboot_elf_section_header_table_t {
        let raw: *mut u8 = mem::transmute(&self._bindgen_data_);
        mem::transmute(raw.offset(0))
    }
}
impl Clone for Union_Unnamed1 {
    fn clone(&self) -> Self { *self }
}
impl Default for Union_Unnamed1 {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
pub type multiboot_info_t = Struct_multiboot_info;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_color {
    pub red: multiboot_uint8_t,
    pub green: multiboot_uint8_t,
    pub blue: multiboot_uint8_t,
}
impl Clone for Struct_multiboot_color {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_color {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
#[repr(C, packed)]
#[derive(Copy)]
pub struct Struct_multiboot_mmap_entry {
    pub size: multiboot_uint32_t,
    pub addr: multiboot_uint64_t,
    pub len: multiboot_uint64_t,
    pub _type: multiboot_uint32_t,
}
impl Clone for Struct_multiboot_mmap_entry {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_mmap_entry {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
pub type multiboot_memory_map_t = Struct_multiboot_mmap_entry;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_mod_list {
    pub mod_start: multiboot_uint32_t,
    pub mod_end: multiboot_uint32_t,
    pub cmdline: multiboot_uint32_t,
    pub pad: multiboot_uint32_t,
}
impl Clone for Struct_multiboot_mod_list {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_mod_list {
    fn default() -> Self { unsafe { mem::zeroed() } }
}
pub type multiboot_module_t = Struct_multiboot_mod_list;
#[repr(C)]
#[derive(Copy)]
pub struct Struct_multiboot_apm_info {
    pub version: multiboot_uint16_t,
    pub cseg: multiboot_uint16_t,
    pub offset: multiboot_uint32_t,
    pub cseg_16: multiboot_uint16_t,
    pub dseg: multiboot_uint16_t,
    pub flags: multiboot_uint16_t,
    pub cseg_len: multiboot_uint16_t,
    pub cseg_16_len: multiboot_uint16_t,
    pub dseg_len: multiboot_uint16_t,
}
impl Clone for Struct_multiboot_apm_info {
    fn clone(&self) -> Self { *self }
}
impl Default for Struct_multiboot_apm_info {
    fn default() -> Self { unsafe { mem::zeroed() } }
}