3 * Header file for GNU-EFI support in legacy boot code
5 * Copyright (c) 2014 Roderick W. Smith
6 * With extensive borrowing from other sources (mostly Tianocore)
8 * This software is licensed under the terms of the GNU GPLv3,
9 * a copy of which should come with this file.
13 * THIS FILE SHOULD NOT BE INCLUDED WHEN COMPILING UNDER TIANOCORE'S TOOLKIT!
16 #ifndef __EFILIB_GNUEFI_H
17 #define __EFILIB_GNUEFI_H
22 #define EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH
23 #define UnicodeSPrint SPrint
27 #define ASSERT_EFI_ERROR(status) ASSERT(!EFI_ERROR(status))
30 UnicodeStrToAsciiStr (
32 OUT CHAR8
*Destination
37 IN CONST CHAR8
*String
43 IN CONST EFI_DEVICE_PATH_PROTOCOL
*DevicePath
46 EFI_DEVICE_PATH_PROTOCOL
*
48 GetNextDevicePathInstance (
49 IN OUT EFI_DEVICE_PATH_PROTOCOL
**DevicePath
,