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 />

int<br />

rxBuffSize<br />

unsigned int<br />

rxDescBaseAddr<br />

unsigned int<br />

rxBuffBaseAddr<br />

Size of Rx buffer<br />

Rx descriptors memory area base addr.<br />

Rx buffer memory area base addr.<br />

OUTPUT The routine updates the Ethernet port control struct with in<strong>for</strong>mation<br />

regarding the Rx descriptors and buffers.<br />

RETURN<br />

False If the given descriptors memory area is not aligned<br />

according to Ethernet SDMA specifications.<br />

True Otherwise.<br />

bool etherInitTxDescRing(ETH_PORT_INFO *pEthPortCtrl, ETH_QUEUE txQueue, int<br />

txDescNum,int txBuffSize,unsigned int txDescBaseAddr,unsigned int xBuffBaseAddr)<br />

This function prepares a Tx chained list of descriptors and packet<br />

buffers in a <strong>for</strong>m of a ring. The routine must be called after port<br />

initialization routine and be<strong>for</strong>e port start routine. The Ethernet<br />

SDMA engine uses CPU bus addresses to access the various<br />

devices in the system (i.e. DRAM). This function uses the ethernet<br />

struct 'virtual to physical' routine (set by the user) to set the ring<br />

with physical addresses.<br />

INPUT<br />

ETH_PORT_INFO<br />

*pEthPortCtrl<br />

ETH_QUEUE<br />

txQueue<br />

Ethernet Port Control struct.<br />

Number of Tx queue.<br />

int txDescNum Number of Tx descriptors<br />

int txBuffSize Size of Tx buffer<br />

unsigned int<br />

txDescBaseAddr<br />

Tx descriptors memory area base addr.<br />

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