]> code.delx.au - refind/blob - EfiLib/BdsHelper.h
Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / EfiLib / BdsHelper.h
1 /*
2 * EfiLib/BdsHelper.c
3 * Functions to call legacy BIOS API.
4 *
5 */
6 /**
7
8 Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
9 This program and the accompanying materials
10 are licensed and made available under the terms and conditions of the BSD License
11 which accompanies this distribution. The full text of the license may be found at
12 http://opensource.org/licenses/bsd-license.php
13
14 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
15 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16
17 **/
18
19 #ifdef __MAKEWITH_TIANO
20 #include "../include/tiano_includes.h"
21 #else
22 #include "gnuefi-helper.h"
23 #include "GenericBdsLib.h"
24 #endif
25
26 #ifndef _BDS_HELPER_H_
27 #define _BDS_HELPER_H_
28
29
30 /**
31 Boot the legacy system with the boot option
32
33 @param Option The legacy boot option which have BBS device path
34
35 @retval EFI_UNSUPPORTED There is no legacybios protocol, do not support
36 legacy boot.
37 @retval EFI_STATUS Return the status of LegacyBios->LegacyBoot ().
38
39 **/
40 EFI_STATUS
41 BdsLibDoLegacyBoot (
42 IN BDS_COMMON_OPTION *Option
43 );
44
45 EFI_STATUS BdsConnectDevicePath ( IN EFI_DEVICE_PATH_PROTOCOL * DevicePath,
46 OUT EFI_HANDLE * Handle,
47 OUT EFI_DEVICE_PATH_PROTOCOL ** RemainingDevicePath
48 );
49
50 #endif //_BDS_HELPER_H_