GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > VXW / V7-0-2
Constituent: vxw_tornado_sio     Tag: rad750
#include "vxWorks.h"
#include "intLib.h"
#include "drv/ppci/asmFns.h"
#include "drv/ppci/isrRouter.h"
#include "drv/ppci/ppciRegs.h"
#include "drv/ppci/ppciInt.h"
#include "drv/ppci/ppciPid.h"
Include dependency graph for ppciPid.c:
Defines | |
#define | quadletSwap(QUAD) |
Functions | |
STATUS | pidCnf (int pidNum, int type, int inSen, int outSrc) |
Configure a PID. | |
STATUS | pidSet (int pidNum, int value) |
Set the value of a PID. | |
int | pidGet (int pidNum) |
Get the value of a PID. | |
STATUS | pidIntEnable (int pidNum) |
Enable a PID PPC interrupt. | |
STATUS | pidIntDisable (int pidNum) |
Disable a PID PPC interrupt. | |
STATUS | pidIntConnect (int pidNum, VOIDFUNCPTR isr, int parm) |
Connect to a PID interrupt. | |
STATUS | pidIntEmcEnable (int pidNum) |
Enable a PID EMC interrupt. | |
STATUS | pidIntEmcDisable (int pidNum) |
Disable a PID EMC interrupt. | |
STATUS | pidEdgeClear (int pidNum) |
void | ppciPidInit (void) |
Variables | |
isrRoutingInfo_t | pidRoutingInfo |
-------------------------------------------------------------------------
Description:
PowerPCI ASIC PID routines.
Restrictions:
Change History:
Date Pgm Description -------- --- ------------------------------------------------------ 04/21/00 MJF Initial Release 01/03/01 DS BSP integration. 03/09/01 MJF Corrected writes to pidOut reg. in pidSet 03/03/03 CH Update to allow pidSet before pidCnf, and to disable a a PID with pidCnf. --------------------------------------------------------------------------
|
Value: QUAD = (((QUAD >> 24) & 0x000000ff) | ((QUAD >> 8) & 0x0000ff00)\ | ((QUAD << 8) & 0x00ff0000) | ((QUAD << 24) & 0xff000000)) Reverses the bytes of a 32 bit quadlet from ABCD to DCBA |
|
Configure a PID. This routine configures a PID. Input PIDs can be (active low) level sensitive or (negative) edge sensitive. Output PIDs can be sourced from either a timer or the PID output register.
|
|
This routine clears the latched bit in the input register indicating an input edge was detected.
|
|
Get the value of a PID. This routine returns the value (0 or 1) of the specified PID. The PID must be configured as an input.
|
|
Connect to a PID interrupt. This routine connects an interrupt service routine (ISR) to a PowerPCI bridge PID interrupt level. PID interrupts are enabled separate from this routine (by pidIntEnable). The interrupt level being connected should not be enabled when this routine is called. The specified ISR will get control with interrupts disabled.
|
|
Disable a PID PPC interrupt. This routine disables the specified PID as an interrupt (to the processor). The PID must be configured as an input.
|
|
Disable a PID EMC interrupt. This routine disables the specified PID as an interrupt to the EMC. The PID must be configured as an input.
|
|
Enable a PID EMC interrupt. This routine enables the specified PID as an interrupt to the EMC. The PID must be configured as an input.
|
|
Enable a PID PPC interrupt. This routine enables the specified PID as an interrupt (to the processor). The PID must be configured as an input.
|
|
Set the value of a PID. This routine sets a PID to a specified value. The PID does not have to be configured as an output.
|
|
This init routine is called by ppciInit (from sysHwInit) during system boot. Interrupt routing resources are initialized. |
|
Initial value: { {{NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}, {NULL, 0}}, &ppciPidInput, &ppciPidIntEnable, TRUE, TRUE } |