Files
SystemPaw3/paw/stos/head/drivers/bootvid/fbio.h
T
2026-06-22 03:40:34 +00:00

56 lines
961 B
C

/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Bootvid driver
* Author: Chloe M.
*/
#ifndef _BOOTVID_FBIO_H_
#define _BOOTVID_FBIO_H_ 1
#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_ */