GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-9-0
Constituent: pbc_bootshell     Tag: rad750
#include <drv/ppci/ppciRegs.h>
#include "asmFns.h"
#include "PBC/PBC.h"
#include "PBC/PBC_msgs.h"
#include "bootshell.h"
#include "PBC/PBC_string.h"
#include "pbc_sio.h"
#include "MEM/MEM_map.h"
Include dependency graph for booterr.c:
Data Structures | |
struct | _pbc_ErrorLogEntry |
Boot error log entry. More... | |
struct | _pbc_ErrorLog |
Boot error log master structure. More... | |
struct | _pbc_ErrorRegEntry |
Error register table entry. More... | |
Defines | |
#define | pbc_ERROR_LOG_SIZE (256) |
#define | PBC_ERROR_NUM_REG_ENTRIES (sizeof (pbc_errorRegList) / sizeof (pbc_errorRegList[0])) |
Typedefs | |
typedef _pbc_ErrorLogEntry | pbc_ErrorLogEntry |
typedef for _pbc_ErrorLogEntry | |
typedef _pbc_ErrorLog | pbc_ErrorLog |
typedef for _pbc_ErrorLog | |
typedef _pbc_ErrorRegEntry | pbc_ErrorRegEntry |
typedef for _pbc_ErrorRegEntry | |
Functions | |
void | Pbc_ErrorLogInit () |
Initialize PBC error log. | |
void | PBC_ErrorLog (const int errorCode) |
Log error message in primary boot code. | |
void | Pbc_ErrorLogPop () |
Pop oldest entry from the error ring. | |
void | Pbc_ErrorLogStats (unsigned int *totalCount, unsigned int *ringCount, unsigned int *queuedCode, unsigned int *lastCode) |
Get state of PBC error log. | |
void | Pbc_ErrCheck (void) |
Check for errors reported in PPCI registers. | |
Variables | |
pbc_ErrorLog | pbc_masterErrorLog |
pbc_ErrorRegEntry | pbc_errorRegList [] |
CVS $Id: booterr.c,v 1.6 2005/03/01 20:13:32 dmay Exp $
Boot error handling, including the error log.
|
The size (in entries) of the PBC error log ring buffer. |
|
Number of elements in the pbc_errorRegList array. |
|
Check for errors reported in PPCI registers. Checks error registers within the PPCI bridge chip and reports any pending errors.
|
|
Log error message in primary boot code. Right now, just print out to the screen. Later, we will log the errors in telemetry.
|
|
Initialize PBC error log. Initialize error long structure. All counters cleared. Ring buffer is reset. Last error is erased. |
|
Pop oldest entry from the error ring. Pop oldest entry from the error ring. The "first" pointer is moved forward by one error entry. This routine has no effect if the error log is empty. |
|
Get state of PBC error log. Return information about the error log. Returns both error counts (total errors & number of errors in the ring). Also returns the oldest and lastest error codes. The return contents of lastCode will only be valid if totalCount is non-zero. The return contents of firstCode will only be valid if ringCount is non-zero.
|
|
List of PPCI error register bits to monitor. |
|
The PBC master error log. I don't make this static so the name gets in the symbol table. That way I can dump the structure. |