ptos: bpal: Obtain framebuffer information

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 06:29:52 +00:00
parent dfafeaf313
commit 530233c966
2 changed files with 54 additions and 1 deletions
+20 -1
View File
@@ -12,14 +12,33 @@
#include <ptapi/status.h>
#include <ptdef.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;
/*
* Represents a handle for the boot protocol abstraction
* layer containing data filled in by the bootloader.
*
* @KernelBase: Represents the kernel load base
* @KernelBase: Represents the kernel load base
* @Framebuffer: Framebuffer information
*/
typedef struct {
UPTR KernelBase;
BPAL_FRAMEBUFFER Framebuffer;
} BPAL_HANDLE;
/*