GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RAD750 / V1-3-6 > rad750_dump / rad750


Interface   Data Structures   File List   Data Fields   Globals  

RAD750_dump.c File Reference

RAD750 dump library function definitions. More...

#include "vxWorks.h"
#include "stdio.h"
#include "mv2600.h"
#include "drv/pci/pciConfigLib.h"
#include "drv/pci/pciConfigShow.h"
#include "drv/ppci/ppciRegs.h"
#include "drv/ppci/ppciPtim.h"
#include "drv/ppci/ppciClkCtrl.h"
#include "drv/ppci/ppciMem.h"
#include "drv/ppci/ppciInt.h"
#include "RAD750/RAD750_dump.h"
#include "RAD750_dump_private.h"

Functions

static void RAD750_dumpReg32 (volatile ULONG *addr, const char *name)
static void RAD750_dumpConfig32 (int bus, int dev, int func, unsigned short offset, const char *name)
static void RAD750_dumpConfig16 (int bus, int dev, int func, unsigned short offset, const char *name)
static void RAD750_dumpConfig8 (int bus, int dev, int func, unsigned short offset, const char *name)
static void RAD750_dumpControlReg (int bus, int dev, int func)
static void RAD750_dumpStatusReg (int bus, int dev, int func)
static void RAD750_dumpStatus2Reg (int bus, int dev, int func)
static void RAD750_dumpStatus2MaskReg (int bus, int dev, int func)
static void RAD750_dumpConfigurationReg (int bus, int dev, int func)
static void RAD750_dumpArbPriReg (int bus, int dev, int func)
static void RAD750_dumpPCIErrCheckReg (int bus, int dev, int func)
static void RAD750_dumpPCIErrStatusReg (int bus, int dev, int func)
static void RAD750_dumpUserAReg (int bus, int dev, int func)
static void RAD750_dumpUserBReg (int bus, int dev, int func)
static void RAD750_dumpUserCReg (int bus, int dev, int func)
static void RAD750_dumpMemController (void)
static void RAD750_dumpMemStatusReg (void)
static void RAD750_dumpMemIntrReg (void)
static void RAD750_dumpClkControlReg (void)
static void RAD750_dumpPidController (void)
static void RAD750_dumpPtimController (void)
static void RAD750_dumpClkPllReg (void)
static void RAD750_dumpIntEnableReg (void)
static void RAD750_dumpIntCollectionReg (void)
static void RAD750_dumpMiscIntStatusReg (void)
static void RAD750_dumpMiscIntEnableReg (void)
static void RAD750_dumpErrStatusReg (void)
static void RAD750_dumpErrStatusMaskReg (void)
static void RAD750_dumpPMControlReg (void)
static void RAD750_dumpEMCVecStatusReg (void)
static void RAD750_dumpEMCVecEnableReg (void)
static void RAD750_dumpMcpCollectionReg (void)
static void RAD750_dumpMcpEnableReg (void)
static void RAD750_dumpCpuDiscReg (void)
static void RAD750_dumpEmcVecCtlReg (void)
int RAD750_dumpRegs (RAD750_Dump_Options options)
 Dump the RAD750 board registers.

Variables

static const char * enableStr = "Enabled"
static const char * disableStr = "Disabled"
static const char * trueStr = "True"
static const char * falseStr = "False"


Detailed Description

RAD750 dump library function definitions.

Author:
D.L. Wood
These functions print to stdout the contents, meanings, and addresses of the various registers on-board the RAD750 CPU.

Function Documentation

static void RAD750_dumpArbPriReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI bus arbitration priority register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References PPCI_CFG_ARB_PRI.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpClkControlReg ( void   )  [static]

Displays the detailed contents of a PPCI clock control register.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpClkPllReg ( void   )  [static]

Displays the detailed contents of a PPCI clock CPU PLL register.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpConfig16 ( int  bus,
int  dev,
int  func,
unsigned short  offset,
const char *  name 
) [static]

Displays the contents of a 16-bit PPCI configuration register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.
offset The address of the configuration register.
name The name of the register for display.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpConfig32 ( int  bus,
int  dev,
int  func,
unsigned short  offset,
const char *  name 
) [static]

