]>
Commit | Line | Data |
---|---|---|
fa848a40 FS |
1 | /** @file\r |
2 | Define NVData structures used by the HTTP Boot configuration component.\r | |
3 | \r | |
4 | Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>\r | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT 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 | |
20 | #define HTTP_BOOT_IP_VERSION_4 0\r | |
21 | #define HTTP_BOOT_IP_VERSION_6 1\r | |
22 | \r | |
23 | //\r | |
24 | // Macros used for an IPv4 or an IPv6 address.\r | |
25 | //\r | |
26 | #define URI_STR_MIN_SIZE 8\r | |
27 | #define URI_STR_MAX_SIZE 255\r | |
28 | \r | |
29 | #define CONFIGURATION_VARSTORE_ID 0x1234\r | |
30 | \r | |
31 | #define FORMID_MAIN_FORM 1\r | |
32 | \r | |
33 | #pragma pack(1)\r | |
34 | typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA {\r | |
35 | UINT8 IpVersion;\r | |
36 | UINT8 Padding;\r | |
37 | CHAR16 Description[URI_STR_MAX_SIZE];\r | |
38 | CHAR16 Uri[URI_STR_MAX_SIZE];\r | |
39 | } HTTP_BOOT_CONFIG_IFR_NVDATA;\r | |
40 | #pragma pack()\r | |
41 | \r | |
42 | \r | |
43 | #endif\r |