HttpBootConfigNVDataStruc.h 1015 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /** @file
  2. Define NVData structures used by the HTTP Boot configuration component.
  3. Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
  4. SPDX-License-Identifier: BSD-2-Clause-Patent
  5. **/
  6. #ifndef _HTTP_BOOT_NVDATA_STRUC_H_
  7. #define _HTTP_BOOT_NVDATA_STRUC_H_
  8. #include <Guid/HttpBootConfigHii.h>
  9. #define HTTP_BOOT_IP_VERSION_4 0
  10. #define HTTP_BOOT_IP_VERSION_6 1
  11. //
  12. // Macros used for an IPv4 or an IPv6 address.
  13. //
  14. #define URI_STR_MIN_SIZE 0
  15. #define URI_STR_MAX_SIZE 255
  16. #define DESCRIPTION_STR_MIN_SIZE 6
  17. #define DESCRIPTION_STR_MAX_SIZE 75
  18. #define CONFIGURATION_VARSTORE_ID 0x1234
  19. #define FORMID_MAIN_FORM 1
  20. #define KEY_INITIATOR_URI 0x101
  21. #define HTTP_BOOT_DEFAULT_DESCRIPTION_STR L"UEFI HTTP"
  22. #pragma pack(1)
  23. typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA {
  24. UINT8 IpVersion;
  25. UINT8 Padding;
  26. CHAR16 Description[DESCRIPTION_STR_MAX_SIZE];
  27. CHAR16 Uri[URI_STR_MAX_SIZE];
  28. } HTTP_BOOT_CONFIG_IFR_NVDATA;
  29. #pragma pack()
  30. #endif