Displays the contents of a 32-bit PPCI configuration register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.
offset The address of the configuration register.
name The name of the register for display.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpConfig8 ( int  bus,
int  dev,
int  func,
unsigned short  offset,
const char *  name 
) [static]

Displays the contents of a 8-bit PPCI configuration register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.
offset The address of the configuration register.
name The name of the register for display.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpConfigurationReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI configuration header status 2 interrupt mask register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References disableStr, enableStr, falseStr, PPCI_CFG_CONFIG, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpControlReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI configuration header control register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpCpuDiscReg ( void   )  [static]

Displays the detailed contents of the PPCI CPU discretes register.

References CPU_DISC_CHECK_ENABLE, CPU_DISC_CRIT_ERR_DISABLE, CPU_DISC_CRIT_ERR_INJECT, CPU_DISC_HRESET, disableStr, enableStr, falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpEmcVecCtlReg ( void   )  [static]

Displays the detailed contents of the PPCI EMC vector control register.

References disableStr, enableStr, falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpEMCVecEnableReg ( void   )  [static]

static void RAD750_dumpEMCVecStatusReg ( void   )  [static]

static void RAD750_dumpErrStatusMaskReg ( void   )  [static]

Displays the detailed contents of the PPCI 60x error status mask register.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpErrStatusReg ( void   )  [static]

Displays the detailed contents of the PPCI 60x error status register.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpIntCollectionReg ( void   )  [static]

Displays the detailed contents of a PPCI master interrupt collection register.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpIntEnableReg ( void   )  [static]

Displays the detailed contents of a PPCI master interrupt enable register.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMcpCollectionReg ( void   )  [static]

Displays the detailed contents of the PPCI MCP interrupt collection register.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMcpEnableReg ( void   )  [static]

Displays the detailed contents of the PPCI MCP interrupt enable register.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMemController ( void   )  [static]

Gives a detailed display of the PPCI memory controller configuration.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMemIntrReg ( void   )  [static]

Displays the detailed contents of the PPCI memory controller interrupt enable register.

References disableStr, enableStr, MEM_ERR_CRITICAL, MEM_ERR_INIT_COMPLETE, MEM_ERR_REFRESH_COMPLETE, and MEM_ERR_SCRUB_COMPLETE.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMemStatusReg ( void   )  [static]

Displays the detailed contents of the PPCI memory controller status register.

References falseStr, MEM_ERR_CRITICAL, MEM_ERR_INIT_COMPLETE, MEM_ERR_REFRESH_COMPLETE, MEM_ERR_SCRUB_COMPLETE, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMiscIntEnableReg ( void   )  [static]

Displays the detailed contents of a PPCI miscellaneous interrupt enable register.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpMiscIntStatusReg ( void   )  [static]

Displays the detailed contents of a PPCI miscellaneous interrupt status register.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpPCIErrCheckReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI bus error checking register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References disableStr, enableStr, PPCI_CFG_ERR_CHECK, PPCI_ERR_CHK_ARB_CONTROL, PPCI_ERR_CHK_ARB_TIMEOUT, PPCI_ERR_CHK_DATA_CONTROL, PPCI_ERR_CHK_DATA_TIMEOUT, PPCI_ERR_CHK_PROTOCOL, and PPCI_ERR_CHK_RDY_PAR.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpPCIErrStatusReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI bus error status register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References PPCI_CFG_BUS_ERR_STATUS.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpPidController ( void   )  [static]

Displays the detailed contents of a PPCI PID controller registers.

References disableStr, and enableStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpPMControlReg ( void   )  [static]

Displays the detailed contents of a PPCI power management control register.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpPtimController ( void   )  [static]

Displays the detailed contents of a PPCI PTIM controller registers.

References disableStr, enableStr, falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpReg32 ( volatile ULONG *  addr,
const char *  name 
) [static]

Displays the contents of a 32-bit PPCI register.

Parameters:
addr The address of the register.
name The name of the register for display.

Referenced by RAD750_dumpRegs().

