GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> VXW / dev > vxw_symbol / rad750
#include <vxWorks.h>
#include <drv/ppci/asmFns.h>
#include <drv/ppci/ppciRegs.h>
#include <drv/ppci/ppciMem.h>
#include <drv/ppci/ppciInt.h>
#include <drv/ppci/isrRouter.h>
Functions | |
STATUS | memAutoInit (void *start, void *end, unsigned int dataLo, unsigned int dataHi, int pollUntilComplete) |
Initialize a block of memory. | |
STATUS | memAutoScrub (int bank, memScrubMode_t mode, int delay) |
Configure memory bank scrubbing. | |
void | memReadErrLog (int *pErrLogEntry) |
Read memory error log. | |
STATUS | memIntEnable (memIntLvl_t intLvl) |
Enable a PowerPCI memory interrupt level. | |
STATUS | memIntDisable (memIntLvl_t intLvl) |
Disable a PowerPCI memory interrupt level. | |
STATUS | memIntConnect (memIntLvl_t intLvl, VOIDFUNCPTR isr, int parm) |
Connect ISR to PowerPCI memory interrupt level. | |
void | ppciMemInit (void) |
Memory initialization routine, first part. | |
void | ppciMemInit2 (void) |
Memory initialization routine, second part. | |
Variables | |
static isrRoutingInfo_t | memRoutingInfo |
-----------------------------------------------------------------------------
Restrictions:
Change History:
Date Pgm Description -------- --- ------------------------------------------------------ 01/12/00 DS Created.
-----------------------------------------------------------------------------
STATUS memAutoInit | ( | void * | start, | |
void * | end, | |||
unsigned int | dataLo, | |||
unsigned int | dataHi, | |||
int | pollUntilComplete | |||
) |
Initialize a block of memory.
----------------------------------------------------------------------------
This routine initializes a block of memory. The memory block must begin and end on a 32-byte boundary. The option is given to poll until memory initialization is complete. Altenatively, a user interrupt handler can be installed to repsond to the memory initliaization complete interrupt.
start | - Address of the first 32-byte block to initialize. Must be aligned to a 32-byte boundary. | |
end | - Address of the last 32-byte block to initialize. Must be aligned to a 32-byte boundary. | |
dataHi | - 32 msbs of pattern to put in block | |
dataLo | - 32 lsbs of pattern to put in block | |
pollUntilComplete | - If TRUE, poll hardware until initialization is complete. |
STATUS memAutoScrub | ( | int | bank, | |
memScrubMode_t | mode, | |||
int | delay | |||
) |
Configure memory bank scrubbing.
----------------------------------------------------------------------------
This routine configures the scrubbing mode for a bank of memory.
bank | - Memory bank to scrub. | |
mode | - Type of scrub. | |
delay | - Delay between scrub cycles. -1 to leave delay as is. |
References MAX_NUM_MEM_BANKS, and SCRUB_ACTIVE_ALWAYS.
STATUS memIntConnect | ( | memIntLvl_t | intLvl, | |
VOIDFUNCPTR | isr, | |||
int | parm | |||
) |
Connect ISR to PowerPCI memory interrupt level.
Connect ISR to PowerPCI memory interrupt level
This routine connects an interrupt service routine (ISR) to PowerPCI bridge memory controller interrupt level. Memory interrupts are enabled separate from this routine (by memIntEnable()). The interrupt level being connected should not be enable when this routine is called. The specified ISR will get control with interrupts disabled.
intLvl | - The PPCI memory interrupt level. | |
isr | - Pointer to the ISR. | |
parm | - A user-defined parameter to pass to the ISR when the interrupt occurs. |
References isrIntConnect(), and NUM_MEM_INT_LVLS.
Referenced by ppciMemInit2().
STATUS memIntDisable | ( | memIntLvl_t | intLvl | ) |
Disable a PowerPCI memory interrupt level.
Disable a PowerPCI memory interrupt level
This routine disables the specified memory controller interrupt level of the PowerPCI bridge.
intLvl | - The PPCI memory interrupt level to disable. |
References NUM_MEM_INT_LVLS.
STATUS memIntEnable | ( | memIntLvl_t | intLvl | ) |
Enable a PowerPCI memory interrupt level.
Enable a PowerPCI memory interrupt level
This routine enables the specified memory controller interrupt level of the PowerPCI bridge.
intLvl | - The PPCI memory interrupt level to enable. |
References NUM_MEM_INT_LVLS.
Referenced by ppciMemInit2().
void memReadErrLog | ( | int * | pErrLogEntry | ) |
Read memory error log.
----------------------------------------------------------------------------
This routine reads and returns the 64-bit memory error log entry from the Power PCI bridge.
pErrLogEntry | - Pointer to 64-bit location where error log entry is written. |
memRoutingInfo [static] |
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}}, &ppciMemStatus, &ppciMemIntEnable, TRUE, TRUE }