20.12.2012 Views

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

2.2 BSP Rel. 1.0 for PPMC-275 Programmer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

List of APIs API Call Reference<br />

RETURN<br />

ETH_ERROR In case the routine can not access Rx desc ring.<br />

ETH_QUEUE_FULL If Rx ring resources are exhausted.<br />

ETH_END_OF_JOB if there is no received data.<br />

ETH_OK Otherwise.<br />

ETH_FUNC_RET_STATUS ethRxReturnBuff(ETH_PORT_INFO *pEthPortCtrl, ETH_QUEUE<br />

rxQueue, PKT_INFO *pPktInfo)<br />

This routine returns a Rx buffer back to the Rx ring. It retrieves the<br />

next 'used' descriptor and attached the returned buffer to it. In case<br />

the Rx ring was in "resource error" condition, where there are no<br />

available Rx resources, the function resets the resource error flag.<br />

INPUT<br />

ETH_PORT_INFO<br />

*pEthPortCtrl<br />

ETH_QUEUE<br />

rxQueue<br />

PKT_INFO<br />

*pPktInfo<br />

Ethernet Port Control struct.<br />

Number of Rx queue.<br />

In<strong>for</strong>mation on the returned buffer.<br />

OUTPUT New available Rx resource in Rx descriptor ring.<br />

RETURN<br />

ETH_ERROR In case the routine can not access Rx desc ring.<br />

ETH_OK Otherwise.<br />

5 - 42 VxWorks 5.5/Tornado <strong>2.2</strong> <strong>BSP</strong> <strong>Rel</strong>. <strong>1.0</strong> <strong>for</strong> <strong>PPMC</strong>-<strong>275</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!