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