stos: bootvid: Add boot console support

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
Chloe M.
2026-06-22 03:40:34 +00:00
parent b2e4f35e9f
commit 26139ff1ab
5 changed files with 129 additions and 0 deletions
+36
View File
@@ -11,9 +11,45 @@
#include <stdef.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);
/*
* Initialize the boot console
*
* @Attr: Attributes to set [NULL for default]
*/
VOID BootVidInitCons(BOOTCONS_ATTR *Attr);
/*
* Turn off the boot console
*/
VOID BootVidDeInitCons(VOID);
/*
* Write a string to the boot console
*
* @String: String to write
* @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_ */