Struct stivale_boot::v2::StivaleFramebufferTag[][src]

#[repr(C)]
pub struct StivaleFramebufferTag {
Show 13 fields pub header: StivaleTagHeader, pub framebuffer_addr: u64, pub framebuffer_width: u16, pub framebuffer_height: u16, pub framebuffer_pitch: u16, pub framebuffer_bpp: u16, pub memory_model: u8, 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, // some fields omitted
}
Expand description

If the framebuffer tag was requested through the framebuffer tag header and its supported by the stivale bootloader, this tag is returned to the kernel. This tag provides an interface to the framebuffer.

Fields

header: StivaleTagHeaderframebuffer_addr: u64

The address of the framebuffer.

framebuffer_width: u16

The total width of the framebuffer in pixels.

framebuffer_height: u16

The total height of the framebuffer in pixels.

framebuffer_pitch: u16

The pitch of the framebuffer in bytes.

framebuffer_bpp: u16

The amount of bytes-per pixel.

memory_model: u8

Memory model of the framebuffer. If set to one, its RGB and all other values are undefined.

red_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.

Implementations

Returns the size of the framebuffer.

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.