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

STATUS sdmaAllocateDescriptorsForOnePort (PORT_ALLOCATION_STRUCT*<br />

portAllocationStruct)<br />

DESCRIPTION Allocates descriptors <strong>for</strong> each port. It writes the first descriptor<br />

pointer to a table that is used by the low level <strong>for</strong> DMA initialization.<br />

INPUT<br />

PORT_ALLOCATION_<br />

STRUCT*<br />

portAllocationSt<br />

ruct<br />

Table 13:SDMA Channel Structure: TX_PACKET<br />

Type Field Bit width Description<br />

UINT32 portNumber 4 The Port number.<br />

UINT32 PacketSize 12 Packet Size<br />

UINT32 appendCrc 1<br />

UINT32 priority 1<br />

UINT32 destHigh 16<br />

UINT32 destLow<br />

UINT32 srcHigh 16<br />

UINT32 srcLow<br />

UINT32 pattern<br />

PORT_ALLOCATION_STRUCT*<br />

OUTPUT Writes the first allocated descriptor pointer to a table that is used<br />

by the low level <strong>for</strong> DMA initialization<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 - 67

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

Saved successfully!

Ooh no, something went wrong!