GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-5 > vsbc_bc_pmc1553 / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

VSBC_bc_board_pmc1553.c File Reference

Board-specific functions for Summit target boards. More...

#include <vxWorks.h>
#include <intLib.h>
#include <iv.h>
#include <pci.h>
#include <CTDB/VSBC_bc.h>
#include <MSG/MSG_pubdefs.h>
#include <VSBC_bc_private.h>
#include <VSBC_bc_board.h>
#include <mv2600.h>
#include <drv/pci/pciConfigLib.h>
#include <drv/pci/pciIntLib.h>
#include <SUMT_pmc1553.h>

Functions

unsigned int VSBC_bcBoardInit (VSBC_BC *bc)
 Initialize the Summit target board hardware.
unsigned int VSBC_bcBoardIntrConnect (VSBC_BC *bc)
 Connect the Summit target board interrupt.
unsigned int VSBC_bcBoardIntrDisconnect (VSBC_BC *bc)
 Disconnect the Summit target board interrupt.
void VSBC_bcBoardIntrEnable (VSBC_BC *bc)
 Enable the Summit target board interrupt.
void VSBC_bcBoardIntrDisable (VSBC_BC *bc)
 Disable the Summit target board interrupt.
void VSBC_bcBoardIntrAck (VSBC_BC *bc)
 Acknowledge a Summit target board interrupt.


Detailed Description

Board-specific functions for Summit target boards.

Author:
D.L. Wood
Each supported target board has a different implementation of these functions. This module supports the Alphi PMC1553 Summit board.

Function Documentation

unsigned int VSBC_bcBoardInit ( VSBC_BC bc  ) 

Initialize the Summit target board hardware.

Initializes the board specific functionallity of a Summit hardware board. The board is mapped into the appropriate bus address and the interrupt configuration is setup.

Parameters:
bc A device descriptor.
Returns:
A CTDB MSG code.

References _VSBC_BC::base_addr, _VSBC_BC::intr_level, _VSBC_BC::intr_vector, _VSBC_BC::mem_addr, _VSBC_BC::mem_size, PMC1553_DEVICE_ID, PMC1553_OFFSET_AMCC_INTCSR, PMC1553_OFFSET_AMCC_MCSR, PMC1553_SIZE_MEM, PMC1553_VENDOR_ID, and _VSBC_BC::sumt_regs.

Referenced by VSBC_bcInit().

void VSBC_bcBoardIntrAck ( VSBC_BC bc  ) 

Acknowledge a Summit target board interrupt.

Acknowledge and clear the Summit board interrupt.

Parameters:
bc A device descriptor.

Referenced by VSBC_bcInit(), and VSBC_bcIntr().

unsigned int VSBC_bcBoardIntrConnect ( VSBC_BC bc  ) 

Connect the Summit target board interrupt.

Attaches the Summit driver interrupt handler to the board interrupt signal.

Parameters:
bc A device descriptor.
Returns:
A CTDB MSG code.

References _VSBC_BC::intr_vector, and VSBC_bcIntr().

Referenced by VSBC_bcInit().

void VSBC_bcBoardIntrDisable ( VSBC_BC bc  ) 

Disable the Summit target board interrupt.

Disables the Summit board interrupt.

Parameters:
bc A device descriptor.

Referenced by VSBC_bcInit(), and VSBC_bcTerminate().

unsigned int VSBC_bcBoardIntrDisconnect ( VSBC_BC bc  ) 

Disconnect the Summit target board interrupt.

Dettaches the Summit driver interrupt handler from the board interrupt signal.

Parameters:
bc A device descriptor.

References _VSBC_BC::intr_vector, and VSBC_bcIntr().

Referenced by VSBC_bcTerminate().

void VSBC_bcBoardIntrEnable ( VSBC_BC bc  ) 

Enable the Summit target board interrupt.

Enables the Summit board interrupt.

Parameters:
bc A device descriptor.

Referenced by VSBC_bcInit().


Generated on Tue Sep 27 14:35:36 2011 by  doxygen 1.5.8