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: StivaleTagHeader
framebuffer_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.