]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Library/LegacyBootManagerLib/InternalLegacyBm.h
IntelFrameworkModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / LegacyBootManagerLib / InternalLegacyBm.h
CommitLineData
9e3f171d
RN
1/** @file\r
2\r
0a6f4824 3Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>\r
c0a00b14 4SPDX-License-Identifier: BSD-2-Clause-Patent\r
9e3f171d
RN
5\r
6**/\r
7\r
8#ifndef _INTERNAL_LEGACY_BM_H_\r
9#define _INTERNAL_LEGACY_BM_H_\r
10\r
11#include <PiDxe.h>\r
12#include <Guid/LegacyDevOrder.h>\r
13#include <Guid/GlobalVariable.h>\r
14#include <Protocol/LegacyBios.h>\r
15#include <Protocol/PciRootBridgeIo.h>\r
16#include <Protocol/PciIo.h>\r
17#include <Library/BaseLib.h>\r
18#include <Library/BaseMemoryLib.h>\r
19#include <Library/DebugLib.h>\r
20#include <Library/UefiBootServicesTableLib.h>\r
21#include <Library/UefiRuntimeServicesTableLib.h>\r
22#include <Library/UefiLib.h>\r
23#include <Library/DevicePathLib.h>\r
24#include <Library/UefiBootManagerLib.h>\r
25#include <Library/MemoryAllocationLib.h>\r
26#include <Library/PrintLib.h>\r
27#include <Library/PerformanceLib.h>\r
28\r
29#pragma pack(1)\r
30typedef struct {\r
31 UINT16 BbsIndex;\r
32} LEGACY_BM_BOOT_OPTION_BBS_DATA;\r
33#pragma pack()\r
34\r
35/**\r
36 Boot the legacy system with the boot option.\r
37\r
38 @param BootOption The legacy boot option which have BBS device path\r
39 On return, BootOption->Status contains the boot status.\r
40 EFI_UNSUPPORTED There is no legacybios protocol, do not support\r
41 legacy boot.\r
42 EFI_STATUS The status of LegacyBios->LegacyBoot ().\r
43**/\r
44VOID\r
45EFIAPI\r
46LegacyBmBoot (\r
47 IN EFI_BOOT_MANAGER_LOAD_OPTION *BootOption\r
48 );\r
49\r
50/**\r
51 Refresh all legacy boot options.\r
52\r
53**/\r
54VOID\r
55EFIAPI\r
56LegacyBmRefreshAllBootOption (\r
57 VOID\r
58 );\r
59\r
0a6f4824 60#endif // _INTERNAL_LEGACY_BM_H_\r