]>
Commit | Line | Data |
---|---|---|
1f6729ff | 1 | /** @file\r |
2 | The header file of IP4Config2Nv.c\r | |
3 | \r | |
4 | Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _IP4_CONFIG2NV_H_\r | |
16 | #define _IP4_CONFIG2NV_H_\r | |
17 | \r | |
18 | #include "Ip4Impl.h"\r | |
19 | \r | |
20 | extern UINT8 Ip4Config2Bin[];\r | |
21 | extern UINT8 Ip4DxeStrings[];\r | |
22 | \r | |
23 | #define NIC_ITEM_CONFIG_SIZE (sizeof (IP4_CONFIG2_INSTANCE) + (sizeof (EFI_IPv4_ADDRESS) * MAX_IP4_CONFIG_DNS))\r | |
24 | \r | |
25 | /**\r | |
26 | Install HII Config Access protocol for network device and allocate resource.\r | |
27 | \r | |
28 | @param[in, out] Instance The IP4 config2 Instance.\r | |
29 | \r | |
30 | @retval EFI_SUCCESS The HII Config Access protocol is installed.\r | |
31 | @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r | |
32 | @retval Others Other errors as indicated.\r | |
33 | \r | |
34 | **/\r | |
35 | EFI_STATUS\r | |
36 | Ip4Config2FormInit (\r | |
37 | IN OUT IP4_CONFIG2_INSTANCE *Instance\r | |
38 | );\r | |
39 | \r | |
40 | /**\r | |
41 | Uninstall the HII Config Access protocol for network devices and free up the resources.\r | |
42 | \r | |
43 | @param[in, out] Instance The IP4 config2 instance to unload a form.\r | |
44 | \r | |
45 | **/\r | |
46 | VOID\r | |
47 | Ip4Config2FormUnload (\r | |
48 | IN OUT IP4_CONFIG2_INSTANCE *Instance\r | |
49 | );\r | |
50 | \r | |
51 | #endif\r |