]>
Commit | Line | Data |
---|---|---|
fa848a40 FS |
1 | /** @file\r |
2 | The header file of functions for configuring or getting the parameters\r | |
3 | relating to HTTP Boot.\r | |
4 | \r | |
5 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
6 | This program and the accompanying materials\r | |
7 | are licensed and made available under the terms and conditions of the BSD License\r | |
8 | which accompanies this distribution. The full text of the license may be found at\r | |
9 | http://opensource.org/licenses/bsd-license.php\r | |
10 | \r | |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
13 | \r | |
14 | **/\r | |
15 | \r | |
16 | #ifndef _HTTP_BOOT_CONFIG_H_\r | |
17 | #define _HTTP_BOOT_CONFIG_H_\r | |
18 | \r | |
19 | \r | |
20 | #include "HttpBootConfigNVDataStruc.h"\r | |
21 | \r | |
22 | typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO;\r | |
23 | \r | |
24 | extern UINT8 HttpBootDxeStrings[];\r | |
25 | extern UINT8 HttpBootConfigVfrBin[];\r | |
26 | \r | |
27 | #pragma pack()\r | |
28 | \r | |
29 | #define HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('H', 'B', 'f', 'c')\r | |
30 | \r | |
31 | #define HTTP_BOOT_FORM_CALLBACK_INFO_FROM_CONFIG_ACCESS(Callback) \\r | |
32 | CR ( \\r | |
33 | Callback, \\r | |
34 | HTTP_BOOT_FORM_CALLBACK_INFO, \\r | |
35 | ConfigAccess, \\r | |
36 | HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE \\r | |
37 | )\r | |
38 | \r | |
39 | struct _HTTP_BOOT_FORM_CALLBACK_INFO {\r | |
40 | UINT32 Signature;\r | |
41 | BOOLEAN Initilized;\r | |
42 | EFI_HANDLE ChildHandle;\r | |
43 | EFI_DEVICE_PATH_PROTOCOL *HiiVendorDevicePath;\r | |
44 | EFI_HII_HANDLE RegisteredHandle;\r | |
45 | EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;\r | |
46 | HTTP_BOOT_CONFIG_IFR_NVDATA HttpBootNvData;\r | |
47 | };\r | |
48 | \r | |
49 | /**\r | |
50 | Initialize the configuration form.\r | |
51 | \r | |
52 | @param[in] Private Pointer to the driver private data.\r | |
53 | \r | |
54 | @retval EFI_SUCCESS The configuration form is initialized.\r | |
55 | @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r | |
56 | \r | |
57 | **/\r | |
58 | EFI_STATUS\r | |
59 | HttpBootConfigFormInit (\r | |
60 | IN HTTP_BOOT_PRIVATE_DATA *Private\r | |
61 | );\r | |
62 | \r | |
63 | /**\r | |
64 | Unload the configuration form, this includes: delete all the configuration\r | |
65 | entries, uninstall the form callback protocol, and free the resources used.\r | |
66 | \r | |
67 | @param[in] Private Pointer to the driver private data.\r | |
68 | \r | |
69 | @retval EFI_SUCCESS The configuration form is unloaded.\r | |
70 | @retval Others Failed to unload the form.\r | |
71 | \r | |
72 | **/\r | |
73 | EFI_STATUS\r | |
74 | HttpBootConfigFormUnload (\r | |
75 | IN HTTP_BOOT_PRIVATE_DATA *Private\r | |
76 | );\r | |
77 | \r | |
78 | #endif\r |