stos: bootvid: Add boot console support
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user