X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FBds%2FBdsInternal.h;fp=ArmPlatformPkg%2FBds%2FBdsInternal.h;h=ddf5308e8b234d7ff5a75a5c8b823f5bd66a4358;hp=fe4fd79289529ca194e1f1cd5f6f6be49e1bdd11;hb=5d9e9d1a1c0aac8d3a1f60be50b2f504dac8d761;hpb=a81ccae41acfb4905d9b06c1f3223d43226c0152 diff --git a/ArmPlatformPkg/Bds/BdsInternal.h b/ArmPlatformPkg/Bds/BdsInternal.h index fe4fd79289..ddf5308e8b 100644 --- a/ArmPlatformPkg/Bds/BdsInternal.h +++ b/ArmPlatformPkg/Bds/BdsInternal.h @@ -1,6 +1,6 @@ /** @file * -* Copyright (c) 2011-2014, ARM Limited. All rights reserved. +* Copyright (c) 2011-2015, ARM Limited. All rights reserved. * * This program and the accompanying materials * are licensed and made available under the terms and conditions of the BSD License @@ -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) #define LOAD_OPTION_FROM_LINK(a) ((BDS_LOAD_OPTION_ENTRY*)BASE_CR(a, BDS_LOAD_OPTION_ENTRY, Link))->BdsLoadOption +// GUID of the EFI Linux Loader +extern CONST EFI_GUID mLinuxLoaderAppGuid; + +// Device path of the EFI Linux Loader in the Firmware Volume +extern EFI_DEVICE_PATH* mLinuxLoaderDevicePath; + EFI_STATUS BootDeviceListSupportedInit ( IN OUT LIST_ENTRY *SupportedDeviceList @@ -141,11 +147,6 @@ GetHIInputBoolean ( OUT BOOLEAN *Value ); -BOOLEAN -HasFilePathEfiExtension ( - IN CHAR16* FilePath - ); - EFI_DEVICE_PATH* GetLastDevicePathNode ( IN EFI_DEVICE_PATH* DevicePath @@ -260,4 +261,17 @@ EmptyCallbackFunction ( IN VOID *Context ); +/** + * This function check if the DevicePath defines an EFI binary + * + * This function is used when the BDS support Linux loader to + * detect if the binary is an EFI application or potentially a + * Linux kernel. + */ +EFI_STATUS +IsEfiBinary ( + IN EFI_DEVICE_PATH* DevicePath, + OUT BOOLEAN *EfiBinary + ); + #endif /* _BDSINTERNAL_H_ */