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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

List of APIs API Call Reference<br />

RETURN<br />

ETH_QUEUE_FULL In case of Tx resource error.<br />

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

ETH_QUEUE_LAST_RESOURCE If the routine uses the last Tx<br />

resource.<br />

ETH_OK Otherwise.<br />

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

txQueue, PKT_INFO *pPktInfo)<br />

This routine returns the transmitted packet in<strong>for</strong>mation to the<br />

caller. It uses the 'first' index to support Tx desc return in case a<br />

transmit of a packet spanned over multiple buffer still in process.<br />

In case the Tx queue was in "resource error" condition, where there<br />

are no available Tx resources, the function resets the resource error<br />

flag.<br />

INPUT<br />

ETH_PORT_INFO<br />

*pEthPortCtrl<br />

ETH_QUEUE<br />

txQueue<br />

PKT_INFO<br />

*pPktInfo<br />

Ethernet Port Control struct.<br />

Number of Tx queue.<br />

User packet buffer.<br />

OUTPUT Tx ring 'first' and 'used' indexes are updated.<br />

5 - 40 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!