]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.h
fixed typo.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4ConfigDxe / Ip4ConfigNv.h
CommitLineData
63886849 1/** @file\r
c40a1556 2 The header file of IP4ConfigNv.c\r
63886849 3\r
4Copyright (c) 2009, Intel Corporation.<BR>\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _IP4_CONFIGNV_H_\r
16#define _IP4_CONFIGNV_H_\r
17\r
18#include "Ip4Config.h"\r
c40a1556 19#include "Ip4NvData.h"\r
63886849 20\r
21extern UINT8 Ip4ConfigDxeBin[];\r
22extern UINT8 Ip4ConfigDxeStrings[];\r
23\r
24#define NIC_ITEM_CONFIG_SIZE sizeof (NIC_IP4_CONFIG_INFO) + sizeof (EFI_IP4_ROUTE_TABLE) * 2\r
25\r
26\r
27///\r
28/// HII specific Vendor Device Path definition.\r
29///\r
30typedef struct {\r
31 VENDOR_DEVICE_PATH VendorDevicePath;\r
32 EFI_DEVICE_PATH_PROTOCOL End;\r
33} HII_VENDOR_DEVICE_PATH;\r
34\r
35/**\r
36 Updates the network configuration form to add/delete an entry for the network\r
37 device specified by the Instance.\r
38\r
39 @param[in] Instance The IP4 Config instance.\r
40 @param[in] AddForm Whether to add or delete a form entry.\r
41\r
42 @retval EFI_SUCCESS The network configuration form is updated.\r
43 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
44 @retval Others Other errors as indicated.\r
45**/\r
46EFI_STATUS\r
47Ip4ConfigUpdateForm (\r
48 IN IP4_CONFIG_INSTANCE *Instance,\r
49 IN BOOLEAN AddForm\r
50 );\r
51\r
52/**\r
53 Install HII Config Access protocol for network device and allocate resource.\r
54\r
55 @param[in] Instance The IP4 Config instance.\r
56\r
57 @retval EFI_SUCCESS The HII Config Access protocol is installed.\r
58 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
59 @retval Others Other errors as indicated.\r
60**/\r
61EFI_STATUS\r
62Ip4ConfigDeviceInit (\r
63 IN IP4_CONFIG_INSTANCE *Instance\r
64 );\r
65\r
66/**\r
67 Uninstall HII Config Access protocol for network device and free resource.\r
68\r
69 @param[in] Instance The IP4 Config instance.\r
70\r
71 @retval EFI_SUCCESS The HII Config Access protocol is uninstalled.\r
72 @retval Others Other errors as indicated.\r
73**/\r
74EFI_STATUS\r
75Ip4ConfigDeviceUnload (\r
76 IN IP4_CONFIG_INSTANCE *Instance\r
77 );\r
78\r
79/**\r
80 Initialize the network configuration form, this includes: delete all the network\r
81 device configuration entries, install the form callback protocol and\r
82 allocate the resources used.\r
83\r
84 @retval EFI_SUCCESS The network configuration form is unloaded.\r
85 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
86**/\r
87EFI_STATUS\r
88Ip4ConfigFormInit (\r
89 VOID\r
90 );\r
91\r
92/**\r
93 Unload the network configuration form, this includes: delete all the network\r
94 device configuration entries, uninstall the form callback protocol and\r
95 free the resources used.\r
96\r
97 @retval EFI_SUCCESS The network configuration form is unloaded.\r
98**/\r
99EFI_STATUS\r
100Ip4ConfigFormUnload (\r
101 VOID\r
102 );\r
103\r
104#endif\r