]>
Commit | Line | Data |
---|---|---|
1f6729ff | 1 | /** @file\r |
2 | The header file of IP4Config2Nv.c\r | |
3 | \r | |
d1102dba | 4 | Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR>\r |
9d510e61 | 5 | SPDX-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 | |
14 | extern UINT8 Ip4Config2Bin[];\r | |
15 | extern UINT8 Ip4DxeStrings[];\r | |
16 | \r | |
d1050b9d | 17 | #define NIC_ITEM_CONFIG_SIZE (sizeof (IP4_CONFIG2_INSTANCE) + (sizeof (EFI_IPv4_ADDRESS) * MAX_IP4_CONFIG_DNS))\r |
1f6729ff | 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 |
29 | EFI_STATUS\r | |
30 | Ip4Config2FormInit (\r | |
d1050b9d | 31 | IN OUT IP4_CONFIG2_INSTANCE *Instance\r |
1f6729ff | 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 | |
40 | VOID\r | |
41 | Ip4Config2FormUnload (\r | |
d1050b9d | 42 | IN OUT IP4_CONFIG2_INSTANCE *Instance\r |
1f6729ff | 43 | );\r |
44 | \r | |
45 | #endif\r |