Files
SystemPaw3/paw/stos/head/drivers/bootvid/fbio.h
T
Chloe M. 03a68ddd39 stos: bootvid: Add boot splash blitter
Signed-off-by: Chloe M. <chloe@mensia.org>
2026-06-23 02:55:38 +00:00

68 lines
1.1 KiB
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);
/*
* Draw a splash screen
*/
VOID BootVidSplash(VOID);
/*
* Clear the screen with a background color
*
* @Color: Color to fill
*/
VOID BootVidClear(ULONG Color);
/*
* Returns true if the boot console is enabled
*/
BOOLEAN BootVidConsEn(VOID);
#endif /* !_BOOTVID_FBIO_H_ */