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

Implementations§

source§

impl VbeModeInfo

source

unsafe fn from_ptr<'a>(ptr: u32) -> &'a Self

source

fn framebuffer(&self) -> Option<FramebufferTable>

Trait Implementations§

source§

impl Debug for VbeModeInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for VbeModeInfo

§

impl RefUnwindSafe for VbeModeInfo

§

impl Send for VbeModeInfo

§

impl Sync for VbeModeInfo

§

impl Unpin for VbeModeInfo

§

impl UnwindSafe for VbeModeInfo

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Az for T

source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

source§

fn cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> CheckedAs for T

source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

source§

impl<T> OverflowingAs for T

source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
source§

impl<T> SaturatingAs for T

source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> UnwrappedAs for T

source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
source§

impl<T> WrappingAs for T

source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.