hal_core::boot

Trait BootInfo

Source
pub trait BootInfo {
    type MemoryMap: Iterator<Item = Region>;
    type Writer: Write;
    type Framebuffer: Draw;

    // Required methods
    fn memory_map(&self) -> Self::MemoryMap;
    fn writer(&self) -> Self::Writer;
    fn framebuffer(&self) -> Option<Self::Framebuffer>;
    fn bootloader_name(&self) -> &str;
    fn init_paging(&self);

    // Provided methods
    fn bootloader_version(&self) -> Option<&str> { ... }
    fn subscriber(&self) -> Option<Dispatch> { ... }
}

Required Associated Types§

Required Methods§

Source

fn memory_map(&self) -> Self::MemoryMap

Returns the boot info’s memory map.

Source

fn writer(&self) -> Self::Writer

Returns a writer for printing early kernel diagnostics

Source

fn framebuffer(&self) -> Option<Self::Framebuffer>

Source

fn bootloader_name(&self) -> &str

Source

fn init_paging(&self)

Provided Methods§

Source

fn bootloader_version(&self) -> Option<&str>

Source

fn subscriber(&self) -> Option<Dispatch>

Implementors§