]>
git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.h
2 declares interface functions
4 Copyright (c) 2004 - 2008, Intel Corporation. <BR>
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _EFI_BDS_BBS_SUPPORT_H_
16 #define _EFI_BDS_BBS_SUPPORT_H_
18 #include "BootMaint.h"
20 #define MAX_BBS_ENTRIES 0x100
23 Build Legacy Device Name String according.
25 @param CurBBSEntry BBS Table.
27 @param BufSize The buffer size.
28 @param BootString The output string.
30 @return VOID No output.
34 BdsBuildLegacyDevNameString (
35 IN BBS_TABLE
*CurBBSEntry
,
38 OUT CHAR16
*BootString
42 Delete all the invalid legacy boot options.
46 @retval EFI_SUCCESS All invalide legacy boot options are deleted.
47 @retval EFI_OUT_OF_RESOURCES Fail to allocate necessary memory.
48 @retval EFI_NOT_FOUND Fail to retrive variable of boot order.
51 BdsDeleteAllInvalidLegacyBootOptions (
57 Add the legacy boot options from BBS table if they do not exist.
59 @retval EFI_SUCCESS The boot options are added successfully or they are already in boot options.
60 @retval others An error occurred when creating legacy boot options.
64 BdsAddNonExistingLegacyBootOptions (
70 Add the legacy boot devices from BBS table into
71 the legacy device boot order.
73 @retval EFI_SUCCESS The boot devices are added successfully.
77 BdsUpdateLegacyDevOrder (
82 Set the boot priority for BBS entries based on boot option entry and boot order.
84 @param Entry The boot option is to be checked for refresh BBS table.
86 @retval EFI_SUCCESS The boot priority for BBS entries is refreshed successfully.
87 @return status of BdsSetBootPriority4SameTypeDev()
90 BdsRefreshBbsTableForBoot (
91 IN BDS_COMMON_OPTION
*Entry