]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | The header file of Ip6ConfigNv.c.\r | |
3 | \r | |
4 | Copyright (c) 2010 - 2011, 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 | |
22 | extern UINT8 Ip6ConfigBin[];\r | |
23 | extern UINT8 Ip6DxeStrings[];\r | |
24 | \r | |
25 | #define IP6_ETHERNET L"Ethernet"\r | |
26 | #define IP6_EXPERIMENTAL_ETHERNET L"Experimental Ethernet"\r | |
27 | #define IP6_ADDRESS_DELIMITER L' '\r | |
28 | #define IP6_LINK_LOCAL_PREFIX L"FE80::"\r | |
29 | \r | |
30 | typedef enum {\r | |
31 | Ip6InterfaceTypeEthernet = 1,\r | |
32 | Ip6InterfaceTypeExperimentalEthernet\r | |
33 | } IP6_INTERFACE_TYPE;\r | |
34 | \r | |
35 | typedef enum {\r | |
36 | Ip6ConfigNvHostAddress,\r | |
37 | Ip6ConfigNvGatewayAddress,\r | |
38 | Ip6ConfigNvDnsAddress,\r | |
39 | Ip6ConfigNvRouteTable\r | |
40 | } IP6_CONFIG_NV_ADDRESS_TYPE;\r | |
41 | \r | |
42 | /**\r | |
43 | Install HII Config Access protocol for network device and allocate resources.\r | |
44 | \r | |
45 | @param[in, out] Instance The IP6_CONFIG_INSTANCE to create a form.\r | |
46 | \r | |
47 | @retval EFI_SUCCESS The HII Config Access protocol is installed.\r | |
48 | @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.\r | |
49 | @retval Others Other errors as indicated.\r | |
50 | \r | |
51 | **/\r | |
52 | EFI_STATUS\r | |
53 | Ip6ConfigFormInit (\r | |
54 | IN OUT IP6_CONFIG_INSTANCE *Instance\r | |
55 | );\r | |
56 | \r | |
57 | /**\r | |
58 | Uninstall HII Config Access protocol for network device and free resource.\r | |
59 | \r | |
60 | @param[in, out] Instance The IP6_CONFIG_INSTANCE to unload a form.\r | |
61 | \r | |
62 | **/\r | |
63 | VOID\r | |
64 | Ip6ConfigFormUnload (\r | |
65 | IN OUT IP6_CONFIG_INSTANCE *Instance\r | |
66 | );\r | |
67 | \r | |
68 | #endif\r |