]>
Commit | Line | Data |
---|---|---|
52657feb | 1 | /*++\r |
2 | \r | |
59e9a365 | 3 | Copyright (c) 2006 - 2007, Intel Corporation \r |
52657feb | 4 | All rights reserved. This program and the accompanying materials \r |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | BBSsupport.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | declares interface functions\r | |
19 | \r | |
20 | Revision 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 | |
38 | VOID\r | |
39 | BdsBuildLegacyDevNameString (\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 | |
46 | EFI_STATUS\r | |
47 | BdsDeleteAllInvalidLegacyBootOptions (\r | |
48 | VOID\r | |
49 | );\r | |
50 | \r | |
51 | EFI_STATUS\r | |
52 | BdsAddNonExistingLegacyBootOptions (\r | |
53 | VOID\r | |
54 | )\r | |
55 | /*++\r | |
56 | \r | |
57 | Routine Description:\r | |
58 | \r | |
59 | Add the legacy boot options from BBS table if they do not exist.\r | |
60 | \r | |
61 | Arguments:\r | |
62 | \r | |
63 | None.\r | |
64 | \r | |
65 | Returns:\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 | |
73 | EFI_STATUS\r | |
74 | BdsUpdateLegacyDevOrder (\r | |
75 | VOID\r | |
76 | );\r | |
77 | \r | |
78 | EFI_STATUS\r | |
79 | BdsRefreshBbsTableForBoot (\r | |
80 | IN BDS_COMMON_OPTION *Entry\r | |
81 | );\r | |
82 | \r | |
83 | #endif\r |