]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/Ip6Dxe/Ip6ConfigNv.h
Add NetworkPkg (P.UDK2010.UP3.Network.P1)
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6ConfigNv.h
CommitLineData
a3bcde70
HT
1/** @file\r
2 The header file of Ip6ConfigNv.c.\r
3\r
4 Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
5\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php.\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef _IP6_CONFIGNV_H_\r
17#define _IP6_CONFIGNV_H_\r
18\r
19#include "Ip6NvData.h"\r
20#include "Ip6ConfigImpl.h"\r
21\r
22extern UINT8 Ip6ConfigBin[];\r
23extern UINT8 Ip6DxeStrings[];\r
24\r
25#define IP6_HII_VENDOR_DEVICE_PATH_GUID \\r
26 { \\r
27 0x13288098, 0xb11f, 0x45b9, { 0xbc, 0x4f, 0x91, 0xb5, 0x4b, 0xa3, 0x39, 0xb9 } \\r
28 }\r
29\r
30#define IP6_ETHERNET L"Ethernet"\r
31#define IP6_EXPERIMENTAL_ETHERNET L"Experimental Ethernet"\r
32#define IP6_ADDRESS_DELIMITER L' '\r
33#define IP6_LINK_LOCAL_PREFIX L"FE80::"\r
34\r
35typedef enum {\r
36 Ip6InterfaceTypeEthernet = 1,\r
37 Ip6InterfaceTypeExperimentalEthernet\r
38} IP6_INTERFACE_TYPE;\r
39\r
40typedef enum {\r
41 Ip6ConfigNvHostAddress,\r
42 Ip6ConfigNvGatewayAddress,\r
43 Ip6ConfigNvDnsAddress,\r
44 Ip6ConfigNvRouteTable\r
45} IP6_CONFIG_NV_ADDRESS_TYPE;\r
46\r
47/**\r
48 Install HII Config Access protocol for network device and allocate resources.\r
49\r
50 @param[in, out] Instance The IP6_CONFIG_INSTANCE to create a form.\r
51\r
52 @retval EFI_SUCCESS The HII Config Access protocol is installed.\r
53 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r
54 @retval Others Other errors as indicated.\r
55\r
56**/\r
57EFI_STATUS\r
58Ip6ConfigFormInit (\r
59 IN OUT IP6_CONFIG_INSTANCE *Instance\r
60 );\r
61\r
62/**\r
63 Uninstall HII Config Access protocol for network device and free resource.\r
64\r
65 @param[in, out] Instance The IP6_CONFIG_INSTANCE to unload a form.\r
66\r
67**/\r
68VOID\r
69Ip6ConfigFormUnload (\r
70 IN OUT IP6_CONFIG_INSTANCE *Instance\r
71 );\r
72\r
73#endif\r