GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > PBC / V4-9-0

Constituent: pbc_bootshell     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

booterr.c File Reference

Boot error log. More...

#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 []

Detailed Description

Boot error log.

Author:
Ray Caperoon
Date:
Thu Dec 11 13:50:51 2003
  CVS $Id: booterr.c,v 1.6 2005/03/01 20:13:32 dmay Exp $
  

Boot error handling, including the error log.


Define Documentation

#define pbc_ERROR_LOG_SIZE   (256)
 

The size (in entries) of the PBC error log ring buffer.

#define PBC_ERROR_NUM_REG_ENTRIES   (sizeof (pbc_errorRegList) / sizeof (pbc_errorRegList[0]))
 

Number of elements in the pbc_errorRegList array.


Function Documentation

void Pbc_ErrCheck void   ) 
 

Check for errors reported in PPCI registers.

Checks error registers within the PPCI bridge chip and reports any pending errors.

Returns:
Nothing.

void PBC_ErrorLog const int  errorCode  ) 
 

Log error message in primary boot code.

Right now, just print out to the screen. Later, we will log the errors in telemetry.

Parameters:
errorCode Integer error code from PBC_msg.h

void Pbc_ErrorLogInit  ) 
 

Initialize PBC error log.

Initialize error long structure. All counters cleared. Ring buffer is reset. Last error is erased.

void Pbc_ErrorLogPop void   ) 
 

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.

void Pbc_ErrorLogStats unsigned int *  totalCount,
unsigned int *  ringCount,
unsigned int *  queuedCode,
unsigned int *  lastCode
 

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.

Parameters:
totalCount Total number of errors reported.
ringCount Total number of errors in the error ring.
queuedCode The next error code at the "front" of the ring.
lastCode Newst error code.


Variable Documentation

pbc_errorRegList
 

List of PPCI error register bits to monitor.

pbc_masterErrorLog
 

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.


Generated on Fri Oct 7 21:49:29 2005 by  doxygen 1.4.4