]> code.delx.au - refind/blob - EfiLib/BdsHelper.h
New files to support legacy BIOS boots on UEFI-based PCs
[refind] / EfiLib / BdsHelper.h
1 /*
2 * EfiLib/BdsHelper.c
3 * Functions to call legacy BIOS API.
4 *
5 */
6
7 #include "../include/tiano_includes.h"
8
9 #ifndef _BDS_HELPER_H_
10 #define _BDS_HELPER_H_
11
12 //TODO: may want to make this configurable via config file
13 static UINT16 SupportedLegacyDevices[] = {BBS_HARDDISK, BBS_CDROM, BBS_USB};
14
15
16 /**
17 True if the DeviceType is supported by rEFInd, false otherwise.
18 */
19 BOOLEAN IsBbsDeviceTypeSupported(UINT16 DeviceType);
20
21
22 /**
23 Boot the legacy system with the boot option
24
25 @param Option The legacy boot option which have BBS device path
26
27 @retval EFI_UNSUPPORTED There is no legacybios protocol, do not support
28 legacy boot.
29 @retval EFI_STATUS Return the status of LegacyBios->LegacyBoot ().
30
31 **/
32 EFI_STATUS
33 BdsLibDoLegacyBoot (
34 IN BDS_COMMON_OPTION *Option
35 );
36
37 #endif //_BDS_HELPER_H_