]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Add ARM specific Machine Type
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 20:49:49 +0000 (20:49 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 18 Aug 2009 20:49:49 +0000 (20:49 +0000)
Add ARM specific removable media boot file name

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9100 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Uefi/UefiBaseType.h
MdePkg/Include/Uefi/UefiSpec.h

index c500a0fc1f3cb9862b0063268cae3a446cacb13c..2a0d150485970e21d312186f372220f719cd29ff 100644 (file)
@@ -1,7 +1,8 @@
 /** @file\r
   Defines data types and constants introduced in UEFI.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Portions Copyright (c) 2008-2009 Apple Inc.<BR>
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -180,23 +181,28 @@ typedef union {
 ///\r
 /// PE32+ Machine type for IA32 UEFI images\r
 ///\r
-#define EFI_IMAGE_MACHINE_IA32      0x014C\r
+#define EFI_IMAGE_MACHINE_IA32            0x014C\r
 \r
 ///\r
 /// PE32+ Machine type for IA64 UEFI images\r
 ///\r
-#define EFI_IMAGE_MACHINE_IA64      0x0200\r
+#define EFI_IMAGE_MACHINE_IA64            0x0200\r
 \r
 ///\r
 /// PE32+ Machine type for EBC UEFI images\r
 ///\r
-#define EFI_IMAGE_MACHINE_EBC       0x0EBC\r
+#define EFI_IMAGE_MACHINE_EBC             0x0EBC\r
 \r
 ///\r
 /// PE32+ Machine type for X64 UEFI images\r
 ///\r
-#define EFI_IMAGE_MACHINE_X64       0x8664\r
+#define EFI_IMAGE_MACHINE_X64             0x8664\r
 \r
+///
+/// PE32+ Machine type for ARM mixed ARM and Thumb/Thumb2 images
+///
+#define EFI_IMAGE_MACHINE_ARMTHUMB_MIXED  0x01C2
+
 \r
 #if   defined (MDE_CPU_IA32)\r
 \r
@@ -219,6 +225,13 @@ typedef union {
 \r
 #define EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED(Machine) ((Machine) == EFI_IMAGE_MACHINE_IA32) \r
 \r
+#elif defined (MDE_CPU_ARM)
+
+#define EFI_IMAGE_MACHINE_TYPE_SUPPORTED(Machine) \
+  (((Machine) == EFI_IMAGE_MACHINE_ARMTHUMB_MIXED) || ((Machine) == EFI_IMAGE_MACHINE_EBC))
+
+#define EFI_IMAGE_MACHINE_CROSS_TYPE_SUPPORTED(Machine) ((Machine) == EFI_IMAGE_MACHINE_ARMTHUMB_MIXED) 
+
 #elif defined (MDE_CPU_EBC)\r
 \r
 ///\r
index a555350527419d8699e7067dc50547b435fb2b8c..b34978f2f306d390c87328034649a844f5f4a493 100644 (file)
@@ -5,7 +5,8 @@
   If a code construct is defined in the UEFI 2.1 specification it must be included\r
   by this include file.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
+  Portions Copyright (c) 2008-2009 Apple Inc.<BR>
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -2055,6 +2056,7 @@ typedef struct {
 #define EFI_REMOVABLE_MEDIA_FILE_NAME_IA32    L"\\EFI\\BOOT\\BOOTIA32.EFI"\r
 #define EFI_REMOVABLE_MEDIA_FILE_NAME_IA64    L"\\EFI\\BOOT\\BOOTIA64.EFI"\r
 #define EFI_REMOVABLE_MEDIA_FILE_NAME_X64     L"\\EFI\\BOOT\\BOOTX64.EFI"\r
+#define EFI_REMOVABLE_MEDIA_FILE_NAME_ARM     L"\\EFI\\BOOT\\BOOTARM.EFI"
 \r
 #if   defined (MDE_CPU_IA32)\r
   #define EFI_REMOVABLE_MEDIA_FILE_NAME   EFI_REMOVABLE_MEDIA_FILE_NAME_IA32\r
@@ -2063,6 +2065,8 @@ typedef struct {
 #elif defined (MDE_CPU_X64)\r
   #define EFI_REMOVABLE_MEDIA_FILE_NAME   EFI_REMOVABLE_MEDIA_FILE_NAME_X64\r
 #elif defined (MDE_CPU_EBC)\r
+#elif defined (MDE_CPU_ARM)
+  #define EFI_REMOVABLE_MEDIA_FILE_NAME   EFI_REMOVABLE_MEDIA_FILE_NAME_ARM
 #else\r
   #error Unknown Processor Type\r
 #endif\r