X-Git-Url: https://code.delx.au/refind/blobdiff_plain/35c7b1041c43abf31924dcf70c55f79b05fd9216..c63e9bd427f945b881d337b9fd5d3ff8612f103f:/EfiLib/BdsHelper.h diff --git a/EfiLib/BdsHelper.h b/EfiLib/BdsHelper.h index 6739b85..20344a1 100644 --- a/EfiLib/BdsHelper.h +++ b/EfiLib/BdsHelper.h @@ -3,20 +3,28 @@ * Functions to call legacy BIOS API. * */ +/** -#include "../include/tiano_includes.h" +Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.
+This program and the accompanying materials +are licensed and made available under the terms and conditions of the BSD License +which accompanies this distribution. The full text of the license may be found at +http://opensource.org/licenses/bsd-license.php -#ifndef _BDS_HELPER_H_ -#define _BDS_HELPER_H_ +THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, +WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -//TODO: may want to make this configurable via config file -static UINT16 SupportedLegacyDevices[] = {BBS_HARDDISK, BBS_CDROM, BBS_USB}; +**/ +#ifdef __MAKEWITH_TIANO +#include "../include/tiano_includes.h" +#else +#include "gnuefi-helper.h" +#include "GenericBdsLib.h" +#endif -/** - True if the DeviceType is supported by rEFInd, false otherwise. -*/ -BOOLEAN IsBbsDeviceTypeSupported(UINT16 DeviceType); +#ifndef _BDS_HELPER_H_ +#define _BDS_HELPER_H_ /** @@ -34,4 +42,9 @@ BdsLibDoLegacyBoot ( IN BDS_COMMON_OPTION *Option ); +EFI_STATUS BdsConnectDevicePath ( IN EFI_DEVICE_PATH_PROTOCOL * DevicePath, + OUT EFI_HANDLE * Handle, + OUT EFI_DEVICE_PATH_PROTOCOL ** RemainingDevicePath +); + #endif //_BDS_HELPER_H_