StuBS
Loading...
Searching...
No Matches
VbeModeInfo Struct Reference

Mode Information of the Vesa BIOS Extension More...

Public Types

enum  ModeAttributes : uint16_t {
  SUPPORTED = 1 << 0 , TTY = 1 << 2 , COLOR = 1 << 3 , GRAPHICS = 1 << 4 ,
  VGA = 1 << 5 , VGA_PAGED = 1 << 6 , LFB = 1 << 7
}
 
enum  MemoryModel : uint8_t {
  TEXT_MODE = 0 , CGA = 1 , HERCULES = 2 , PLANAR = 3 ,
  PACKED = 4 , NON_CHAIN_4 = 5 , DIRECT_COLOR = 6 , YUV = 7
}
 
enum  DirectColorAttributes : uint8_t { DYNAMIC_COLOR_RAMP = 1 << 0 , USABLE_BITS = 1 << 1 }
 

Public Attributes

uint16_t pitch
 Bytes per scan line.
 
uint16_t width
 Horizontal resolution in pixels (GRAPHICS) or characters.
 
uint16_t height
 Vertical resolution in pixels (GRAPHICS) or characters.
 
uint8_t char_width
 Character cell width in pixels (deprecated)
 
uint8_t char_height
 Character cell height in pixels (deprecated)
 
uint8_t planes
 Number of memory planes.
 
uint8_t bpp
 Bits per pixel.
 
uint8_t banks
 Number of banks.
 
enum VbeModeInfo::MemoryModel memory_model
 Memory model type.
 
uint8_t bank_size
 Bank size in KB.
 
uint8_t image_pages
 Number of images.
 
uint8_t reserved
 Reserved for page function.
 
uint8_t bits_red
 Size of direct color red mask in bits.
 
uint8_t offset_red
 Bit position of lsb of red mask.
 
uint8_t bits_green
 Size of direct color green mask in bits.
 
uint8_t offset_green
 Bit position of lsb of green mask.
 
uint8_t bits_blue
 Size of direct color blue mask in bits.
 
uint8_t offset_blue
 Bit position of lsb of blue mask.
 
uint8_t bits_rsv
 Size of direct color reserved mask in bits.
 
uint8_t offset_rsv
 Bit position of lsb of reserved mask.
 
uint8_t directcolor_attributes
 direct color mode attributes
 
uint32_t address
 physical address for flat memory frame buffer
 
uint32_t offscreen_memory_offset
 reserved
 
uint16_t offscreen_memory_size
 reserved
 

Detailed Description

Mode Information of the Vesa BIOS Extension

See also
Vesa BIOS Extension ModeInfoBlock struc

Member Enumeration Documentation

◆ DirectColorAttributes

Enumerator
DYNAMIC_COLOR_RAMP 

Programmable (otherwise fixed) color ramp.

USABLE_BITS 

Bits in reserved mask are usable (otherwise reserved)

◆ MemoryModel

enum VbeModeInfo::MemoryModel : uint8_t
Enumerator
TEXT_MODE 

Text mode.

CGA 

CGA graphics.

HERCULES 

Hercules graphics.

PLANAR 

Planar.

PACKED 

Packed pixel.

NON_CHAIN_4 

Non-chain 4, 256 color.

DIRECT_COLOR 

Direct Color.

YUV 

YUV.

◆ ModeAttributes

enum VbeModeInfo::ModeAttributes : uint16_t
Enumerator
SUPPORTED 

Mode supported by hardware configuration.

TTY 

TTY Output functions supported by BIOS.

COLOR 

Color mode (otherwise monochrome)

GRAPHICS 

Graphic mode (otherwise text)

VGA 

VGA compatible.

VGA_PAGED 

VGA compatible windowed memory mode is available.

LFB 

Linear frame buffer mode is available.


The documentation for this struct was generated from the following file: