blob: d6f56a5c102cecc8bc2a7e1e785866ca4fc7daff (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef BOOTLOADER_COMPAT_H
#define BOOTLOADER_COMPAT_H
// partial API of UEFI/bootloader
#include <wchar.h>
#include <stdint.h>
#define EFIAPI
#define IN
#define OUT
// basic UEFI datatypes
typedef uint8_t BOOLEAN;
typedef int8_t INT8;
typedef uint8_t UINT8;
typedef int16_t INT16;
typedef uint16_t UINT16;
typedef int32_t INT32;
typedef uint32_t UINT32;
typedef int64_t INT64;
typedef uint64_t UINT64;
typedef char CHAR8;
typedef wchar_t CHAR16;
typedef uint64_t UINTN;
// UEFI native functions
typedef int (*UEFIPrint)(const wchar_t *, ...);
extern UEFIPrint Print;
// Bootloader defined
void * EFIAPI LoadFile(char * name, UINTN memtype);
#endif // BOOTLOADER_COMPAT_H
|