exectos/xtldr2/includes/bootman.h
Rafal Kupiec 78ac03b039
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 26s
Builds / ExectOS (i686) (push) Successful in 26s
Add string manipulation support
2023-12-03 00:24:56 +01:00

87 lines
1.8 KiB
C

/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtldr/includes/xtbm.h
* DESCRIPTION: XTLDR Boot Manager related structures and routines forward references
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
*/
#ifndef __XTLDR_BOOTMAN_H
#define __XTLDR_BOOTMAN_H
#include <xtbmapi.h>
/* XTLDR routine callbacks */
typedef VOID (BMPRINTCHAR)(IN USHORT Character);
/* XTLDR routines forward references */
XTCDECL
VOID
BmClearScreen();
XTCDECL
VOID
BmDisableCursor();
XTCDECL
VOID
BmEnableCursor();
XTCDECL
VOID
BmInitializeConsole();
XTCDECL
VOID
BmPrintChar(IN USHORT Character);
XTCDECL
VOID
BmPrintString(IN IN BMPRINTCHAR PrintCharRoutine,
IN PUINT16 Format,
IN VA_LIST Arguments);
XTCDECL
EFI_STATUS
BmStartXtLoader(IN EFI_HANDLE ImageHandle,
IN PEFI_SYSTEM_TABLE SystemTable);
XTCDECL
VOID
BmpFormatString(IN BMPRINTCHAR PrintCharRoutine,
IN PUINT16 Format,
IN ...);
XTCDECL
VOID
BmpPrintSigned32String(IN BMPRINTCHAR PrintCharRoutine,
IN INT Number,
IN UINT Base);
XTCDECL
VOID
BmpPrintSigned64String(IN BMPRINTCHAR PrintCharRoutine,
IN INT_PTR Number,
IN UINT_PTR Base);
XTCDECL
VOID
BmpPrintUnsigned32String(IN BMPRINTCHAR PrintCharRoutine,
IN UINT Number,
IN UINT Base,
IN UINT Padding);
XTCDECL
VOID
BmpPrintUnsigned64String(IN BMPRINTCHAR PrintCharRoutine,
IN UINT_PTR Number,
IN UINT_PTR Base,
IN UINT_PTR Padding);
XTCDECL
UINT64
BmpReadStringPadding(IN PUINT16 *Format);
#endif /* __XTLDR_BOOTMAN_H */