StuBS
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 mode_attributes
 
struct { 
 
uint8_t attrib_a
 
uint8_t attrib_b
 
uint16_t granularity
 
uint16_t size
 
uint16_t segment_a
 
uint16_t segment_b
 
uint32_t func_ptr
 
win 
 
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

◆ ModeAttributes

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.

◆ MemoryModel

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.

◆ DirectColorAttributes

Enumerator
DYNAMIC_COLOR_RAMP 

Programmable (otherwise fixed) color ramp.

USABLE_BITS 

Bits in reserved mask are usable (otherwise reserved)

Member Data Documentation

◆ mode_attributes

uint16_t VbeModeInfo::mode_attributes

◆ [struct]

struct { ... } VbeModeInfo::win

◆ pitch

uint16_t VbeModeInfo::pitch

Bytes per scan line.

◆ width

uint16_t VbeModeInfo::width

Horizontal resolution in pixels (GRAPHICS) or characters.

◆ height

uint16_t VbeModeInfo::height

Vertical resolution in pixels (GRAPHICS) or characters.

◆ char_width

uint8_t VbeModeInfo::char_width

Character cell width in pixels (deprecated)

◆ char_height

uint8_t VbeModeInfo::char_height

Character cell height in pixels (deprecated)

◆ planes

uint8_t VbeModeInfo::planes

Number of memory planes.

◆ bpp

uint8_t VbeModeInfo::bpp

Bits per pixel.

◆ banks

uint8_t VbeModeInfo::banks

Number of banks.

◆ memory_model

enum VbeModeInfo::MemoryModel VbeModeInfo::memory_model

Memory model type.

◆ bank_size

uint8_t VbeModeInfo::bank_size

Bank size in KB.

◆ image_pages

uint8_t VbeModeInfo::image_pages

Number of images.

◆ reserved

uint8_t VbeModeInfo::reserved

Reserved for page function.

◆ bits_red

uint8_t VbeModeInfo::bits_red

Size of direct color red mask in bits.

◆ offset_red

uint8_t VbeModeInfo::offset_red

Bit position of lsb of red mask.

◆ bits_green

uint8_t VbeModeInfo::bits_green

Size of direct color green mask in bits.

◆ offset_green

uint8_t VbeModeInfo::offset_green

Bit position of lsb of green mask.

◆ bits_blue

uint8_t VbeModeInfo::bits_blue

Size of direct color blue mask in bits.

◆ offset_blue

uint8_t VbeModeInfo::offset_blue

Bit position of lsb of blue mask.

◆ bits_rsv

uint8_t VbeModeInfo::bits_rsv

Size of direct color reserved mask in bits.

◆ offset_rsv

uint8_t VbeModeInfo::offset_rsv

Bit position of lsb of reserved mask.

◆ directcolor_attributes

uint8_t VbeModeInfo::directcolor_attributes

direct color mode attributes

◆ address

uint32_t VbeModeInfo::address

physical address for flat memory frame buffer

◆ offscreen_memory_offset

uint32_t VbeModeInfo::offscreen_memory_offset

reserved

◆ offscreen_memory_size

uint16_t VbeModeInfo::offscreen_memory_size

reserved


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