]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h
Clean up BootMaint module in BdsDxe.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / BootMaint / BBSsupport.h
CommitLineData
fd6a62f3 1/** @file\r
2 declares interface functions\r
93e3992d 3\r
fd6a62f3 4Copyright (c) 2004 - 2008, Intel Corporation. <BR>\r
93e3992d 5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
fd6a62f3 13**/\r
93e3992d 14\r
15#ifndef _EFI_BDS_BBS_SUPPORT_H\r
16#define _EFI_BDS_BBS_SUPPORT_H\r
17\r
18#include "BootMaint.h"\r
19//\r
20// Bugbug: Candidate for a PCD entries\r
21//\r
dce655e8 22#define MAX_BBS_ENTRIES 0x100\r
23\r
b30312ba 24/**\r
a78b08d1 25 EDES_TODO: Add function description.\r
b30312ba 26\r
27 @param CurBBSEntry EDES_TODO: Add parameter description\r
28 @param Index EDES_TODO: Add parameter description\r
29 @param BufSize EDES_TODO: Add parameter description\r
30 @param BootString EDES_TODO: Add parameter description\r
31\r
32 @return EDES_TODO: Add description for return value\r
33\r
34**/\r
93e3992d 35VOID\r
36BdsBuildLegacyDevNameString (\r
37 IN BBS_TABLE *CurBBSEntry,\r
38 IN UINTN Index,\r
39 IN UINTN BufSize,\r
40 OUT CHAR16 *BootString\r
41 );\r
42\r
b30312ba 43/**\r
a78b08d1 44 EDES_TODO: Add function description.\r
b30312ba 45\r
46 @param VOID EDES_TODO: Add parameter description\r
47\r
48 @return EDES_TODO: Add description for return value\r
49\r
50**/\r
93e3992d 51EFI_STATUS\r
52BdsDeleteAllInvalidLegacyBootOptions (\r
53 VOID\r
54 );\r
55\r
b30312ba 56/**\r
93e3992d 57\r
58 Add the legacy boot options from BBS table if they do not exist.\r
59\r
93e3992d 60\r
b30312ba 61 @param VOID EDES_TODO: Add parameter description\r
93e3992d 62\r
b30312ba 63 @retval EFI_SUCCESS The boot options are added successfully or they are already in boot options.\r
64 @retval others An error occurred when creating legacy boot options.\r
93e3992d 65\r
b30312ba 66**/\r
67EFI_STATUS\r
68BdsAddNonExistingLegacyBootOptions (\r
69 VOID\r
70 )\r
93e3992d 71;\r
72\r
b30312ba 73/**\r
a78b08d1 74 EDES_TODO: Add function description.\r
b30312ba 75\r
76 @param VOID EDES_TODO: Add parameter description\r
77\r
78 @return EDES_TODO: Add description for return value\r
79\r
80**/\r
93e3992d 81EFI_STATUS\r
82BdsUpdateLegacyDevOrder (\r
83 VOID\r
84 );\r
85\r
b30312ba 86/**\r
a78b08d1 87 EDES_TODO: Add function description.\r
b30312ba 88\r
89 @param Entry EDES_TODO: Add parameter description\r
90\r
91 @return EDES_TODO: Add description for return value\r
92\r
93**/\r
93e3992d 94EFI_STATUS\r
95BdsRefreshBbsTableForBoot (\r
96 IN BDS_COMMON_OPTION *Entry\r
97 );\r
98\r
99#endif\r