ptos: bootvid: Add boot console to bootvid

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 10:14:58 +00:00
parent 85e8f11a89
commit 2594613412
4 changed files with 127 additions and 0 deletions
+36
View File
@@ -11,9 +11,45 @@
#include <ptdef.h>
/*
* Boot console attributes
*
* @Background: Console background color
* @Foreground: Console foreground color
*/
typedef struct {
ULONG Background;
ULONG Foreground;
} BOOTCONS_ATTR;
/*
* Initialize the boot video driver
*/
VOID BootVidInit(VOID);
/*
* De-initialize the boot video console
*/
VOID BootVidDeInitCons(VOID);
/*
* Initialize the boot video console
*
* @Attr: Console attributes to initialize
*/
VOID BootVidInitCons(BOOTCONS_ATTR *Attr);
/*
* Write to the boot console
*
* @String: String to write to boot console
* @Length: Length of string to write
*/
VOID BootVidConsWrite(const CHAR *String, USIZE Length);
/*
* Returns true if the boot console is enabled
*/
BOOLEAN BootVidConsEn(VOID);
#endif /* !_BOOTVID_FBIO_H_ */