]> git.proxmox.com Git - mirror_edk2.git/blob - EdkModulePkg/Library/EdkGenericPlatformBdsLib/BootMaint/BBSsupport.h
EdkGenericPlatformBdsLib added
[mirror_edk2.git] / EdkModulePkg / Library / EdkGenericPlatformBdsLib / BootMaint / BBSsupport.h
1 /*++
2
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 Module Name:
13
14 BBSsupport.h
15
16 Abstract:
17
18 declares interface functions
19
20 Revision History
21
22 --*/
23
24 #ifndef _EFI_BDS_BBS_SUPPORT_H
25 #define _EFI_BDS_BBS_SUPPORT_H
26
27 #include "BootMaint/BootMaint.h"
28
29 #ifdef EFI32
30 #define REFRESH_LEGACY_BOOT_OPTIONS \
31 BdsDeleteAllInvalidLegacyBootOptions ();\
32 BdsAddNonExistingLegacyBootOptions (); \
33 BdsUpdateLegacyDevOrder ()
34 #else
35 #define REFRESH_LEGACY_BOOT_OPTIONS
36 #endif
37
38 VOID
39 BdsBuildLegacyDevNameString (
40 IN BBS_TABLE *CurBBSEntry,
41 IN UINTN Index,
42 IN UINTN BufSize,
43 OUT CHAR16 *BootString
44 );
45
46 EFI_STATUS
47 BdsDeleteAllInvalidLegacyBootOptions (
48 VOID
49 );
50
51 EFI_STATUS
52 BdsAddNonExistingLegacyBootOptions (
53 VOID
54 )
55 /*++
56
57 Routine Description:
58
59 Add the legacy boot options from BBS table if they do not exist.
60
61 Arguments:
62
63 None.
64
65 Returns:
66
67 EFI_SUCCESS - The boot options are added successfully or they are already in boot options.
68 others - An error occurred when creating legacy boot options.
69
70 --*/
71 ;
72
73 EFI_STATUS
74 BdsUpdateLegacyDevOrder (
75 VOID
76 );
77
78 EFI_STATUS
79 BdsRefreshBbsTableForBoot (
80 IN BDS_COMMON_OPTION *Entry
81 );
82
83 #endif