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

INPUT<br />

ETH_PORT<br />

ethPortNum<br />

unsigned int<br />

tClk<br />

unsigned int<br />

linkSpeed<br />

unsigned int<br />

numPackets<br />

Ethernet port number<br />

tClk of the MV-643xx chip in HZ units<br />

Can get values of 10/100/1000 which is the link speed in MBps<br />

units.<br />

Number of packets required to be seen on TX queue upon receiving<br />

the coalescing interrupt.<br />

OUTPUT Interrupt coalescing mechanism value is set in MV-643xx chip.<br />

RETURN None.<br />

void ethBCopy(unsigned int srcAddr, unsigned int dstAddr, int byteCount)<br />

This function supports the eight bytes limitation on Tx buffer size.<br />

The routine will zero eight bytes starting from the destination<br />

address followed by copying bytes from the source address to the<br />

destination.<br />

INPUT<br />

unsigned int<br />

srcAddr<br />

unsigned int<br />

dstAddr<br />

int<br />

byteCount<br />

32 bit source address.<br />

32 bit destination address.<br />

Number of bytes to copy.<br />

OUTPUT See description.<br />

RETURN None.<br />

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