]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h
NetworkPkg: Add URI configuration form to HTTP boot driver.
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfigNVDataStruc.h
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h b/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h
new file mode 100644 (file)
index 0000000..07043e7
--- /dev/null
@@ -0,0 +1,43 @@
+/** @file\r
+  Define NVData structures used by the HTTP Boot configuration component.\r
+\r
+Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\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 _HTTP_BOOT_NVDATA_STRUC_H_\r
+#define _HTTP_BOOT_NVDATA_STRUC_H_\r
+\r
+#include <Guid/HttpBootConfigHii.h>\r
+\r
+#define HTTP_BOOT_IP_VERSION_4         0\r
+#define HTTP_BOOT_IP_VERSION_6         1\r
+\r
+//\r
+// Macros used for an IPv4 or an IPv6 address.\r
+//\r
+#define URI_STR_MIN_SIZE           8\r
+#define URI_STR_MAX_SIZE           255\r
+\r
+#define CONFIGURATION_VARSTORE_ID    0x1234\r
+\r
+#define FORMID_MAIN_FORM    1\r
+\r
+#pragma pack(1)\r
+typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA {\r
+  UINT8     IpVersion;\r
+  UINT8     Padding;\r
+  CHAR16    Description[URI_STR_MAX_SIZE];\r
+  CHAR16    Uri[URI_STR_MAX_SIZE];\r
+} HTTP_BOOT_CONFIG_IFR_NVDATA;\r
+#pragma pack()\r
+\r
+\r
+#endif\r