]>
Commit | Line | Data |
---|---|---|
9e3f171d RN |
1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2011 - 2015, Intel Corporation. All rights reserved.<BR>\r | |
4 | This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | **/\r | |
13 | \r | |
14 | #ifndef _INTERNAL_LEGACY_BM_H_\r | |
15 | #define _INTERNAL_LEGACY_BM_H_\r | |
16 | \r | |
17 | #include <PiDxe.h>\r | |
18 | #include <Guid/LegacyDevOrder.h>\r | |
19 | #include <Guid/GlobalVariable.h>\r | |
20 | #include <Protocol/LegacyBios.h>\r | |
21 | #include <Protocol/PciRootBridgeIo.h>\r | |
22 | #include <Protocol/PciIo.h>\r | |
23 | #include <Library/BaseLib.h>\r | |
24 | #include <Library/BaseMemoryLib.h>\r | |
25 | #include <Library/DebugLib.h>\r | |
26 | #include <Library/UefiBootServicesTableLib.h>\r | |
27 | #include <Library/UefiRuntimeServicesTableLib.h>\r | |
28 | #include <Library/UefiLib.h>\r | |
29 | #include <Library/DevicePathLib.h>\r | |
30 | #include <Library/UefiBootManagerLib.h>\r | |
31 | #include <Library/MemoryAllocationLib.h>\r | |
32 | #include <Library/PrintLib.h>\r | |
33 | #include <Library/PerformanceLib.h>\r | |
34 | \r | |
35 | #pragma pack(1)\r | |
36 | typedef struct {\r | |
37 | UINT16 BbsIndex;\r | |
38 | } LEGACY_BM_BOOT_OPTION_BBS_DATA;\r | |
39 | #pragma pack()\r | |
40 | \r | |
41 | /**\r | |
42 | Boot the legacy system with the boot option.\r | |
43 | \r | |
44 | @param BootOption The legacy boot option which have BBS device path\r | |
45 | On return, BootOption->Status contains the boot status.\r | |
46 | EFI_UNSUPPORTED There is no legacybios protocol, do not support\r | |
47 | legacy boot.\r | |
48 | EFI_STATUS The status of LegacyBios->LegacyBoot ().\r | |
49 | **/\r | |
50 | VOID\r | |
51 | EFIAPI\r | |
52 | LegacyBmBoot (\r | |
53 | IN EFI_BOOT_MANAGER_LOAD_OPTION *BootOption\r | |
54 | );\r | |
55 | \r | |
56 | /**\r | |
57 | Refresh all legacy boot options.\r | |
58 | \r | |
59 | **/\r | |
60 | VOID\r | |
61 | EFIAPI\r | |
62 | LegacyBmRefreshAllBootOption (\r | |
63 | VOID\r | |
64 | );\r | |
65 | \r | |
66 | #endif // _INTERNAL_LEGACY_BM_H_ |