]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Support.h
Fixed a bug in Mtftp4: to allow the block number to roll over to accept transfers...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Mtftp4Dxe / Mtftp4Support.h
index a34764d2272e57e1a506589f3612e6f79a2dcac5..7a712a1a6db17bca9b2dd8be218f0a9350ee31aa 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Support routines for MTFTP.\r
   \r
-Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
 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
@@ -24,6 +24,8 @@ typedef struct {
   LIST_ENTRY                Link;\r
   INTN                      Start;\r
   INTN                      End;\r
+  INTN                      Round;\r
+  INTN                      Bound;\r
 } MTFTP4_BLOCK_RANGE;\r
 \r
 \r
@@ -90,6 +92,7 @@ Mtftp4SetLastBlockNum (
 \r
   @param  Head                  The block range list to remove from\r
   @param  Num                   The block number to remove\r
+  @param  TotalBlock            The continuous block number in all \r
 \r
   @retval EFI_NOT_FOUND         The block number isn't in the block range list\r
   @retval EFI_SUCCESS           The block number has been removed from the list\r
@@ -99,7 +102,8 @@ Mtftp4SetLastBlockNum (
 EFI_STATUS\r
 Mtftp4RemoveBlockNum (\r
   IN LIST_ENTRY             *Head,\r
-  IN UINT16                 Num\r
+  IN UINT16                 Num,\r
+  OUT UINT64                *TotalBlock\r
   );\r
 \r
 /**\r