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.

API Call Reference List of APIs<br />

bool sdmaInitRxDescRing(SDMA_CHANNEL *sdmaChan, int rxDescNum, int rxBuffSize,<br />

unsigned int rxDescBaseAddr, unsigned int rxBuffBaseAddr)<br />

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

buffers in a <strong>for</strong>m of a ring.<br />

INPUT<br />

SDMA_CHANNEL<br />

*sdmaChan SDMA channel struct<br />

int rxDescNum Number of Rx descriptors<br />

int rxBuffSize Size of Rx buffer<br />

unsigned int<br />

rxDescBaseAddr<br />

unsigned int<br />

rxBuffBaseAddr<br />

Rx descriptors memory area base addr.<br />

Rx buffer memory area base addr.<br />

OUTPUT The routine updates the SDMA channel struct with the 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 SDMA specifications.<br />

True When given descriptors memory area is aligned<br />

according to SDMA specifications<br />

bool sdmaInitTxDescRing(SDMA_CHANNEL*sdmaChan, int txDescNum, int txBuffSize,<br />

unsigned int txDescBaseAddr, unsigned int txBuffBaseAddr)<br />

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

buffers in a <strong>for</strong>m of a ring.<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 - 61

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

Saved successfully!

Ooh no, something went wrong!