GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LCBT / V1-6-2 > lcbt / rad750
#include <stdio.h>
#include <PBS/PBS.h>
#include <PBS/MBA.h>
#include <PBS/CACHE.h>
#include <LCBT/LCBT.h>
#include <LCBT_printf.h>
#include <trace.h>
Functions | |
void | LCBT_regs () |
print vals of all registers in LCB | |
int | LCBT_testAll (int num, int nLoops, int latpAddr, int loopbackCable) |
overall test, does complete regression test of LCB | |
int | LCBT_testAllEpu (int num, int nLoops, int latpAddr, int loopbackCable) |
overall test for EPU, does complete regression test of LCB minus cmdResp test | |
int | LCBT_clearErrorTotals () |
clear the global error counts | |
int | LCBT_printErrorTotals (char *title) |
print the global error counts | |
int | LCBT_updateErrorTotals (int numAccess, int rErr, int wErr, int cErr) |
update the global error counts | |
int | LCBT_saveErrorForDeltas () |
stash global error counts to use with LCBT_printErrorDeltas() | |
int | LCBT_printErrorDeltas (char *title) |
print the delta error counts since LCBT_saveErrorForDeltas() | |
int | LCBT_getErrorTotals (int *numAccess, int *rErr, int *wErr, int *cErr) |
get the global error counts |
int LCBT_clearErrorTotals | ( | ) |
clear the global error counts
int LCBT_getErrorTotals | ( | int * | numAccess, | |
int * | rErr, | |||
int * | wErr, | |||
int * | cErr | |||
) |
get the global error counts
numAccess | if not NULL, return number of R/W/Compare ops | |
rErr | if not NULL, return number of read errors | |
wErr | if not NULL, return number of write errors | |
cErr | if not NULL, return number of compare errors |
int LCBT_printErrorDeltas | ( | char * | title | ) |
print the delta error counts since LCBT_saveErrorForDeltas()
title | title to print before totals |
References PRINTF.
Referenced by LCBT_cmdExternalTest(), LCBT_cmdLocalTest(), LCBT_cmdLocalTest2(), and LCBT_cmdLocalTest3().
int LCBT_printErrorTotals | ( | char * | title | ) |
print the global error counts
title | title to print before totals |
References PRINTF.
void LCBT_regs | ( | ) |
print vals of all registers in LCB
References LCBT_readCsr(), LCBT_readEventBase(), LCBT_readEventFree(), LCBT_readFabricSelect(), LCBT_readFifoFault(), LCBT_readHwInfo(), LCBT_readIrq(), LCBT_readLatpCsr(), and LCBT_readStats().
int LCBT_saveErrorForDeltas | ( | ) |
stash global error counts to use with LCBT_printErrorDeltas()
Referenced by LCBT_cmdExternalTest(), LCBT_cmdLocalTest(), LCBT_cmdLocalTest2(), LCBT_cmdLocalTest3(), and LCBT_localRegTest().
int LCBT_testAll | ( | int | num, | |
int | nLoops, | |||
int | latpAddr, | |||
int | loopbackCable | |||
) |
overall test, does complete regression test of LCB
num | number of accesses to board per test | |
nLoops | number of times thru all tests test | |
latpAddr | 0=route event tests back to self, else route event test to echo server at this addr | |
loopbackCable | 1=loopback cable present and will run event test, 0=no cable so run event tests only if GASU availible |
References LCBT_GASU_AVAIL, LCBT_hwAvail(), LCBT_MASK_VALID, and PRINTF.
int LCBT_testAllEpu | ( | int | num, | |
int | nLoops, | |||
int | latpAddr, | |||
int | loopbackCable | |||
) |
overall test for EPU, does complete regression test of LCB minus cmdResp test
num | number of accesses to board per test | |
nLoops | number of times thru all tests test | |
latpAddr | 0=route event tests back to self, else route event test to echo server at this addr | |
loopbackCable | 1=loopback cable present and will run event test, 0=no cable so run event tests only if GASU availible |
References LCBT_GASU_AVAIL, LCBT_hwAvail(), LCBT_MASK_VALID, and PRINTF.
int LCBT_updateErrorTotals | ( | int | numAccess, | |
int | rErr, | |||
int | wErr, | |||
int | cErr | |||
) |
update the global error counts
numAccess | Number of R/W/Compare ops | |
rErr | number of read errors | |
wErr | number of write errors | |
cErr | number of compare errors |
Referenced by LCBT_localRegTest().