]> code.delx.au - refind/blobdiff - EfiLib/BdsHelper.h
Fixed uninitialized-pointer bug that manifested as a crash with
[refind] / EfiLib / BdsHelper.h
index 6739b85816ef5ab1b236804e8cef72ddd6d6af35..20344a1bf2b8a42bae532b51b844087ed8f69408 100644 (file)
@@ -3,20 +3,28 @@
  * Functions to call legacy BIOS API.
  *
  */
+/**
 
-#include "../include/tiano_includes.h"
+Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>
+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_