]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/Ip6Dxe/Ip6ConfigNv.h
NetworkPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6ConfigNv.h
1 /** @file
2 The header file of Ip6ConfigNv.c.
3
4 Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef _IP6_CONFIGNV_H_
11 #define _IP6_CONFIGNV_H_
12
13 #include "Ip6NvData.h"
14 #include "Ip6ConfigImpl.h"
15
16 extern UINT8 Ip6ConfigBin[];
17 extern UINT8 Ip6DxeStrings[];
18
19 #define IP6_ETHERNET L"Ethernet"
20 #define IP6_EXPERIMENTAL_ETHERNET L"Experimental Ethernet"
21 #define IP6_ADDRESS_DELIMITER L' '
22 #define IP6_LINK_LOCAL_PREFIX L"FE80::"
23
24 typedef enum {
25 Ip6InterfaceTypeEthernet = 1,
26 Ip6InterfaceTypeExperimentalEthernet
27 } IP6_INTERFACE_TYPE;
28
29 typedef enum {
30 Ip6ConfigNvHostAddress,
31 Ip6ConfigNvGatewayAddress,
32 Ip6ConfigNvDnsAddress,
33 Ip6ConfigNvRouteTable
34 } IP6_CONFIG_NV_ADDRESS_TYPE;
35
36 /**
37 Install HII Config Access protocol for network device and allocate resources.
38
39 @param[in, out] Instance The IP6_CONFIG_INSTANCE to create a form.
40
41 @retval EFI_SUCCESS The HII Config Access protocol is installed.
42 @retval EFI_OUT_OF_RESOURCES Failed to allocate memory.
43 @retval Others Other errors as indicated.
44
45 **/
46 EFI_STATUS
47 Ip6ConfigFormInit (
48 IN OUT IP6_CONFIG_INSTANCE *Instance
49 );
50
51 /**
52 Uninstall HII Config Access protocol for network device and free resource.
53
54 @param[in, out] Instance The IP6_CONFIG_INSTANCE to unload a form.
55
56 **/
57 VOID
58 Ip6ConfigFormUnload (
59 IN OUT IP6_CONFIG_INSTANCE *Instance
60 );
61
62 #endif