]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.h
1. add error handling in case DHCP success but boot request fail
[mirror_edk2.git] / MdeModulePkg / Universal / Network / UefiPxeBcDxe / PxeBcImpl.h
index 3d4657799e9dc8c3f290fdb0656f00db71a6a610..807e4d128a7ed94001fa5ec38054992e243d9a83 100644 (file)
@@ -1,6 +1,6 @@
 /** @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
@@ -33,21 +33,25 @@ typedef struct _PXEBC_PRIVATE_DATA  PXEBC_PRIVATE_DATA;
 \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
@@ -87,7 +91,8 @@ struct _PXEBC_PRIVATE_DATA {
   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