2 The header file of functions for configuring or getting the parameters
5 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #ifndef _HTTP_BOOT_CONFIG_H_
11 #define _HTTP_BOOT_CONFIG_H_
14 #include "HttpBootConfigNVDataStruc.h"
16 typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO
;
18 extern UINT8 HttpBootDxeStrings
[];
19 extern UINT8 HttpBootConfigVfrBin
[];
23 #define HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('H', 'B', 'f', 'c')
25 #define HTTP_BOOT_FORM_CALLBACK_INFO_FROM_CONFIG_ACCESS(Callback) \
28 HTTP_BOOT_FORM_CALLBACK_INFO, \
30 HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE \
33 struct _HTTP_BOOT_FORM_CALLBACK_INFO
{
36 EFI_HANDLE ChildHandle
;
37 EFI_DEVICE_PATH_PROTOCOL
*HiiVendorDevicePath
;
38 EFI_HII_HANDLE RegisteredHandle
;
39 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess
;
40 HTTP_BOOT_CONFIG_IFR_NVDATA HttpBootNvData
;
44 Initialize the configuration form.
46 @param[in] Private Pointer to the driver private data.
48 @retval EFI_SUCCESS The configuration form is initialized.
49 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
53 HttpBootConfigFormInit (
54 IN HTTP_BOOT_PRIVATE_DATA
*Private
58 Unload the configuration form, this includes: delete all the configuration
59 entries, uninstall the form callback protocol, and free the resources used.
60 The form will only be unload completely when both IP4 and IP6 stack are stopped.
62 @param[in] Private Pointer to the driver private data.
64 @retval EFI_SUCCESS The configuration form is unloaded.
65 @retval Others Failed to unload the form.
69 HttpBootConfigFormUnload (
70 IN HTTP_BOOT_PRIVATE_DATA
*Private