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.

List of APIs API Call Reference<br />

RETURN<br />

True In case of success.<br />

False In case of failure.<br />

bool frcVPDStrataRead(UINT32 bus, UINT32 dev, UINT32 fun,UINT16 vpdAddr,UINT32<br />

*vpdData)<br />

DESCRIPTION This function reads the 32-bit VPD data from User Flash of the<br />

Device as mentioned below in INPUTS section as per the protocol<br />

mentioned in PCI Spec <strong>2.2</strong>.<br />

INPUT The details of PCI device from where VPD is to be read by this<br />

board.<br />

UINT32 bus PCI Bus Number.<br />

UINT32 fun Function Number.<br />

UINT16 vpdAddr 15-bit Address offset with in the VPD Device.<br />

UINT32 *vpdData Address of 32-bit data used by this function to store the read data.<br />

OUTPUT Stores the 32-bit data at an address pointed by vpdData after reading<br />

from an offset specified by 15-bit vpdAddr of the VPD Device<br />

as configured by that board by VPDInit.<br />

RETURN<br />

True In case of success<br />

False In case of failure.<br />

bool frcVPDWrite(UINT32 bus, UINT32 dev, UINT32 fun,UINT16 vpdAddr,UINT32 vpdData)<br />

DESCRIPTION This function writes the 32-bit VPD data into VPD Space of a PCI<br />

Device compliant to PCI Spec. <strong>2.2</strong> from the <strong>PPMC</strong>-<strong>275</strong> as per protocol<br />

mentioned in PCI Spec <strong>2.2</strong>. The other PCI Device must be<br />

ready and VPD Device must be configured accordingly be<strong>for</strong>e<br />

running this API.<br />

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