]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPlatformPkg/Bds/BdsInternal.h
ArmPlatformPkg/Bds: Added support for booting legacy kernel from BDS
[mirror_edk2.git] / ArmPlatformPkg / Bds / BdsInternal.h
index fe4fd79289529ca194e1f1cd5f6f6be49e1bdd11..ddf5308e8b234d7ff5a75a5c8b823f5bd66a4358 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 *\r
-*  Copyright (c) 2011-2014, ARM Limited. All rights reserved.\r
+*  Copyright (c) 2011-2015, ARM Limited. All rights reserved.\r
 *\r
 *  This program and the accompanying materials\r
 *  are licensed and made available under the terms and conditions of the BSD License\r
@@ -79,6 +79,12 @@ typedef struct _BDS_LOAD_OPTION_SUPPORT {
 #define LOAD_OPTION_ENTRY_FROM_LINK(a)  BASE_CR(a, BDS_LOAD_OPTION_ENTRY, Link)\r
 #define LOAD_OPTION_FROM_LINK(a)        ((BDS_LOAD_OPTION_ENTRY*)BASE_CR(a, BDS_LOAD_OPTION_ENTRY, Link))->BdsLoadOption\r
 \r
+// GUID of the EFI Linux Loader\r
+extern CONST EFI_GUID mLinuxLoaderAppGuid;\r
+\r
+// Device path of the EFI Linux Loader in the Firmware Volume\r
+extern EFI_DEVICE_PATH* mLinuxLoaderDevicePath;\r
+\r
 EFI_STATUS\r
 BootDeviceListSupportedInit (\r
   IN OUT LIST_ENTRY *SupportedDeviceList\r
@@ -141,11 +147,6 @@ GetHIInputBoolean (
   OUT BOOLEAN *Value\r
   );\r
 \r
-BOOLEAN\r
-HasFilePathEfiExtension (\r
-  IN CHAR16* FilePath\r
-  );\r
-\r
 EFI_DEVICE_PATH*\r
 GetLastDevicePathNode (\r
   IN EFI_DEVICE_PATH*  DevicePath\r
@@ -260,4 +261,17 @@ EmptyCallbackFunction (
   IN VOID                     *Context\r
   );\r
 \r
+/**\r
+ * This function check if the DevicePath defines an EFI binary\r
+ *\r
+ * This function is used when the BDS support Linux loader to\r
+ * detect if the binary is an EFI application or potentially a\r
+ * Linux kernel.\r
+ */\r
+EFI_STATUS\r
+IsEfiBinary (\r
+  IN  EFI_DEVICE_PATH* DevicePath,\r
+  OUT BOOLEAN          *EfiBinary\r
+  );\r
+\r
 #endif /* _BDSINTERNAL_H_ */\r