Aufgabe 4: Kontextwechsel
Multiboot::Framebuffer Struct Reference
Video mode: Framebuffer. More...
#include <boot/multiboot/data.h>
Public Types | |
enum | Type : uint8_t { INDEXED = 0, RGB = 1, EGA_TEXT = 2 } |
Public Attributes | |
uint64_t | address |
Physical address of the framebuffer. | |
uint32_t | pitch |
Number of bytes per row. | |
uint32_t | width |
Width of framebuffer. | |
uint32_t | height |
Height of framebuffer. | |
uint8_t | bpp |
Bits per pixel. | |
enum Multiboot::Framebuffer::Type | type |
union { | |
struct { | |
uint32_t | palette_addr |
Address of an array with RGB values. | |
uint16_t | palette_num_colors |
Number of colors (in array above) | |
} | |
For INDEXED type. | |
struct { | |
uint8_t | offset_red |
Offset of red value. | |
uint8_t | bits_red |
Bits used in red value. | |
uint8_t | offset_green |
Offset of green value. | |
uint8_t | bits_green |
Bits used in green value. | |
uint8_t | offset_blue |
Offset of blue value. | |
uint8_t | bits_blue |
Bits used in blue value. | |
} | |
For RGB type. | |
}; | |
Detailed Description
Video mode: Framebuffer.
This beautiful structure contains everything required for using the graphic framebuffer in a very handy manner – however, it may not be well supported by current boot loaders... These information can be retrieved from VBE as well, though you then have to parse these huge structures containing a lot of useless stuff.
Member Enumeration Documentation
enum Multiboot::Framebuffer::Type : uint8_t |
The documentation for this struct was generated from the following file:
- boot/multiboot/data.h