Struct rstubs::device::vga::VbeModeInfo
source · #[repr(C, packed(1))]struct VbeModeInfo {Show 26 fields
mode_attributes: ModeAttributes,
_win: [u16; 7],
pitch: u16,
width: u16,
height: u16,
char_width: u8,
char_height: u8,
planes: u8,
bpp: u8,
banks: u8,
memory_model: MemoryModel,
bank_size: u8,
image_pages: u8,
reserved: u8,
bits_red: u8,
offset_red: u8,
bits_green: u8,
offset_green: u8,
bits_blue: u8,
offset_blue: u8,
bits_rsv: u8,
offset_rsv: u8,
directcolor_attributes: u8,
address: u32,
offscreen_memory_offset: u32,
offscreen_memory_size: u16,
}
Fields§
§mode_attributes: ModeAttributes
§_win: [u16; 7]
Window functions (used by all VBE revisions, but ignored here)
pitch: u16
Bytes per scan line
width: u16
Horizontal resolution in pixels (GRAPHICS) or characters
height: u16
Vertical resolution in pixels (GRAPHICS) or characters
char_width: u8
Character cell width in pixels (deprecated)
char_height: u8
Character cell height in pixels (deprecated)
planes: u8
Number of memory planes
bpp: u8
Bits per pixel
banks: u8
Number of banks
memory_model: MemoryModel
Memory model type
bank_size: u8
Bank size in KB
image_pages: u8
Number of images
reserved: u8
Reserved for page function
bits_red: u8
Size of direct color red mask in bits
offset_red: u8
Bit position of lsb of red mask
bits_green: u8
Size of direct color green mask in bits
offset_green: u8
Bit position of lsb of green mask
bits_blue: u8
Size of direct color blue mask in bits
offset_blue: u8
Bit position of lsb of blue mask
bits_rsv: u8
Size of direct color reserved mask in bits
offset_rsv: u8
Bit position of lsb of reserved mask
directcolor_attributes: u8
Direct color mode attributes enum DirectColorAttributes : uint8_t { DYNAMIC_COLOR_RAMP = 1 << 0, ///< Programmable (otherwise fixed) color ramp USABLE_BITS = 1 << 1 ///< Bits in reserved mask are usable (otherwise reserved) };
address: u32
physical address for flat memory frame buffer
offscreen_memory_offset: u32
reserved
offscreen_memory_size: u16
reserved