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