dev: boot framebuffer support
This commit is contained in:
@@ -4,7 +4,9 @@
|
||||
#include <stdint.h>
|
||||
|
||||
enum framebuffer_flags {
|
||||
FB_VGATEXT = 0x01u,
|
||||
FB_MODE_RGB = 0x01u,
|
||||
FB_MODE_VGATEXT = 0x02u,
|
||||
FB_MODE_PALETTE = 0x04u,
|
||||
};
|
||||
|
||||
struct framebuffer_bitfield {
|
||||
@@ -20,10 +22,24 @@ struct framebuffer_varinfo {
|
||||
uint32_t fb_bpp;
|
||||
uint32_t fb_stride;
|
||||
|
||||
struct framebuffer_bitfield fb_red;
|
||||
struct framebuffer_bitfield fb_green;
|
||||
struct framebuffer_bitfield fb_blue;
|
||||
struct framebuffer_bitfield fb_alpha;
|
||||
union {
|
||||
struct {
|
||||
uint32_t fb_xcells;
|
||||
uint32_t fb_ycells;
|
||||
};
|
||||
|
||||
struct {
|
||||
struct framebuffer_bitfield fb_red;
|
||||
struct framebuffer_bitfield fb_green;
|
||||
struct framebuffer_bitfield fb_blue;
|
||||
struct framebuffer_bitfield fb_alpha;
|
||||
};
|
||||
|
||||
struct {
|
||||
uintptr_t fb_palette_addr;
|
||||
uint16_t fb_palette_nr_colours;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
struct framebuffer_fixedinfo {
|
||||
|
||||
Reference in New Issue
Block a user