dev: boot framebuffer support

This commit is contained in:
2023-06-08 20:46:43 +01:00
parent ff8902ef1c
commit f83ecca490
10 changed files with 163 additions and 67 deletions

View File

@@ -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 {