]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | \r | |
3 | Root include file for Mde Package UEFI modules.\r | |
4 | \r | |
5 | UEFI modules follow the public EFI 1.10 or UEFI 2.0 specifications and\r | |
6 | also contains the infrastructure required to build modules. The build \r | |
7 | infrastructure must set EFI_SPECIFICATION_VERSION before including this \r | |
8 | file. To support R9/UEFI2.0 set EFI_SPECIFIATION_VERSION to 0x00020000. To \r | |
9 | support R8.5/EFI 1.10 set EFI_SPECIFIATION_VERSION to 0x00010010. \r | |
10 | Seting EDK_RELEASE_VERSION to zero implies no Tiano extensions and a\r | |
11 | non zero value implies Tiano extensions are availible. \r | |
12 | EFI_SPECIFIATION_VERSION and EDK_RELEASE_VERSION are set automatically\r | |
13 | by the build infrastructure for every module.\r | |
14 | \r | |
15 | Copyright (c) 2006, Intel Corporation\r | |
16 | All rights reserved. This program and the accompanying materials\r | |
17 | are licensed and made available under the terms and conditions of the BSD License\r | |
18 | which accompanies this distribution. The full text of the license may be found at\r | |
19 | http://opensource.org/licenses/bsd-license.php\r | |
20 | \r | |
21 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
22 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
23 | \r | |
24 | **/\r | |
25 | \r | |
26 | \r | |
27 | #ifndef __UEFI_H__\r | |
28 | #define __UEFI_H__\r | |
29 | \r | |
30 | \r | |
31 | //\r | |
32 | // Check to make sure EFI_SPECIFICATION_VERSION and EDK_RELEASE_VERSION are defined.\r | |
33 | // also check for legal combinations\r | |
34 | //\r | |
35 | #if !defined(EFI_SPECIFICATION_VERSION)\r | |
36 | #error EFI_SPECIFICATION_VERSION not defined\r | |
37 | #elif !defined(EDK_RELEASE_VERSION)\r | |
38 | #error EDK_RELEASE_VERSION not defined\r | |
39 | #elif EDK_RELEASE_VERSION == 0x00000000\r | |
40 | //\r | |
41 | // UEFI mode with no Tiano extensions is legal\r | |
42 | //\r | |
43 | #elif (EDK_RELEASE_VERSION <= 0x00080005) && (EFI_SPECIFICATION_VERSION >= 0x00020000)\r | |
44 | #error Illegal combination of EFI_SPECIFICATION_VERSION and EDK_RELEASE_VERSION versions\r | |
45 | #endif\r | |
46 | \r | |
47 | \r | |
48 | \r | |
49 | #include <Common/UefiBaseTypes.h>\r | |
50 | #include <Uefi/UefiSpec.h>\r | |
51 | \r | |
52 | //\r | |
53 | // Need due to R8.5 Tiano contamination of UEFI enumes. \r | |
54 | // There is a UEFI library that does things the new way and the old way\r | |
55 | // This is why these definitions are need in Uefi.h\r | |
56 | //\r | |
57 | #include <Guid/EventLegacyBios.h>\r | |
58 | #include <Guid/FrameworkDevicePath.h>\r | |
59 | \r | |
60 | \r | |
61 | //\r | |
62 | // All module types types have access to PCD for build support\r | |
63 | //\r | |
64 | #include <Protocol/Pcd.h>\r | |
65 | \r | |
66 | #endif\r |