]> git.proxmox.com Git - mirror_edk2.git/blame - IntelFrameworkModulePkg/Universal/BdsDxe/BootMngr/BootManager.h
Update the copyright notice format
[mirror_edk2.git] / IntelFrameworkModulePkg / Universal / BdsDxe / BootMngr / BootManager.h
CommitLineData
5c08e117 1/** @file\r
2 The platform boot manager reference implement\r
3\r
180a5a35
HT
4Copyright (c) 2004 - 2008, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
5c08e117 6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _EFI_BOOT_MANAGER_H_\r
16#define _EFI_BOOT_MANAGER_H_\r
17\r
18#include "Bds.h"\r
19#include "FrontPage.h"\r
20\r
21//\r
22// These are defined as the same with vfr file\r
23//\r
24#define BOOT_MANAGER_FORMSET_GUID \\r
25 { \\r
26 0x847bc3fe, 0xb974, 0x446d, {0x94, 0x49, 0x5a, 0xd5, 0x41, 0x2e, 0x99, 0x3b} \\r
27 }\r
28\r
29#define BOOT_MANAGER_FORM_ID 0x1000\r
30\r
31#define LABEL_BOOT_OPTION 0x00\r
75bf9d0e 32#define LABEL_BOOT_OPTION_END 0x01\r
5c08e117 33\r
34//\r
35// These are the VFR compiler generated data representing our VFR data.\r
36//\r
37extern UINT8 BootManagerVfrBin[];\r
38\r
39#define BOOT_MANAGER_CALLBACK_DATA_SIGNATURE SIGNATURE_32 ('B', 'M', 'C', 'B')\r
40\r
41typedef struct {\r
42 UINTN Signature;\r
43\r
44 //\r
45 // HII relative handles\r
46 //\r
47 EFI_HII_HANDLE HiiHandle;\r
48 EFI_HANDLE DriverHandle;\r
49\r
50 //\r
51 // Produced protocols\r
52 //\r
53 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;\r
54} BOOT_MANAGER_CALLBACK_DATA;\r
55\r
56/**\r
baf46e70 57 This call back function is registered with Boot Manager formset.\r
5c08e117 58 When user selects a boot option, this call back function will\r
59 be triggered. The boot option is saved for later processing.\r
60\r
61\r
62 @param This Points to the EFI_HII_CONFIG_ACCESS_PROTOCOL.\r
63 @param Action Specifies the type of action taken by the browser.\r
64 @param QuestionId A unique value which is sent to the original exporting driver\r
65 so that it can identify the type of data to expect.\r
66 @param Type The type of value for the question.\r
67 @param Value A pointer to the data being sent to the original exporting driver.\r
68 @param ActionRequest On return, points to the action requested by the callback function.\r
69\r
70 @retval EFI_SUCCESS The callback successfully handled the action.\r
71 @retval EFI_INVALID_PARAMETER The setup browser call this function with invalid parameters.\r
72\r
73**/\r
74EFI_STATUS\r
75EFIAPI\r
76BootManagerCallback (\r
77 IN CONST EFI_HII_CONFIG_ACCESS_PROTOCOL *This,\r
78 IN EFI_BROWSER_ACTION Action,\r
79 IN EFI_QUESTION_ID QuestionId,\r
80 IN UINT8 Type,\r
81 IN EFI_IFR_TYPE_VALUE *Value,\r
82 OUT EFI_BROWSER_ACTION_REQUEST *ActionRequest\r
83 );\r
84\r
85/**\r
86\r
87 Registers HII packages for the Boot Manger to HII Database.\r
88 It also registers the browser call back function.\r
89\r
cb7d01c0 90 @retval EFI_SUCCESS HII packages for the Boot Manager were registered successfully.\r
91 @retval EFI_OUT_OF_RESOURCES HII packages for the Boot Manager failed to be registered.\r
92\r
5c08e117 93**/\r
94EFI_STATUS\r
95InitializeBootManager (\r
96 VOID\r
97 );\r
98\r
99/**\r
baf46e70 100 This function invokes Boot Manager. If all devices have not a chance to be connected,\r
5c08e117 101 the connect all will be triggered. It then enumerate all boot options. If \r
102 a boot option from the Boot Manager page is selected, Boot Manager will boot\r
103 from this boot option.\r
104 \r
105**/\r
106VOID\r
107CallBootManager (\r
108 VOID\r
109 );\r
110\r
111#endif\r