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