GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> RAD750 / V1-3-6 > rad750_dump / rad750
#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" |
These functions print to stdout the contents, meanings, and addresses of the various registers on-board the RAD750 CPU.
static void RAD750_dumpArbPriReg | ( | int | bus, | |
int | dev, | |||
int | func | |||
) | [static] |
Gives a detailed display of the PPCI PCI bus arbitration priority register.
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.
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.
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.
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.
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.
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] |
Displays the detailed contents of the PPCI EMC vector enable register.
References disableStr, enableStr, PPCI_VEC_60X_CRIT_ERR, PPCI_VEC_CAT_CRIT_ERR, PPCI_VEC_CHECKSTOP, PPCI_VEC_CPU_INT, PPCI_VEC_EMC_CRIT_ERR, PPCI_VEC_JTAG_MAST_CRIT_ERR, PPCI_VEC_JTAG_MS_MAST_CRIT_ERR, PPCI_VEC_JTAG_MS_SLV_CRIT_ERR, PPCI_VEC_MEM_CRIT_ERR, PPCI_VEC_MISC_CRIT_ERR, PPCI_VEC_OCB_CRIT_ERR, PPCI_VEC_PCI_CRIT_ERR, PPCI_VEC_TIMER_1, PPCI_VEC_TIMER_2, PPCI_VEC_TIMER_3, PPCI_VEC_UART_CRIT_ERR, and PPCI_VEC_WDT_EXPIRE.
Referenced by RAD750_dumpRegs().
static void RAD750_dumpEMCVecStatusReg | ( | void | ) | [static] |
Displays the detailed contents of the PPCI EMC vector status register.
References falseStr, PPCI_VEC_60X_CRIT_ERR, PPCI_VEC_CAT_CRIT_ERR, PPCI_VEC_CHECKSTOP, PPCI_VEC_CPU_INT, PPCI_VEC_EMC_CRIT_ERR, PPCI_VEC_JTAG_MAST_CRIT_ERR, PPCI_VEC_JTAG_MS_MAST_CRIT_ERR, PPCI_VEC_JTAG_MS_SLV_CRIT_ERR, PPCI_VEC_MEM_CRIT_ERR, PPCI_VEC_MISC_CRIT_ERR, PPCI_VEC_OCB_CRIT_ERR, PPCI_VEC_PCI_CRIT_ERR, PPCI_VEC_TIMER_1, PPCI_VEC_TIMER_2, PPCI_VEC_TIMER_3, PPCI_VEC_UART_CRIT_ERR, PPCI_VEC_WDT_EXPIRE, and trueStr.
Referenced by RAD750_dumpRegs().
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.
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.
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.
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.
options | The subsystems to display. |
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.
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.
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.
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.
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.
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.
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().
disableStr = "Disabled" [static] |
The string "Disabled".
Referenced by RAD750_dumpClkControlReg(), RAD750_dumpConfigurationReg(), RAD750_dumpCpuDiscReg(), RAD750_dumpEmcVecCtlReg(), RAD750_dumpEMCVecEnableReg(), RAD750_dumpErrStatusMaskReg(), RAD750_dumpIntEnableReg(), RAD750_dumpMcpEnableReg(), RAD750_dumpMemIntrReg(), RAD750_dumpMiscIntEnableReg(), RAD750_dumpPCIErrCheckReg(), RAD750_dumpPidController(), RAD750_dumpPtimController(), and RAD750_dumpStatus2MaskReg().
enableStr = "Enabled" [static] |
The string "Enabled".
Referenced by RAD750_dumpClkControlReg(), RAD750_dumpConfigurationReg(), RAD750_dumpCpuDiscReg(), RAD750_dumpEmcVecCtlReg(), RAD750_dumpEMCVecEnableReg(), RAD750_dumpErrStatusMaskReg(), RAD750_dumpIntEnableReg(), RAD750_dumpMcpEnableReg(), RAD750_dumpMemIntrReg(), RAD750_dumpMiscIntEnableReg(), RAD750_dumpPCIErrCheckReg(), RAD750_dumpPidController(), RAD750_dumpPtimController(), and RAD750_dumpStatus2MaskReg().
falseStr = "False" [static] |
The string "False".
Referenced by RAD750_dumpConfigurationReg(), RAD750_dumpControlReg(), RAD750_dumpCpuDiscReg(), RAD750_dumpEmcVecCtlReg(), RAD750_dumpEMCVecStatusReg(), RAD750_dumpErrStatusReg(), RAD750_dumpIntCollectionReg(), RAD750_dumpMcpCollectionReg(), RAD750_dumpMemController(), RAD750_dumpMemStatusReg(), RAD750_dumpMiscIntStatusReg(), RAD750_dumpPtimController(), RAD750_dumpStatus2Reg(), RAD750_dumpStatusReg(), RAD750_dumpUserAReg(), RAD750_dumpUserBReg(), and RAD750_dumpUserCReg().
trueStr = "True" [static] |
The string "True".
Referenced by RAD750_dumpConfigurationReg(), RAD750_dumpControlReg(), RAD750_dumpCpuDiscReg(), RAD750_dumpEmcVecCtlReg(), RAD750_dumpEMCVecStatusReg(), RAD750_dumpErrStatusReg(), RAD750_dumpIntCollectionReg(), RAD750_dumpMcpCollectionReg(), RAD750_dumpMemController(), RAD750_dumpMemStatusReg(), RAD750_dumpMiscIntStatusReg(), RAD750_dumpPtimController(), RAD750_dumpStatus2Reg(), RAD750_dumpStatusReg(), RAD750_dumpUserAReg(), RAD750_dumpUserBReg(), and RAD750_dumpUserCReg().