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.

API Call Reference List of APIs<br />

unsigned int<br />

value<br />

32 bit value.<br />

OUTPUT The set bits in the value parameter are reset in the configuration<br />

register.<br />

RETURN None.<br />

unsigned int ethernetGetConfigReg(ETH_PORT ethPortNum)<br />

This function returns the configuration register value of the given<br />

ethernet port.<br />

INPUT<br />

ETH_PORT<br />

ethPortNum<br />

OUTPUT None.<br />

Ethernet Port number. See ETH_PORT enum.<br />

RETURN Port configuration register value.<br />

bool etherInitRxDescRing(ETH_PORT_INFO *pEthPortCtrl, ETH_QUEUE rxQueue,int<br />

rxDescNum, int rxBuffSize,unsigned int rxDescBaseAddr,unsigned int<br />

rxBuffBaseAddr)<br />

This function prepares a Rx 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 />

rxQueue<br />

Ethernet Port Control struct.<br />

Number of Rx queue.<br />

int rxDescNum Number of Rx descriptors<br />

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> 5 - 37

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

Saved successfully!

Ooh no, something went wrong!