VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/Firmware/NetworkPkg/HttpBootDxe/HttpBootConfig.h@ 94368

Last change on this file since 94368 was 85718, checked in by vboxsync, 5 years ago

Devices/EFI: Merge edk-stable202005 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
14#include "HttpBootConfigNVDataStruc.h"
15
16typedef struct _HTTP_BOOT_FORM_CALLBACK_INFO HTTP_BOOT_FORM_CALLBACK_INFO;
17
18extern UINT8 HttpBootDxeStrings[];
19extern UINT8 HttpBootConfigVfrBin[];
20
21#pragma pack()
22
23#define HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE SIGNATURE_32 ('H', 'B', 'f', 'c')
24
25#define HTTP_BOOT_FORM_CALLBACK_INFO_FROM_CONFIG_ACCESS(Callback) \
26 CR ( \
27 Callback, \
28 HTTP_BOOT_FORM_CALLBACK_INFO, \
29 ConfigAccess, \
30 HTTP_BOOT_FORM_CALLBACK_INFO_SIGNATURE \
31 )
32
33struct _HTTP_BOOT_FORM_CALLBACK_INFO {
34 UINT32 Signature;
35 BOOLEAN Initialized;
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;
41};
42
43/**
44 Initialize the configuration form.
45
46 @param[in] Private Pointer to the driver private data.
47
48 @retval EFI_SUCCESS The configuration form is initialized.
49 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
50
51**/
52EFI_STATUS
53HttpBootConfigFormInit (
54 IN HTTP_BOOT_PRIVATE_DATA *Private
55 );
56
57/**
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.
61
62 @param[in] Private Pointer to the driver private data.
63
64 @retval EFI_SUCCESS The configuration form is unloaded.
65 @retval Others Failed to unload the form.
66
67**/
68EFI_STATUS
69HttpBootConfigFormUnload (
70 IN HTTP_BOOT_PRIVATE_DATA *Private
71 );
72
73#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