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

Software Modules<br />

External Apis<br />

void frcDbIntCtrlInit(void)<br />

The Interrupt handler has a table which holds in<strong>for</strong>mation on the<br />

connected user ISR. An Interrupt generated by one of the doorbell<br />

bits will result a search through this table in order to allocate the<br />

generating interrupt cause. After the initiating interrupt cause is<br />

identify, the ISR reside in the same table entry is executed. The<br />

controller interface also includes interrupt control routines which<br />

can enable/disable specific interrupts.<br />

• VxDbIntCtrl.c<br />

• VxDbIntCtrl.h<br />

INPUT Not Applicable<br />

This routines connects the drivers interrupt handler, to its corresponding<br />

bits in the MV device main Interrupt Controller using<br />

the gtIntConnect() routine. It is also cleans and masks interrupts.<br />

OUTPUT The Doorbell cause & mask register are initialized (set to zero).<br />

Driver's ISR are connected to the main cause register.<br />

RETURNS Not Applicable<br />

STATUS frcDbIntConnect(DB_CAUSE cause,VOIDFUNCPTR routine, int parameter, int prio)<br />

DESCRIPTION This routine connects a specified user ISR to a specified Doorbell<br />

interrupt cause. The ISR handler has its own user ISR array. The<br />

connection is done by setting the desired routine and parameter in<br />

the cause array (dbCauseArray[ ])<br />

Check <strong>for</strong> existing connection <strong>for</strong> the cause bit in the table.<br />

Connecting the user ISR by inserting the given parameters into<br />

an entry according to the user ISR given priority.<br />

INPUT<br />

DB_CAUSE cause Doorbell interrupt cause. See SDMA_DB.<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 - 135

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

Saved successfully!

Ooh no, something went wrong!