]>
Commit | Line | Data |
---|---|---|
fd6a62f3 | 1 | /** @file\r |
2 | declares interface functions\r | |
93e3992d | 3 | \r |
fd6a62f3 | 4 | Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r |
93e3992d | 5 | All rights reserved. This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
fd6a62f3 | 13 | **/\r |
93e3992d | 14 | \r |
744fc758 | 15 | #ifndef _EFI_BDS_BBS_SUPPORT_H_\r |
16 | #define _EFI_BDS_BBS_SUPPORT_H_\r | |
93e3992d | 17 | \r |
18 | #include "BootMaint.h"\r | |
744fc758 | 19 | \r |
dce655e8 | 20 | #define MAX_BBS_ENTRIES 0x100\r |
21 | \r | |
b30312ba | 22 | /**\r |
744fc758 | 23 | Build Legacy Device Name String according.\r |
b30312ba | 24 | \r |
744fc758 | 25 | @param CurBBSEntry BBS Table.\r |
26 | @param Index Index.\r | |
27 | @param BufSize The buffer size.\r | |
28 | @param BootString The output string.\r | |
b30312ba | 29 | \r |
744fc758 | 30 | @return VOID No output.\r |
b30312ba | 31 | \r |
32 | **/\r | |
93e3992d | 33 | VOID\r |
34 | BdsBuildLegacyDevNameString (\r | |
35 | IN BBS_TABLE *CurBBSEntry,\r | |
36 | IN UINTN Index,\r | |
37 | IN UINTN BufSize,\r | |
38 | OUT CHAR16 *BootString\r | |
39 | );\r | |
40 | \r | |
b30312ba | 41 | /**\r |
744fc758 | 42 | Delete all the invalid legacy boot options.\r |
b30312ba | 43 | \r |
744fc758 | 44 | \r |
b30312ba | 45 | \r |
744fc758 | 46 | @retval EFI_SUCCESS All invalide legacy boot options are deleted.\r |
47 | @retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.\r | |
48 | @retval EFI_NOT_FOUND Fail to retrive variable of boot order.\r | |
b30312ba | 49 | **/\r |
93e3992d | 50 | EFI_STATUS\r |
51 | BdsDeleteAllInvalidLegacyBootOptions (\r | |
52 | VOID\r | |
53 | );\r | |
54 | \r | |
b30312ba | 55 | /**\r |
93e3992d | 56 | \r |
57 | Add the legacy boot options from BBS table if they do not exist.\r | |
58 | \r | |
b30312ba | 59 | @retval EFI_SUCCESS The boot options are added successfully or they are already in boot options.\r |
60 | @retval others An error occurred when creating legacy boot options.\r | |
93e3992d | 61 | \r |
b30312ba | 62 | **/\r |
63 | EFI_STATUS\r | |
64 | BdsAddNonExistingLegacyBootOptions (\r | |
65 | VOID\r | |
ed66e1bc | 66 | );\r |
93e3992d | 67 | \r |
b30312ba | 68 | /**\r |
b30312ba | 69 | \r |
744fc758 | 70 | Add the legacy boot devices from BBS table into \r |
71 | the legacy device boot order.\r | |
b30312ba | 72 | \r |
744fc758 | 73 | @retval EFI_SUCCESS The boot devices are added successfully.\r |
b30312ba | 74 | \r |
75 | **/\r | |
93e3992d | 76 | EFI_STATUS\r |
77 | BdsUpdateLegacyDevOrder (\r | |
78 | VOID\r | |
79 | );\r | |
80 | \r | |
b30312ba | 81 | /**\r |
744fc758 | 82 | Set the boot priority for BBS entries based on boot option entry and boot order.\r |
b30312ba | 83 | \r |
744fc758 | 84 | @param Entry The boot option is to be checked for refresh BBS table.\r |
85 | \r | |
86 | @retval EFI_SUCCESS The boot priority for BBS entries is refreshed successfully.\r | |
30394aa1 | 87 | @return status of BdsSetBootPriority4SameTypeDev()\r |
b30312ba | 88 | **/\r |
93e3992d | 89 | EFI_STATUS\r |
90 | BdsRefreshBbsTableForBoot (\r | |
91 | IN BDS_COMMON_OPTION *Entry\r | |
92 | );\r | |
93 | \r | |
94 | #endif\r |