]> code.delx.au - refind/blob - EfiLib/gnuefi-helper.h
Added OS check to mkrlconf.sh. Bypass checks for BIOS-mode boot
[refind] / EfiLib / gnuefi-helper.h
1 /*
2 * EfiLib/gnuefi.h
3 * Header file for GNU-EFI support in legacy boot code
4 *
5 * Copyright (c) 2014 Roderick W. Smith
6 * With extensive borrowing from other sources (mostly Tianocore)
7 *
8 * This software is licensed under the terms of the GNU GPLv3,
9 * a copy of which should come with this file.
10 *
11 */
12 /*
13 * THIS FILE SHOULD NOT BE INCLUDED WHEN COMPILING UNDER TIANOCORE'S TOOLKIT!
14 */
15
16 #ifndef __EFILIB_GNUEFI_H
17 #define __EFILIB_GNUEFI_H
18
19 #include "efi.h"
20 #include "efilib.h"
21
22 #define EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH
23 #define UnicodeSPrint SPrint
24 #define gRT RT
25 #define gBS BS
26 #define CONST
27 #define ASSERT_EFI_ERROR(status) ASSERT(!EFI_ERROR(status))
28
29 CHAR8 *
30 UnicodeStrToAsciiStr (
31 IN CHAR16 *Source,
32 OUT CHAR8 *Destination
33 );
34
35 UINTN
36 AsciiStrLen (
37 IN CONST CHAR8 *String
38 );
39
40 UINTN
41 EFIAPI
42 GetDevicePathSize (
43 IN CONST EFI_DEVICE_PATH_PROTOCOL *DevicePath
44 );
45
46 EFI_DEVICE_PATH_PROTOCOL *
47 EFIAPI
48 GetNextDevicePathInstance (
49 IN OUT EFI_DEVICE_PATH_PROTOCOL **DevicePath,
50 OUT UINTN *Size
51 );
52
53 #endif