]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6ConfigNv.h
Add NetworkPkg (P.UDK2010.UP3.Network.P1)
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6ConfigNv.h
diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigNv.h b/NetworkPkg/Ip6Dxe/Ip6ConfigNv.h
new file mode 100644 (file)
index 0000000..d184776
--- /dev/null
@@ -0,0 +1,73 @@
+/** @file\r
+  The header file of Ip6ConfigNv.c.\r
+\r
+  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+\r
+  This program and the accompanying materials\r
+  are licensed and made available under the terms and conditions of the BSD License\r
+  which accompanies this distribution.  The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php.\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _IP6_CONFIGNV_H_\r
+#define _IP6_CONFIGNV_H_\r
+\r
+#include "Ip6NvData.h"\r
+#include "Ip6ConfigImpl.h"\r
+\r
+extern UINT8  Ip6ConfigBin[];\r
+extern UINT8  Ip6DxeStrings[];\r
+\r
+#define IP6_HII_VENDOR_DEVICE_PATH_GUID \\r
+  { \\r
+    0x13288098, 0xb11f, 0x45b9, { 0xbc, 0x4f, 0x91, 0xb5, 0x4b, 0xa3, 0x39, 0xb9 } \\r
+  }\r
+\r
+#define IP6_ETHERNET              L"Ethernet"\r
+#define IP6_EXPERIMENTAL_ETHERNET L"Experimental Ethernet"\r
+#define IP6_ADDRESS_DELIMITER     L' '\r
+#define IP6_LINK_LOCAL_PREFIX     L"FE80::"\r
+\r
+typedef enum {\r
+  Ip6InterfaceTypeEthernet = 1,\r
+  Ip6InterfaceTypeExperimentalEthernet\r
+} IP6_INTERFACE_TYPE;\r
+\r
+typedef enum {\r
+  Ip6ConfigNvHostAddress,\r
+  Ip6ConfigNvGatewayAddress,\r
+  Ip6ConfigNvDnsAddress,\r
+  Ip6ConfigNvRouteTable\r
+} IP6_CONFIG_NV_ADDRESS_TYPE;\r
+\r
+/**\r
+  Install HII Config Access protocol for network device and allocate resources.\r
+\r
+  @param[in, out]  Instance      The IP6_CONFIG_INSTANCE to create a form.\r
+\r
+  @retval EFI_SUCCESS            The HII Config Access protocol is installed.\r
+  @retval EFI_OUT_OF_RESOURCES   Failed to allocate memory.\r
+  @retval Others                 Other errors as indicated.\r
+\r
+**/\r
+EFI_STATUS\r
+Ip6ConfigFormInit (\r
+  IN OUT IP6_CONFIG_INSTANCE     *Instance\r
+  );\r
+\r
+/**\r
+  Uninstall HII Config Access protocol for network device and free resource.\r
+\r
+  @param[in, out]  Instance      The IP6_CONFIG_INSTANCE to unload a form.\r
+\r
+**/\r
+VOID\r
+Ip6ConfigFormUnload (\r
+  IN OUT IP6_CONFIG_INSTANCE     *Instance\r
+  );\r
+\r
+#endif\r