GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-6 > sumt_rt_sib / rad750


Interface   Data Structures   File List   Data Fields   Globals  

SUMT_rt_board.h File Reference

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

#include <CTDB/SUMT_rt.h>
#include <SUMT_rt_private.h>
#include <SUMT_private.h>

Functions

unsigned int SUMT_rtBoardInit (SUMT_RT *rt)
 Initialize the Summit target board hardware.
unsigned int SUMT_rtBoardIntrDisconnect (SUMT_RT *rt)
 Disconnect the Summit target board interrupt.
unsigned int SUMT_rtBoardIntrConnect (SUMT_RT *rt)
 Connect the Summit target board interrupt.
void SUMT_rtBoardIntrEnable (SUMT_RT *rt)
 Enable the Summit target board interrupt.
void SUMT_rtBoardIntrDisable (SUMT_RT *rt)
 Disable the Summit target board interrupt.
void SUMT_rtBoardIntrAck (SUMT_RT *rt)
 Acknowledge a Summit target board interrupt.


Detailed Description

Board-specific functions prototypes for Summit target boards.

Author:
D.L. Wood

Function Documentation

unsigned int SUMT_rtBoardInit ( SUMT_RT rt  ) 

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.

The board-specific function is resposible for initializing the following members of the rt structure:

base_addr - The base address of shared memory as seen by the Summit controller.
mem_addr - The base address of shared memory as seen by the CPU.
mem_size - The size in bytes of the shared memory.
sum_regs - The local address of the Summit registers.
intr_level - The local interrupt level number.
intr_vector - The local interrupt vector number.

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

References _SUMT_RT::base_addr, _SUMT_RT::intr_level, _SUMT_RT::intr_vector, _SUMT_RT::mem_addr, _SUMT_RT::mem_size, SUMT_DELAY_RESET_HW, and _SUMT_RT::sumt_regs.

Referenced by SUMT_rtInit().

void SUMT_rtBoardIntrAck ( SUMT_RT rt  ) 

Acknowledge a Summit target board interrupt.

Acknowledge and clear the Summit board interrupt.

Parameters:
rt A device descriptor.

Referenced by SUMT_rtInit(), and SUMT_rtIntr().

unsigned int SUMT_rtBoardIntrConnect ( SUMT_RT rt  ) 

Connect the Summit target board interrupt.

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

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

References _SUMT_RT::intr_vector, and SUMT_rtIntr().

Referenced by SUMT_rtInit().

void SUMT_rtBoardIntrDisable ( SUMT_RT rt  ) 

Disable the Summit target board interrupt.

Disables the Summit board interrupt.

Parameters:
rt A device descriptor.

Referenced by SUMT_rtInit(), and SUMT_rtTerminate().

unsigned int SUMT_rtBoardIntrDisconnect ( SUMT_RT rt  ) 

Disconnect the Summit target board interrupt.

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

Parameters:
rt A device descriptor.

References _SUMT_RT::intr_vector, and SUMT_rtIntr().

Referenced by SUMT_rtTerminate().

void SUMT_rtBoardIntrEnable ( SUMT_RT rt  ) 

Enable the Summit target board interrupt.

Enables the Summit board interrupt.

Parameters:
rt A device descriptor.

Referenced by SUMT_rtInit().


Generated on Wed Nov 21 20:04:38 2012 by  doxygen 1.5.8