int RAD750_dumpRegs ( RAD750_Dump_Options  options  ) 

Dump the RAD750 board registers.

Displays the contents of the RAD750 PowerPCI ASIC hardware registers. Both the configuration space and I/O space registers are shown.

Parameters:
options The subsystems to display.
Return values:
0 Success.
-1 Failure.

References PPCI_CFG_ARB_PRI, PPCI_CFG_BAR1_ADJUST, PPCI_CFG_BUS_ERR_ADDR, PPCI_CFG_BUS_ERR_STATUS, PPCI_CFG_CONFIG, PPCI_CFG_ERR_CHECK, PPCI_CFG_ERR_INJECT, PPCI_CFG_REVISION_ID, PPCI_CFG_STATUS2, PPCI_CFG_STATUS2_MASK, PPCI_CFG_USER_A, PPCI_CFG_USER_B, PPCI_CFG_USER_C, PPCI_DEVICE_ID, PPCI_VENDOR_ID, RAD750_DUMP_OPT_60X, RAD750_DUMP_OPT_ALL, RAD750_DUMP_OPT_CLK, RAD750_DUMP_OPT_EMC, RAD750_DUMP_OPT_MEM, RAD750_DUMP_OPT_MISC, RAD750_DUMP_OPT_PCI, RAD750_DUMP_OPT_PID, RAD750_DUMP_OPT_PTIM, RAD750_dumpArbPriReg(), RAD750_dumpClkControlReg(), RAD750_dumpClkPllReg(), RAD750_dumpConfig16(), RAD750_dumpConfig32(), RAD750_dumpConfig8(), RAD750_dumpConfigurationReg(), RAD750_dumpControlReg(), RAD750_dumpCpuDiscReg(), RAD750_dumpEmcVecCtlReg(), RAD750_dumpEMCVecEnableReg(), RAD750_dumpEMCVecStatusReg(), RAD750_dumpErrStatusMaskReg(), RAD750_dumpErrStatusReg(), RAD750_dumpIntCollectionReg(), RAD750_dumpIntEnableReg(), RAD750_dumpMcpCollectionReg(), RAD750_dumpMcpEnableReg(), RAD750_dumpMemController(), RAD750_dumpMemIntrReg(), RAD750_dumpMemStatusReg(), RAD750_dumpMiscIntEnableReg(), RAD750_dumpMiscIntStatusReg(), RAD750_dumpPCIErrCheckReg(), RAD750_dumpPCIErrStatusReg(), RAD750_dumpPidController(), RAD750_dumpPMControlReg(), RAD750_dumpPtimController(), RAD750_dumpReg32(), RAD750_dumpStatus2MaskReg(), RAD750_dumpStatus2Reg(), RAD750_dumpStatusReg(), RAD750_dumpUserAReg(), RAD750_dumpUserBReg(), and RAD750_dumpUserCReg().

static void RAD750_dumpStatus2MaskReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI configuration header status 2 interrupt mask register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References disableStr, enableStr, and PPCI_CFG_STATUS2_MASK.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpStatus2Reg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI configuration header status 2 register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, PPCI_CFG_STATUS2, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpStatusReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI configuration header status register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpUserAReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI user defined A register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, PPCI_CFG_USER_A, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpUserBReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI user defined B register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, PPCI_CFG_USER_B, and trueStr.

Referenced by RAD750_dumpRegs().

static void RAD750_dumpUserCReg ( int  bus,
int  dev,
int  func 
) [static]

Gives a detailed display of the PPCI PCI user defined C register.

Parameters:
bus The PPCI bus number.
dev The PPCI device number.
func The PPCI function number.

References falseStr, PPCI_CFG_USER_C, trueStr, USERC_ADDR_WAIT, USERC_DBWO_ENABLE, USERC_NO_SNOOP_ENABLE, and USERC_SNOOP_WAIT.

Referenced by RAD750_dumpRegs().


Variable Documentation

disableStr = "Disabled" [static]

enableStr = "Enabled" [static]

falseStr = "False" [static]

trueStr = "True" [static]


Generated on Wed Nov 21 17:57:38 2012 by  doxygen 1.5.8