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