2 * EfiLib/gnuefi-helper.h
3 * Header file for GNU-EFI support in legacy boot code
5 * Borrowed from the TianoCore EDK II, with modifications by Rod Smith
7 * Copyright (c) 2004 - 2011, Intel Corporation. All rights reserved.<BR>
8 * This program and the accompanying materials
9 * are licensed and made available under the terms and conditions of the BSD License
10 * which accompanies this distribution. The full text of the license may be found at
11 * http://opensource.org/licenses/bsd-license.php
13 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 * THIS FILE SHOULD NOT BE INCLUDED WHEN COMPILING UNDER TIANOCORE'S TOOLKIT!
21 #ifndef __EFILIB_GNUEFI_H
22 #define __EFILIB_GNUEFI_H
27 #define EFI_DEVICE_PATH_PROTOCOL EFI_DEVICE_PATH
28 #define UnicodeSPrint SPrint
34 #define ASSERT_EFI_ERROR(status) ASSERT(!EFI_ERROR(status))
37 UnicodeStrToAsciiStr (
39 OUT CHAR8
*Destination
44 IN CONST CHAR8
*String
50 IN CONST EFI_DEVICE_PATH_PROTOCOL
*DevicePath
53 EFI_DEVICE_PATH_PROTOCOL
*
55 GetNextDevicePathInstance (
56 IN OUT EFI_DEVICE_PATH_PROTOCOL
**DevicePath
,