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

OUTPUT Not Applicable<br />

RETURNS Not Applicable<br />

GLOBAL STATUS frcBibAttach(UINT32 handle )<br />

The file that contains BIB in<strong>for</strong>mation can be defined using the<br />

The BIB description language section in the BIB specifications.<br />

Then the definition file which has an extension .bib and the<br />

frcBib.h file are provided as input to the mk_bib tool .The output<br />

of which is fed along with the product specific in<strong>for</strong>mation in the<br />

SAP file to the upd_bib which gives the final bib image that should<br />

be stored on the network.<br />

The tool chain is as follows.<br />

+ Tool Chain<br />

file.bib, frcBIB.h -> mk_bib : rawBIB.x -> upd_bib :<br />

finalBIB.x<br />

^<br />

BarCode -> SerialNum -> SAP : sap_info.dat ____|<br />

The tools in detail<br />

mk_bib : BIB Compiler, generates a "raw" BIB Srecord<br />

file.<br />

upd_bib : Updates the "raw" BIB with board-specific data<br />

(from file "sap_info.dat") and recalculates the checksum.<br />

Generates<br />

a "final" BIB image (S-record file).<br />

DESCRIPTION This routine must be called once to attach a handle to a BIB device,<br />

usually an I 2 C-bus EEPROM (ID-ROM). The handle is used as a<br />

unique identifier <strong>for</strong> the internal driver structures, and it is passed<br />

to the interface routines bibReadIntfRtn() and bib-<br />

WriteIntfRtn(), which are specified in the structure<br />

BIB_INTF, referred by pIntf. As described in section "3.1 Data<br />

Block Structure" of The Board In<strong>for</strong>mation Block (BIB) Version 2.0<br />

document by Force Computers, more than one data block can be<br />

stored in the same IDROM by building a linked list. The driver<br />

searches this linked list of data blocks <strong>for</strong> a valid BIB image, verifies<br />

its checksum and copies the BIB image into an internal memory<br />

buffer. The routine returns ERROR in case of insufficient<br />

memory, if the device cannot be read, no BIB is found, or the BIB<br />

image is not valid.<br />

INPUT The address of the EEPROM device that has to be attached.<br />

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