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
29 #define ASSERT_EFI_ERROR(status) ASSERT(!EFI_ERROR(status))
32 UnicodeStrToAsciiStr (
34 OUT CHAR8
*Destination
39 IN CONST CHAR8
*String
45 IN CONST EFI_DEVICE_PATH_PROTOCOL
*DevicePath
48 EFI_DEVICE_PATH_PROTOCOL
*
50 GetNextDevicePathInstance (
51 IN OUT EFI_DEVICE_PATH_PROTOCOL
**DevicePath
,