]> git.proxmox.com Git - mirror_edk2.git/blob - NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h
UefiCpuPkg/Application/Cpuid: Remove unnecessary code check
[mirror_edk2.git] / NetworkPkg / HttpBootDxe / HttpBootConfigNVDataStruc.h
1 /** @file
2 Define NVData structures used by the HTTP Boot configuration component.
3
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
9
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.
12
13 **/
14
15 #ifndef _HTTP_BOOT_NVDATA_STRUC_H_
16 #define _HTTP_BOOT_NVDATA_STRUC_H_
17
18 #include <Guid/HttpBootConfigHii.h>
19
20 #define HTTP_BOOT_IP_VERSION_4 0
21 #define HTTP_BOOT_IP_VERSION_6 1
22
23 //
24 // Macros used for an IPv4 or an IPv6 address.
25 //
26 #define URI_STR_MIN_SIZE 8
27 #define URI_STR_MAX_SIZE 255
28
29 #define CONFIGURATION_VARSTORE_ID 0x1234
30
31 #define FORMID_MAIN_FORM 1
32
33 #pragma pack(1)
34 typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA {
35 UINT8 IpVersion;
36 UINT8 Padding;
37 CHAR16 Description[URI_STR_MAX_SIZE];
38 CHAR16 Uri[URI_STR_MAX_SIZE];
39 } HTTP_BOOT_CONFIG_IFR_NVDATA;
40 #pragma pack()
41
42
43 #endif