]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/SnpDxe/Transmit.c
Add missing Handle parameter for UninstallMultipleProtocolInterfaces().
[mirror_edk2.git] / MdeModulePkg / Universal / Network / SnpDxe / Transmit.c
index c9d8e715aa1ff18d6ed7f7964d80f35ee555c05a..e6c5af77ec10cc55c047a46cbf5853d7696d6642 100644 (file)
@@ -1,8 +1,8 @@
 /** @file\r
     Implementation of transmitting a packet.\r
  \r
-Copyright (c) 2004 - 2007, Intel Corporation. <BR> \r
-All rights reserved. This program and the accompanying materials are licensed \r
+Copyright (c) 2004 - 2007, Intel Corporation. All rights reserved.<BR>\r
+This program and the accompanying materials are licensed \r
 and made available under the terms and conditions of the BSD License which \r
 accompanies this distribution. The full text of the license may be found at \r
 http://opensource.org/licenses/bsd-license.php \r
@@ -16,19 +16,19 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 \r
 /**\r
-  This routine calls undi to create the meadia header for the given data buffer.\r
+  Call UNDI to create the meadia header for the given data buffer.\r
 \r
-  @param  Snp                 pointer to SNP driver structure\r
-  @param  MacHeaderPtr        address where the media header will be filled in.\r
-  @param  HeaderSize       size of the memory at MacHeaderPtr\r
-  @param  Buffer           data buffer pointer\r
-  @param  BufferSize        Size of data in the Buffer\r
-  @param  DestAddr  address of the destination mac address buffer\r
-  @param  SrcAddr       address of the source mac address buffer\r
-  @param  ProtocolPtr         address of the protocol type\r
+  @param  Snp              Pointer to SNP driver structure.\r
+  @param  MacHeaderPtr     Address where the media header will be filled in.\r
+  @param  HeaderSize       Size of the memory at MacHeaderPtr.\r
+  @param  Buffer           Data buffer pointer.\r
+  @param  BufferSize       Size of data in the Buffer\r
+  @param  DestAddr         Address of the destination mac address buffer.\r
+  @param  SrcAddr          Address of the source mac address buffer.\r
+  @param  ProtocolPtr      Address of the protocol type.\r
 \r
-  @retval EFI_SUCCESS         if successfully completed the undi call\r
-  @retval Other               error return from undi call.\r
+  @retval EFI_SUCCESS      Successfully completed the undi call.\r
+  @retval Other            Error return from undi call.\r
 \r
 **/\r
 EFI_STATUS\r
@@ -90,7 +90,7 @@ PxeFillHeader (
   Snp->Cdb.DBsize     = PXE_DBSIZE_NOT_USED;\r
   Snp->Cdb.DBaddr     = PXE_DBADDR_NOT_USED;\r
 \r
-  Snp->Cdb.CPBsize    = sizeof (PXE_CPB_FILL_HEADER_FRAGMENTED);\r
+  Snp->Cdb.CPBsize    = (UINT16) sizeof (PXE_CPB_FILL_HEADER_FRAGMENTED);\r
   Snp->Cdb.CPBaddr    = (UINT64)(UINTN) Cpb;\r
 \r
   Snp->Cdb.StatCode   = PXE_STATCODE_INITIALIZE;\r
@@ -162,7 +162,7 @@ PxeTransmit (
 \r
   Snp->Cdb.OpFlags    = PXE_OPFLAGS_TRANSMIT_WHOLE;\r
 \r
-  Snp->Cdb.CPBsize    = sizeof (PXE_CPB_TRANSMIT);\r
+  Snp->Cdb.CPBsize    = (UINT16) sizeof (PXE_CPB_TRANSMIT);\r
   Snp->Cdb.CPBaddr    = (UINT64)(UINTN) Cpb;\r
 \r
   Snp->Cdb.OpCode     = PXE_OPCODE_TRANSMIT;\r