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