Struct stivale_boot::v1::StivaleStruct[][src]

#[repr(C)]
pub struct StivaleStruct {
Show 21 fields pub command_line: u64, pub memory_map_array: [StivaleMemoryMapEntry; 0], pub memory_map_len: u64, pub framebuffer_addr: u64, pub framebuffer_pitch: u16, pub framebuffer_width: u16, pub framebuffer_height: u16, pub framebuffer_bpp: u16, pub rsdp_adddres: u64, pub module_len: u64, pub modules: [StivaleModule; 0], pub unix_epoch: u64, pub flags: u64, pub red_mask_size: u8, pub red_mask_shift: u8, pub green_mask_size: u8, pub green_mask_shift: u8, pub blue_mask_size: u8, pub blue_mask_shift: u8, pub smbios_entry_32: u64, pub smbios_entry_64: u64, // some fields omitted
}

Fields

command_line: u64

Address of the null-terminated command line.

memory_map_array: [StivaleMemoryMapEntry; 0]

Pointer to the memory map array.

memory_map_len: u64

Length of the memory map entries.

framebuffer_addr: u64

Address of the framebuffer if avaliable else its set to zero.

framebuffer_pitch: u16

The framebuffer pitch in bytes.

framebuffer_width: u16

Width of the framebuffer in pixels.

framebuffer_height: u16

Height of the framebuffer in pixels.

framebuffer_bpp: u16

The framebuffer bits per pixels.

rsdp_adddres: u64

Address of the RSDP ACPI structure.

module_len: u64

The length of modules that the stivale bootloader loaded according to the config.

modules: [StivaleModule; 0]

Pointer to the modules array.

unix_epoch: u64

UNIX epoch at boot, which is read from system RTC.

flags: u64red_mask_size: u8

Size of the red mask in RGB.

red_mask_shift: u8

Shift of the red mask in RGB.

green_mask_size: u8

Size of the green mask in RGB.

green_mask_shift: u8

Shift of the green mask in RGB.

blue_mask_size: u8

Size of the blue mask in RGB.

blue_mask_shift: u8

Shift of the blue mask in RGB.

smbios_entry_32: u64

32-bit SMBIOS entry point address. Set to 0 if unavailable.

smbios_entry_64: u64

64-bit SMBIOS entry point address. Set to 0 if unavailable.

Implementations

Return’s the modules array pointer as a rust slice.

Returns an iterator over all the modules that were loaded.

Return’s memory map entries pointer as a rust slice.

Returns an iterator over all the memory regions.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.