878ddf1f |
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 |
a537f148 |
8 | file. To support EDK II/UEFI2.0 set EFI_SPECIFIATION_VERSION to 0x00020000. To \r |
9 | support EDK/EFI 1.10 set EFI_SPECIFIATION_VERSION to 0x00010010. \r |
878ddf1f |
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 |
15b06e58 |
43 | #elif (EDK_RELEASE_VERSION < 0x00020000) && (EFI_SPECIFICATION_VERSION >= 0x00020000)\r |
878ddf1f |
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 |
878ddf1f |
52 | \r |
53 | //\r |
54 | // All module types types have access to PCD for build support\r |
55 | //\r |
56 | #include <Protocol/Pcd.h>\r |
57 | \r |
58 | #endif\r |