/** @file\r
\r
-Copyright (c) 2007 - 2008, Intel Corporation.<BR> \r
+Copyright (c) 2007 - 2010, Intel Corporation.<BR> \r
All rights reserved. This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
\r
#include <Library/DebugLib.h>\r
#include <Library/BaseMemoryLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
#include <Library/UefiDriverEntryPoint.h>\r
#include <Library/UefiBootServicesTableLib.h>\r
#include <Library/UefiLib.h>\r
#include <Library/BaseLib.h>\r
#include <Library/NetLib.h>\r
+#include <Library/DpcLib.h>\r
\r
#include "PxeBcDriver.h"\r
-#include "PxeArch.h"\r
#include "PxeBcDhcp.h"\r
#include "PxeBcMtftp.h"\r
#include "PxeBcSupport.h"\r
\r
#define PXEBC_PRIVATE_DATA_SIGNATURE SIGNATURE_32 ('P', 'X', 'E', 'P')\r
-#define PXEBC_MTFTP_TIMEOUT 4\r
-#define PXEBC_MTFTP_RETRIES 6\r
+#define PXEBC_MTFTP_TIMEOUT 4\r
+#define PXEBC_MTFTP_RETRIES 6\r
+#define PXEBC_DEFAULT_UDP_OVERHEAD_SIZE 8
+#define PXEBC_DEFAULT_TFTP_OVERHEAD_SIZE 4\r
+#define PXEBC_DEFAULT_PACKET_SIZE 1480 \r
\r
struct _PXEBC_PRIVATE_DATA {\r
UINT32 Signature;\r
EFI_IP_ADDRESS GatewayIp;\r
EFI_IP_ADDRESS ServerIp;\r
BOOLEAN AddressIsOk;\r
-\r
+ UINT32 Ip4MaxPacketSize;\r
+ UINTN BlockSize;\r
UINTN FileSize;\r
\r
UINT8 OptionBuffer[PXEBC_DHCP4_MAX_OPTION_SIZE];\r