]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Nv.h
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Config2Nv.h
1 /** @file
2 The header file of IP4Config2Nv.c
3
4 Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 #ifndef _IP4_CONFIG2NV_H_
10 #define _IP4_CONFIG2NV_H_
11
12 #include "Ip4Impl.h"
13
14 extern UINT8 Ip4Config2Bin[];
15 extern UINT8 Ip4DxeStrings[];
16
17 #define NIC_ITEM_CONFIG_SIZE (sizeof (IP4_CONFIG2_INSTANCE) + (sizeof (EFI_IPv4_ADDRESS) * MAX_IP4_CONFIG_DNS))
18
19 /**
20 Install HII Config Access protocol for network device and allocate resource.
21
22 @param[in, out] Instance The IP4 config2 Instance.
23
24 @retval EFI_SUCCESS The HII Config Access protocol is installed.
25 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
26 @retval Others Other errors as indicated.
27
28 **/
29 EFI_STATUS
30 Ip4Config2FormInit (
31 IN OUT IP4_CONFIG2_INSTANCE *Instance
32 );
33
34 /**
35 Uninstall the HII Config Access protocol for network devices and free up the resources.
36
37 @param[in, out] Instance The IP4 config2 instance to unload a form.
38
39 **/
40 VOID
41 Ip4Config2FormUnload (
42 IN OUT IP4_CONFIG2_INSTANCE *Instance
43 );
44
45 #endif