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