ptos: drivers: Add bootvid driver stub
Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (c) 2026, Chloe M.
|
||||
* Provided under the BSD-3 clause.
|
||||
*
|
||||
* Description: Boot video driver
|
||||
* Author: Chloe M.
|
||||
*/
|
||||
|
||||
#include <drivers/bootvid/fbio.h>
|
||||
#include <ex/trace.h>
|
||||
#include <ke/bpal.h>
|
||||
|
||||
#define DTRACE(Fmt, ...) \
|
||||
TRACE("[ BOOTVID ]: " Fmt, ##__VA_ARGS__)
|
||||
|
||||
static BPAL_FRAMEBUFFER Framebuffer;
|
||||
|
||||
VOID
|
||||
BootVidInit(VOID)
|
||||
{
|
||||
BPAL_HANDLE Handle;
|
||||
|
||||
KeBpalGetHandle(&Handle);
|
||||
Framebuffer = Handle.Framebuffer;
|
||||
|
||||
DTRACE("framebuffer width : %d px\n", Framebuffer.Width);
|
||||
DTRACE("framebuffer height : %d px\n", Framebuffer.Height);
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) 2026, Chloe M.
|
||||
* Provided under the BSD-3 clause.
|
||||
*
|
||||
* Description: Boot video driver
|
||||
* Author: Chloe M.
|
||||
*/
|
||||
|
||||
#ifndef _BOOTVID_FBIO_H_
|
||||
#define _BOOTVID_FBIO_H_ 1
|
||||
|
||||
#include <ptdef.h>
|
||||
|
||||
/*
|
||||
* Initialize the boot video driver
|
||||
*/
|
||||
VOID BootVidInit(VOID);
|
||||
|
||||
#endif /* !_BOOTVID_FBIO_H_ */
|
||||
@@ -12,6 +12,7 @@ include ../../mk/ptos.mk
|
||||
CFILES = $(shell find . -name "*.c")
|
||||
CFILES += $(shell find ../lib -name "*.c")
|
||||
CFILES += $(shell find ../xt -name "*.c")
|
||||
CFILES += $(shell find ../drivers -name "*.c")
|
||||
DFILES = $(CFILES:.c=.d)
|
||||
OFILES = $(CFILES:.c=.o)
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <ke/bpal.h>
|
||||
#include <ex/trace.h>
|
||||
#include <hal/serial.h>
|
||||
#include <drivers/bootvid/fbio.h>
|
||||
#include <machine/pio.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -38,4 +39,7 @@ KiKernelInit(VOID)
|
||||
|
||||
/* Display the copyright */
|
||||
Copyright();
|
||||
|
||||
/* Initialize the boot video driver */
|
||||
BootVidInit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user