/** @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
\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
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
\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