ptos: ke: Add BPAL layer groundwork
Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* Copyright (c) 2026, Chloe M.
|
||||
* Provided under the BSD-3 clause.
|
||||
*
|
||||
* Description: Boot protocol abstraction layer
|
||||
* Author: Chloe M.
|
||||
*/
|
||||
|
||||
#ifndef _KE_BPAL_H_
|
||||
#define _KE_BPAL_H_ 1
|
||||
|
||||
#include <ptapi/status.h>
|
||||
#include <ptdef.h>
|
||||
|
||||
/*
|
||||
* Represents a handle for the boot protocol abstraction
|
||||
* layer containing data filled in by the bootloader.
|
||||
*
|
||||
* @KernelBase: Represents the kernel load base
|
||||
*/
|
||||
typedef struct {
|
||||
UPTR KernelBase;
|
||||
} BPAL_HANDLE;
|
||||
|
||||
/*
|
||||
* Initialize the boot protocol abstraction layer
|
||||
*/
|
||||
VOID KeBpalInit(VOID);
|
||||
|
||||
/*
|
||||
* Obtain the BPAL handle
|
||||
*
|
||||
* @Result: Result is written here
|
||||
*/
|
||||
PT_STATUS KeBpalGetHandle(BPAL_HANDLE *Result);
|
||||
|
||||
/* Backend protocol init */
|
||||
VOID KeBpalLimineInit(BPAL_HANDLE *Result);
|
||||
|
||||
#endif /* !_KE_BPAL_H_ */
|
||||
Reference in New Issue
Block a user