VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/NetworkPkg/HttpBootDxe/HttpBootConfig.h@ 101283

Last change on this file since 101283 was 99404, checked in by vboxsync, 2 years ago

Devices/EFI/FirmwareNew: Update to edk2-stable202302 and make it build, bugref:4643

  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1/** @file
2 The header file of functions for configuring or getting the parameters
3 relating to HTTP Boot.
4
5Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
6SPDX-License-Identifier: BSD-2-Clause-Patent
7
8**/
9
10#ifndef _HTTP_BOOT_CONFIG_H_
11#define _HTTP_BOOT_CONFIG_H_
12
13#include "HttpBootConfigNVDataStruc.h"
14
15typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO;
16
17extern UINT8 HttpBootDxeStrings[];
18extern UINT8 HttpBootConfigVfrBin[];
19
20#pragma pack()
21
22#define HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('H', 'B', 'f', 'c')
23
24#define HTTP_BOOT_FORM_CALLBACK_INFO_FROM_CONFIG_ACCESS(Callback) \
25 CR ( \
26 Callback, \
27 HTTP_BOOT_FORM_CALLBACK_INFO, \
28 ConfigAccess, \
29 HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE \
30 )
31
32struct _HTTP_BOOT_FORM_CALLBACK_INFO {
33 UINT32 Signature;
34 BOOLEAN Initialized;
35 EFI_HANDLE ChildHandle;
36 EFI_DEVICE_PATH_PROTOCOL *HiiVendorDevicePath;
37 EFI_HII_HANDLE RegisteredHandle;
38 EFI_HII_CONFIG_ACCESS_PROTOCOL ConfigAccess;
39 HTTP_BOOT_CONFIG_IFR_NVDATA HttpBootNvData;
40};
41
42/**
43 Initialize the configuration form.
44
45 @param[in] Private Pointer to the driver private data.
46
47 @retval EFI_SUCCESS The configuration form is initialized.
48 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
49
50**/
51EFI_STATUS
52HttpBootConfigFormInit (
53 IN HTTP_BOOT_PRIVATE_DATA *Private
54 );
55
56/**
57 Unload the configuration form, this includes: delete all the configuration
58 entries, uninstall the form callback protocol, and free the resources used.
59 The form will only be unload completely when both IP4 and IP6 stack are stopped.
60
61 @param[in] Private Pointer to the driver private data.
62
63 @retval EFI_SUCCESS The configuration form is unloaded.
64 @retval Others Failed to unload the form.
65
66**/
67EFI_STATUS
68HttpBootConfigFormUnload (
69 IN HTTP_BOOT_PRIVATE_DATA *Private
70 );
71
72#endif
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette