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.h File Reference

Power PCI bridge memory interface datatypes and function prototypes. More...

#include "vxWorks.h"
#include "drv/ppci/ppciRegs.h"

Include dependency graph for ppciMem.h:

This graph shows which files directly or indirectly include this file:


Memory Interrupt Functions

typedef enum memIntLvl memIntLvl_t
enum  memIntLvl {
  MEM_STAT_REFRESH_COMP = 0,
  MEM_STAT_SCRUB_COMP = 1,
  MEM_STAT_MEM_INIT_COMP = 2,
  MEM_STAT_SINGLE_CORRECT = 3,
  MEM_STAT_NIBBLE_CORRECT = 4,
  MEM_ERR_UNCORR_DATA = 5,
  MEM_ERR_UNCORR_ADDR = 6,
  MEM_ERR_BAD_ADDRESS = 7,
  MEM_ERR_ROM_WRITE_ERROR = 8,
  MEM_ERR_MEM_REFRESH_OVF = 9,
  MEM_ERR_INV_MEM_CFG_CMD = 10,
  MEM_ERR_INV_MEM_CFG_ADDR = 11,
  MEM_ERR_MEM_CFG_BE_PAR = 12,
  MEM_ERR_MEM_CFG_DATA_PAR = 13,
  MEM_ERR_MEM_CFG_ADDR_PAR = 14,
  MEM_ERR_INV_MEM_REQUEST = 15,
  MEM_ERR_MEM_REQUEST_BE_PAR = 16,
  MEM_ERR_MEM_REQUEST_PAR = 17,
  MEM_ERR_ADD_PARITY = 18,
  MEM_ERR_CRIT_ERROR = 19
}
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.

Memory Support 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.
void ppciMemInit (void)
 Memory initialization routine, first part.
void ppciMemInit2 (void)
 Memory initialization routine, second part.

Detailed Description

Power PCI bridge memory interface datatypes and function prototypes.

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

Description:

Power PCI bridge memory interface datatypes and function prototypes. See ppciMem.c for detailed descriptions of the functions.

Restrictions:

Change History:

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

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


Typedef Documentation

memIntLvl_t
 

The typedef for memIntLvl.


Enumeration Type Documentation

enum memIntLvl
 

The memory controller interrupt levels.

Enumerator:
MEM_STAT_REFRESH_COMP  Memory controller interrupt level.
MEM_STAT_SCRUB_COMP  Memory controller interrupt level.
MEM_STAT_MEM_INIT_COMP  Memory controller interrupt level.
MEM_STAT_SINGLE_CORRECT  Memory controller interrupt level.
MEM_STAT_NIBBLE_CORRECT  Memory controller interrupt level.
MEM_ERR_UNCORR_DATA  Memory controller interrupt level.
MEM_ERR_UNCORR_ADDR  Memory controller interrupt level.
MEM_ERR_BAD_ADDRESS  Memory controller interrupt level.
MEM_ERR_ROM_WRITE_ERROR  Memory controller interrupt level.
MEM_ERR_MEM_REFRESH_OVF  Memory controller interrupt level.
MEM_ERR_INV_MEM_CFG_CMD  Memory controller interrupt level.
MEM_ERR_INV_MEM_CFG_ADDR  Memory controller interrupt level.
MEM_ERR_MEM_CFG_BE_PAR  Memory controller interrupt level.
MEM_ERR_MEM_CFG_DATA_PAR  Memory controller interrupt level.
MEM_ERR_MEM_CFG_ADDR_PAR  Memory controller interrupt level.
MEM_ERR_INV_MEM_REQUEST  Memory controller interrupt level.
MEM_ERR_MEM_REQUEST_BE_PAR  Memory controller interrupt level.
MEM_ERR_MEM_REQUEST_PAR  Memory controller interrupt level.
MEM_ERR_ADD_PARITY  Memory controller interrupt level.
MEM_ERR_CRIT_ERROR  Memory controller interrupt level.


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


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