2 Define NVData structures used by the HTTP Boot configuration component.
4 Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
5 This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 #ifndef _HTTP_BOOT_NVDATA_STRUC_H_
16 #define _HTTP_BOOT_NVDATA_STRUC_H_
18 #include <Guid/HttpBootConfigHii.h>
20 #define HTTP_BOOT_IP_VERSION_4 0
21 #define HTTP_BOOT_IP_VERSION_6 1
24 // Macros used for an IPv4 or an IPv6 address.
26 #define URI_STR_MIN_SIZE 0
27 #define URI_STR_MAX_SIZE 255
29 #define DESCRIPTION_STR_MIN_SIZE 6
30 #define DESCRIPTION_STR_MAX_SIZE 75
32 #define CONFIGURATION_VARSTORE_ID 0x1234
34 #define FORMID_MAIN_FORM 1
36 #define KEY_INITIATOR_URI 0x101
38 #define HTTP_BOOT_DEFAULT_DESCRIPTION_STR L"UEFI HTTP"
41 typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA
{
44 CHAR16 Description
[DESCRIPTION_STR_MAX_SIZE
];
45 CHAR16 Uri
[URI_STR_MAX_SIZE
];
46 } HTTP_BOOT_CONFIG_IFR_NVDATA
;