stos: bpal: Add framebuffer info request

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 02:40:50 +00:00
parent bb6e4d98d1
commit 800568f996
2 changed files with 52 additions and 0 deletions
+19
View File
@@ -11,13 +11,32 @@
#include <stdef.h>
/*
* Represents a framebuffer
*/
typedef struct {
VOID *Address;
UQUAD Width;
UQUAD Height;
UQUAD Pitch;
SHORT Bpp;
UCHAR RedMaskSize;
UCHAR RedMaskShift;
UCHAR GreenMaskSize;
UCHAR GreenMaskShift;
UCHAR BlueMaskSize;
UCHAR BlueMaskShift;
} BPAL_FRAMEBUFFER;
/*
* Boot protocol abstraction handle
*
* @KernelBase: Kernel load base
* @Framebuffer: Framebuffer info
*/
typedef struct {
UPTR KernelBase;
BPAL_FRAMEBUFFER Framebuffer;
} BPAL_HANDLE;
/*