]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/HttpBootDxe/HttpBootConfig.h
BaseTools/Capsule: Do not support -o with --dump-info
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfig.h
CommitLineData
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
5Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
6This program and the accompanying materials\r
7are licensed and made available under the terms and conditions of the BSD License\r
8which accompanies this distribution. The full text of the license may be found at\r
9http://opensource.org/licenses/bsd-license.php\r
10\r
11THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12WITHOUT 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
22typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO;\r
23\r
24extern UINT8 HttpBootDxeStrings[];\r
25extern 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
39struct _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
58EFI_STATUS\r
59HttpBootConfigFormInit (\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
75372581 66 The form will only be unload completely when both IP4 and IP6 stack are stopped.\r
fa848a40
FS
67\r
68 @param[in] Private Pointer to the driver private data.\r
69\r
70 @retval EFI_SUCCESS The configuration form is unloaded.\r
71 @retval Others Failed to unload the form.\r
72\r
73**/\r
74EFI_STATUS\r
75HttpBootConfigFormUnload (\r
76 IN HTTP_BOOT_PRIVATE_DATA *Private\r
77 );\r
78\r
79#endif\r