GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > VXW / V7-1-1

Constituent: vxw_flight     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

ppciMem.c File Reference

Function definitions for Power PCI bridge memory interface routines. More...

#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"

Include dependency graph for ppciMem.c:


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

Detailed Description

Function definitions for Power PCI bridge memory interface routines.

-----------------------------------------------------------------------------

Restrictions:

Change History:

Date Pgm Description -------- --- ------------------------------------------------------ 01/12/00 DS Created.

-----------------------------------------------------------------------------


Function Documentation

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.

Parameters:
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.

Parameters:
bank - Memory bank to scrub.
mode - Type of scrub.
delay - Delay between scrub cycles. -1 to leave delay as is.
----------------------------------------------------------------------------

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.

Parameters:
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.
Returns:
OK or ERROR

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.

Parameters:
intLvl - The PPCI memory interrupt level to disable.
Returns:
OK or ERROR

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.

Parameters:
intLvl - The PPCI memory interrupt level to enable.
Returns:
OK or ERROR.

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.

Parameters:
pErrLogEntry - Pointer to 64-bit location where error log entry is written.
----------------------------------------------------------------------------


Variable Documentation

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                                          
}
Misc interrupt routing table.


Generated on Sat Feb 2 01:36:27 2008 by  doxygen 1.4.4