edk2/EdkCompatibilityPkg/EdkCompatibilityPkg.dsc:
[people/mcb30/edk2.git] / edk2 / EdkCompatibilityPkg / Foundation / Include / x64 / EfiPeOptionalHeader.h
1 /*++\r
2 \r
3 Copyright (c) 2005 - 2006, Intel Corporation                                                         \r
4 All rights reserved. This program and the accompanying materials                          \r
5 are licensed and made available under the terms and conditions of the BSD License         \r
6 which accompanies this distribution.  The full text of the license may be found at        \r
7 http://opensource.org/licenses/bsd-license.php                                            \r
8                                                                                           \r
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
11 \r
12 Module Name:\r
13 \r
14   EfiPeOptionalHeader.h\r
15 \r
16 Abstract:\r
17   Defines the optional header in the PE image per the PE specification.  This\r
18   file must be included only from within EfiImage.h since \r
19   EFI_IMAGE_DATA_DIRECTORY and EFI_IMAGE_NUMBER_OF_DIRECTORY_ENTRIES are defined\r
20   there.\r
21 \r
22 --*/\r
23 \r
24 #ifndef _EFI_PE_OPTIONAL_HEADER_H_\r
25 #define _EFI_PE_OPTIONAL_HEADER_H_\r
26 \r
27 #define EFI_IMAGE_MACHINE_TYPE (EFI_IMAGE_MACHINE_X64)\r
28 \r
29 #define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) \\r
30   (((Machine) == EFI_IMAGE_MACHINE_X64) || ((Machine) == EFI_IMAGE_MACHINE_EBC))\r
31 \r
32 #define EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED(Machine) ((Machine) == EFI_IMAGE_MACHINE_IA32) \r
33 \r
34 //\r
35 // Assume we can use IPF values\r
36 //\r
37 #define EFI_IMAGE_NT_OPTIONAL_HDR_MAGIC EFI_IMAGE_NT_OPTIONAL_HDR64_MAGIC\r
38 typedef EFI_IMAGE_OPTIONAL_HEADER64     EFI_IMAGE_OPTIONAL_HEADER;\r
39 typedef EFI_IMAGE_NT_HEADERS64          EFI_IMAGE_NT_HEADERS;\r
40 \r
41 #endif\r
42 \r