X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=NetworkPkg%2FHttpBootDxe%2FHttpBootDxe.h;h=7cb4b2c55a14e40a58e9025065cfbcc965321ff5;hp=08f88c5606a008edbdd4eadf73428ad8c392e0ef;hb=fa848a4048943251fc057fe8d6c5a82e01d2ffb6;hpb=9353c60cea6eeedbbe4b336aea02646e2bf25f47 diff --git a/NetworkPkg/HttpBootDxe/HttpBootDxe.h b/NetworkPkg/HttpBootDxe/HttpBootDxe.h index 08f88c5606..7cb4b2c55a 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootDxe.h +++ b/NetworkPkg/HttpBootDxe/HttpBootDxe.h @@ -1,7 +1,7 @@ /** @file UEFI HTTP boot driver's private data structure and interfaces declaration. -Copyright (c) 2015, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License that accompanies this distribution. @@ -24,6 +24,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // Libraries // #include +#include +#include #include #include #include @@ -31,6 +33,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include +#include // // UEFI Driver Model Protocols @@ -42,6 +46,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // // Consumed Protocols // +#include +#include #include #include #include @@ -54,6 +60,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. // #include +// +// Consumed Guids +// +#include + // // Driver Version // @@ -81,6 +92,7 @@ typedef struct _HTTP_BOOT_VIRTUAL_NIC HTTP_BOOT_VIRTUAL_NIC; #include "HttpBootImpl.h" #include "HttpBootSupport.h" #include "HttpBootClient.h" +#include "HttpBootConfig.h" typedef union { HTTP_BOOT_DHCP4_PACKET_CACHE Dhcp4; @@ -95,6 +107,14 @@ struct _HTTP_BOOT_VIRTUAL_NIC { HTTP_BOOT_PRIVATE_DATA *Private; }; +#define HTTP_BOOT_PRIVATE_DATA_FROM_CALLBACK_INFO(Callback) \ + CR ( \ + Callback, \ + HTTP_BOOT_PRIVATE_DATA, \ + CallbackInfo, \ + HTTP_BOOT_PRIVATE_DATA_SIGNATURE \ + ) + struct _HTTP_BOOT_PRIVATE_DATA { UINT32 Signature; EFI_HANDLE Controller; @@ -131,6 +151,11 @@ struct _HTTP_BOOT_PRIVATE_DATA { EFI_DEVICE_PATH_PROTOCOL *DevicePath; UINT32 Id; + // + // HII callback info block + // + HTTP_BOOT_FORM_CALLBACK_INFO CallbackInfo; + // // Mode data // @@ -146,6 +171,12 @@ struct _HTTP_BOOT_PRIVATE_DATA { UINTN BootFileSize; BOOLEAN NoGateway; + // + // URI string extracted from the input FilePath parameter. + // + CHAR8 *FilePathUri; + VOID *FilePathUriParser; + // // Cached HTTP data //