xref: /illumos-gate/usr/src/boot/efi/include/efi.h (revision f334afcf)
1 /*
2  *
3  * Copyright (c)  1999 - 2002 Intel Corporation. All rights reserved
4  * This software and associated documentation (if any) is furnished
5  * under a license and may only be used or copied in accordance
6  * with the terms of the license. Except as permitted by such
7  * license, no part of this software or documentation may be
8  * reproduced, stored in a retrieval system, or transmitted in any
9  * form or by any means without the express written consent of
10  * Intel Corporation.
11  *
12  * Module Name:
13  *
14  * efi.h
15  *
16  * Abstract:
17  * Public EFI header files
18  *
19  * Revision History
20  */
21 
22 //
23 // Build flags on input
24 //  EFI32
25 //  EFI_DEBUG		- Enable debugging code
26 //  EFI_NT_EMULATOR	- Building for running under NT
27 //
28 
29 
30 #ifndef _EFI_INCLUDE_
31 #define	_EFI_INCLUDE_
32 
33 #include <sys/cdefs.h>		/* Need __dead2. */
34 #include <Uefi.h>
35 
36 #define	NextMemoryDescriptor(Ptr, Size) \
37 	((EFI_MEMORY_DESCRIPTOR *) (((UINT8 *) Ptr) + Size))
38 
39 /* See also ENCODE_ERROR(). */
40 #define	DECODE_ERROR(StatusCode)	\
41 	(unsigned long)(StatusCode & ~MAX_BIT)
42 
43 #include <stdbool.h>
44 
45 /*
46  * Global variables
47  */
48 extern bool has_boot_services;
49 
50 /*
51  * illumos UUID
52  */
53 #define	ILLUMOS_BOOT_VAR_GUID \
54 	{ 0x8B54B311, 0x7163, 0x40d3, \
55 		{0xA6, 0x7B, 0xE7, 0xB2, 0x95, 0x1B, 0x3D, 0x56} \
56 	}
57 
58 extern EFI_GUID gillumosBootVarGuid;
59 
60 #define	LZMA_COMPRESS_GUID \
61 	{ 0xee4e5898, 0x3914, 0x4259, \
62 		{0x9d, 0x6e, 0xdc, 0x7b, 0xd7, 0x94, 0x03, 0xcf} \
63 	}
64 
65 #endif /* _EFI_INCLUDE_ */
66