automagically convert ELF to PE/COFF (i386 only)
[mirror_edk2.git] / MdePkg / Include / Uefi.h
CommitLineData
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
15Copyright (c) 2006, Intel Corporation\r
16All rights reserved. This program and the accompanying materials\r
17are licensed and made available under the terms and conditions of the BSD License\r
18which accompanies this distribution. The full text of the license may be found at\r
19http://opensource.org/licenses/bsd-license.php\r
20\r
21THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
22WITHOUT 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
9c89ec98 52#if defined(MDE_CPU_IPF)\r
53#include <SalApi.h>\r
54#endif\r
55\r
878ddf1f 56#endif\r