]> git.proxmox.com Git - mirror_edk2.git/blob - Nt32Pkg/PlatformBdsDxe/Generic/BootMaint/BBSsupport.h
add in PlatformBds.inf
[mirror_edk2.git] / Nt32Pkg / PlatformBdsDxe / Generic / BootMaint / BBSsupport.h
1 /*++
2
3 Copyright (c) 2006 - 2007, 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 //
28 // Include common header file for this module.
29 //
30 #include "CommonHeader.h"
31
32 #include "Generic/BootMaint/BootMaint.h"
33
34 #if defined (MDE_CPU_IA32)
35 #define REFRESH_LEGACY_BOOT_OPTIONS \
36 BdsDeleteAllInvalidLegacyBootOptions ();\
37 BdsAddNonExistingLegacyBootOptions (); \
38 BdsUpdateLegacyDevOrder ()
39 #else
40 #define REFRESH_LEGACY_BOOT_OPTIONS
41 #endif
42
43 VOID
44 BdsBuildLegacyDevNameString (
45 IN BBS_TABLE *CurBBSEntry,
46 IN UINTN Index,
47 IN UINTN BufSize,
48 OUT CHAR16 *BootString
49 );
50
51 EFI_STATUS
52 BdsDeleteAllInvalidLegacyBootOptions (
53 VOID
54 );
55
56 EFI_STATUS
57 BdsAddNonExistingLegacyBootOptions (
58 VOID
59 )
60 /*++
61
62 Routine Description:
63
64 Add the legacy boot options from BBS table if they do not exist.
65
66 Arguments:
67
68 None.
69
70 Returns:
71
72 EFI_SUCCESS - The boot options are added successfully or they are already in boot options.
73 others - An error occurred when creating legacy boot options.
74
75 --*/
76 ;
77
78 EFI_STATUS
79 BdsUpdateLegacyDevOrder (
80 VOID
81 );
82
83 EFI_STATUS
84 BdsRefreshBbsTableForBoot (
85 IN BDS_COMMON_OPTION *Entry
86 );
87
88 #endif