]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/HttpBootDxe/HttpBootConfig.h
NetworkPkg: Replace BSD License with BSD+Patent License
[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
ecf98fbc 6SPDX-License-Identifier: BSD-2-Clause-Patent\r
fa848a40
FS
7\r
8**/\r
9\r
10#ifndef _HTTP_BOOT_CONFIG_H_\r
11#define _HTTP_BOOT_CONFIG_H_\r
12\r
13\r
14#include "HttpBootConfigNVDataStruc.h"\r
15\r
16typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO;\r
17\r
18extern UINT8 HttpBootDxeStrings[];\r
19extern UINT8 HttpBootConfigVfrBin[];\r
20\r
21#pragma pack()\r
22\r
23#define HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('H', 'B', 'f', 'c')\r
24\r
25#define HTTP_BOOT_FORM_CALLBACK_INFO_FROM_CONFIG_ACCESS(Callback) \\r
26 CR ( \\r
27 Callback, \\r
28 HTTP_BOOT_FORM_CALLBACK_INFO, \\r
29 ConfigAccess, \\r
30 HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE \\r
31 )\r
32\r
33struct _HTTP_BOOT_FORM_CALLBACK_INFO {\r
34 UINT32 Signature;\r
35 BOOLEAN Initilized;\r
36 EFI_HANDLE ChildHandle;\r
37 EFI_DEVICE_PATH_PROTOCOL *HiiVendorDevicePath;\r
38 EFI_HII_HANDLE RegisteredHandle;\r
39 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;\r
40 HTTP_BOOT_CONFIG_IFR_NVDATA HttpBootNvData;\r
41};\r
42\r
43/**\r
44 Initialize the configuration form.\r
45\r
46 @param[in] Private Pointer to the driver private data.\r
47\r
48 @retval EFI_SUCCESS The configuration form is initialized.\r
49 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
50\r
51**/\r
52EFI_STATUS\r
53HttpBootConfigFormInit (\r
54 IN HTTP_BOOT_PRIVATE_DATA *Private\r
55 );\r
56\r
57/**\r
58 Unload the configuration form, this includes: delete all the configuration\r
59 entries, uninstall the form callback protocol, and free the resources used.\r
75372581 60 The form will only be unload completely when both IP4 and IP6 stack are stopped.\r
fa848a40
FS
61\r
62 @param[in] Private Pointer to the driver private data.\r
63\r
64 @retval EFI_SUCCESS The configuration form is unloaded.\r
65 @retval Others Failed to unload the form.\r
66\r
67**/\r
68EFI_STATUS\r
69HttpBootConfigFormUnload (\r
70 IN HTTP_BOOT_PRIVATE_DATA *Private\r
71 );\r
72\r
73#endif\r