X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FUefiPxeBcDxe%2FPxeBcImpl.h;h=ddc1eba034e333c11487ae6c55d04bfac938c63a;hb=cfbc1a7537d55ff0066b5635855f5739d02d15dc;hp=bc039ec730277abea20dd779385b052895bc7a94;hpb=d8d26fb207e02aa5ef57e2bcb213f9dda16166cc;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.h b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.h index bc039ec730..ddc1eba034 100644 --- a/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.h +++ b/MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.h @@ -1,7 +1,7 @@ /** @file -Copyright (c) 2007 - 2008, Intel Corporation.
-All rights reserved. This program and the accompanying materials +Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.
+This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php @@ -40,16 +40,20 @@ typedef struct _PXEBC_PRIVATE_DATA PXEBC_PRIVATE_DATA; #include #include #include +#include #include "PxeBcDriver.h" -#include "PxeArch.h" #include "PxeBcDhcp.h" #include "PxeBcMtftp.h" #include "PxeBcSupport.h" #define PXEBC_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('P', 'X', 'E', 'P') -#define PXEBC_MTFTP_TIMEOUT 4 -#define PXEBC_MTFTP_RETRIES 6 +#define PXEBC_MTFTP_TIMEOUT 4 +#define PXEBC_MTFTP_RETRIES 6 +#define PXEBC_DEFAULT_UDP_OVERHEAD_SIZE 8 +#define PXEBC_DEFAULT_TFTP_OVERHEAD_SIZE 4 +#define PXEBC_DEFAULT_PACKET_SIZE 1480 +#define PXEBC_DEFAULT_LIFETIME 2000000 // 2 seconds, unit is microsecond struct _PXEBC_PRIVATE_DATA { UINT32 Signature; @@ -89,7 +93,8 @@ struct _PXEBC_PRIVATE_DATA { EFI_IP_ADDRESS GatewayIp; EFI_IP_ADDRESS ServerIp; BOOLEAN AddressIsOk; - + UINT32 Ip4MaxPacketSize; + UINTN BlockSize; UINTN FileSize; UINT8 OptionBuffer[PXEBC_DHCP4_MAX_OPTION_SIZE]; @@ -143,21 +148,21 @@ extern EFI_LOAD_FILE_PROTOCOL mLoadFileProtocolTemplate; @param This Protocol instance pointer. @param FilePath The device specific path of the file to load. - @param BootPolicy If TRUE, indicates that the request originates from the + @param BootPolicy If TRUE, indicates that the request originates from the boot manager is attempting to load FilePath as a boot selection. If FALSE, then FilePath must match as exact file to be loaded. @param BufferSize On input the size of Buffer in bytes. On output with a return - code of EFI_SUCCESS, the amount of data transferred to + code of EFI_SUCCESS, the amount of data transferred to Buffer. On output with a return code of EFI_BUFFER_TOO_SMALL, the size of Buffer required to retrieve the requested file. @param Buffer The memory buffer to transfer the file to. IF Buffer is NULL, - then no the size of the requested file is returned in + then no the size of the requested file is returned in BufferSize. @retval EFI_SUCCESS The file was loaded. @retval EFI_UNSUPPORTED The device does not support the provided BootPolicy - @retval EFI_INVALID_PARAMETER FilePath is not a valid device path, or + @retval EFI_INVALID_PARAMETER FilePath is not a valid device path, or BufferSize is NULL. @retval EFI_NO_MEDIA No medium was present to load the file. @retval EFI_DEVICE_ERROR The file was not loaded due to a device error.