]> git.proxmox.com Git - mirror_edk2.git/blame - NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h
NetworkPkg/HttpDxe: HTTPS support over IPv4 and IPv6
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfigNVDataStruc.h
CommitLineData
fa848a40
FS
1/** @file\r
2 Define NVData structures used by the HTTP Boot configuration component.\r
3\r
4Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef _HTTP_BOOT_NVDATA_STRUC_H_\r
16#define _HTTP_BOOT_NVDATA_STRUC_H_\r
17\r
18#include <Guid/HttpBootConfigHii.h>\r
19\r
a5acc842
FS
20#define HTTP_BOOT_IP_VERSION_4 0\r
21#define HTTP_BOOT_IP_VERSION_6 1\r
fa848a40
FS
22\r
23//\r
24// Macros used for an IPv4 or an IPv6 address.\r
25//\r
0aa0beca 26#define URI_STR_MIN_SIZE 0\r
a5acc842
FS
27#define URI_STR_MAX_SIZE 255\r
28\r
29#define DESCRIPTION_STR_MIN_SIZE 6\r
30#define DESCRIPTION_STR_MAX_SIZE 75\r
fa848a40
FS
31\r
32#define CONFIGURATION_VARSTORE_ID 0x1234\r
33\r
a5acc842
FS
34#define FORMID_MAIN_FORM 1\r
35\r
36#define KEY_INITIATOR_URI 0x101\r
37\r
38#define HTTP_BOOT_DEFAULT_DESCRIPTION_STR L"UEFI HTTP"\r
fa848a40
FS
39\r
40#pragma pack(1)\r
41typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA {\r
42 UINT8 IpVersion;\r
43 UINT8 Padding;\r
a5acc842 44 CHAR16 Description[DESCRIPTION_STR_MAX_SIZE];\r
fa848a40
FS
45 CHAR16 Uri[URI_STR_MAX_SIZE];\r
46} HTTP_BOOT_CONFIG_IFR_NVDATA;\r
47#pragma pack()\r
48\r
49\r
50#endif\r