GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> CTDB / V5-5-6 > sumt_rt_sib / rad750
#include <vxWorks.h>
#include <intLib.h>
#include <iv.h>
#include <pci.h>
#include <CTDB/SUMT_rt.h>
#include <PBS/SPIN.h>
#include <MSG/MSG_pubdefs.h>
#include <FBS/FBS_pubrtos.h>
#include <SUMT_rt_private.h>
#include <SUMT_rt_board.h>
#include <mv2600.h>
#include <drv/pci/pciConfigLib.h>
#include <drv/pci/pciIntLib.h>
#include <drv/sib/sib.h>
Functions | |
unsigned int | SUMT_rtBoardInit (SUMT_RT *rt) |
Initialize the Summit target board hardware. | |
unsigned int | SUMT_rtBoardIntrConnect (SUMT_RT *rt) |
Connect the Summit target board interrupt. | |
unsigned int | SUMT_rtBoardIntrDisconnect (SUMT_RT *rt) |
Disconnect 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. |
Each supported target board has a different implementation of these functions. This module supports the LAT SIB cPCI Summit board.
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.
rt | A device descriptor. |
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.
rt | A device descriptor. |
Referenced by SUMT_rtInit(), and SUMT_rtIntr().
iunsigned int SUMT_rtBoardIntrConnect | ( | SUMT_RT * | rt | ) |
Connect the Summit target board interrupt.
Attaches the Summit driver interrupt handler to the board interrupt signal.
rt | A device descriptor. |
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.
rt | A device descriptor. |
Referenced by SUMT_rtInit(), and SUMT_rtTerminate().
void SUMT_rtBoardIntrDisconnect | ( | SUMT_RT * | rt | ) |
Disconnect the Summit target board interrupt.
Dettaches the Summit driver interrupt handler from the board interrupt signal.
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.
rt | A device descriptor. |
Referenced by SUMT_rtInit().