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