Add string manipulation support
This commit is contained in:
86
xtldr2/includes/bootman.h
Normal file
86
xtldr2/includes/bootman.h
Normal file
@@ -0,0 +1,86 @@
|
||||
/**
|
||||
* 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 */
|
24
xtldr2/includes/globals.h
Normal file
24
xtldr2/includes/globals.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/**
|
||||
* PROJECT: ExectOS
|
||||
* COPYRIGHT: See COPYING.md in the top level directory
|
||||
* FILE: xtldr/includes/xtbm.h
|
||||
* DESCRIPTION: XTLDR global variables
|
||||
* DEVELOPERS: Rafal Kupiec <belliash@codingworkshop.eu.org>
|
||||
*/
|
||||
|
||||
#ifndef __XTLDR_GLOBALS_H
|
||||
#define __XTLDR_GLOBALS_H
|
||||
|
||||
#include <xtbmapi.h>
|
||||
|
||||
|
||||
/* XT Boot Loader hex table */
|
||||
EXTERN PUINT16 BmpHexTable;
|
||||
|
||||
/* EFI Image Handle */
|
||||
EXTERN EFI_HANDLE EfiImageHandle;
|
||||
|
||||
/* EFI System Table */
|
||||
EXTERN PEFI_SYSTEM_TABLE EfiSystemTable;
|
||||
|
||||
#endif /* __XTLDR_GLOBALS_H */
|
@@ -12,38 +12,7 @@
|
||||
#include <xtbmapi.h>
|
||||
#include <xtver.h>
|
||||
|
||||
|
||||
/* EFI Image Handle */
|
||||
EXTERN EFI_HANDLE EfiImageHandle;
|
||||
|
||||
/* EFI System Table */
|
||||
EXTERN PEFI_SYSTEM_TABLE EfiSystemTable;
|
||||
|
||||
|
||||
/* XTLDR routines forward references */
|
||||
XTCDECL
|
||||
VOID
|
||||
BmClearScreen();
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BmDisableCursor();
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BmEnableCursor();
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BmInitializeConsole();
|
||||
|
||||
XTCDECL
|
||||
VOID
|
||||
BmPrintChar(IN USHORT Character);
|
||||
|
||||
XTCDECL
|
||||
EFI_STATUS
|
||||
BmStartXtLoader(IN EFI_HANDLE ImageHandle,
|
||||
IN PEFI_SYSTEM_TABLE SystemTable);
|
||||
#include <globals.h>
|
||||
#include <bootman.h>
|
||||
|
||||
#endif /* __XTLDR_XTBM_H */
|
||||
|
Reference in New Issue
Block a user