/** @file\r
Implement the IP4 driver support for the socket layer.\r
\r
- Copyright (c) 2011, Intel Corporation\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
- http://opensource.org/licenses/bsd-license.php\r
+ Copyright (c) 2011 - 2014, Intel Corporation. All rights reserved.<BR>\r
+ This program and the accompanying materials are licensed and made available\r
+ under the terms and conditions of the BSD License which accompanies this\r
+ distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php.\r
\r
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
@param [in] pPort Address of an ::ESL_PORT structure.\r
\r
@param [in] pPacket Address of an ::ESL_PACKET structure.\r
- \r
+\r
@param [in] pbConsumePacket Address of a BOOLEAN indicating if the packet is to be consumed\r
- \r
+\r
@param [in] BufferLength Length of the the buffer\r
- \r
+\r
@param [in] pBuffer Address of a buffer to receive the data.\r
- \r
+\r
@param [in] pDataLength Number of received data bytes in the buffer.\r
\r
@param [out] pAddress Network address to receive the remote system address\r
)\r
{\r
size_t LengthInBytes;\r
- ESL_PORT * pPort;\r
ESL_PACKET * pPacket;\r
EFI_IP4_RECEIVE_DATA * pRxData;\r
EFI_STATUS Status;\r
- \r
+\r
DBG_ENTER ( );\r
- \r
+\r
//\r
// Get the operation status.\r
//\r
- pPort = pIo->pPort;\r
Status = pIo->Token.Ip4Rx.Status;\r
\r
//\r
pRxData = pIo->Token.Ip4Rx.Packet.RxData;\r
LengthInBytes = pRxData->HeaderLength + pRxData->DataLength;\r
\r
- //\r
+ //{{\r
// +--------------------+ +----------------------+\r
// | ESL_IO_MGMT | | Data Buffer |\r
// | | | (Driver owned) |\r
//\r
//\r
// Save the data in the packet\r
- //\r
+ //}}\r
pPacket = pIo->pPacket;\r
pPacket->Op.Ip4Rx.pRxData = pRxData;\r
\r
that the socket is configured.\r
\r
@param [in] pSocket Address of an ::ESL_SOCKET structure\r
- \r
+\r
@retval EFI_SUCCESS - The port is connected\r
@retval EFI_NOT_STARTED - The port is not connected\r
\r
// Determine the socket configuration status\r
//\r
Status = pSocket->bConfigured ? EFI_SUCCESS : EFI_NOT_STARTED;\r
- \r
+\r
//\r
// Return the port connected state.\r
//\r
ESL_PACKET * pPacket;\r
ESL_SOCKET * pSocket;\r
EFI_STATUS Status;\r
- \r
+\r
DBG_ENTER ( );\r
- \r
+\r
//\r
// Locate the active transmit packet\r
//\r