34#ifdef SA_TESTBASE_EXTRA
39#ifdef SA_ENABLE_TRACE_FUNCTIONS
43#define siTraceFileID 'S'
58 return ( (((a) >=
'a') && ((a) <=
'z')) ||
59 (((a) >=
'A') && ((a) <=
'Z')) ||
60 (((a) >=
'0') && ((a) <=
'9')) ||
88 return memcpy(dst, src, count);
115 return memset(s, c, n);
134 bit32 j, num_found = 0;
157 SA_DBG1((
"siDumpActiveIORequests: SCRATCH_PAD1_V_ERROR_STAT 0x%x\n",sp1 ));
176 SA_DBG1((
"siDumpActiveIORequests: Current Time: %d ticks (usecpertick=%d)\n",
179 for ( j = 0; j < count; j ++ )
186 SA_DBG1((
"siDumpActiveIORequests: IO #%4d: %p Tag=%03X Type=%08X Device 0x%X Pending for %d seconds\n",
198 SA_DBG1((
"siDumpActiveIORequests: %d found active\n",num_found));
243 SA_DBG1((
"siClearActiveIORequests %d found active\n",num_found));
248 SA_DBG1((
"siClearActiveIORequests saroot NULL\n"));
268 bit32 j, num_found = 0;
297 SA_DBG1((
"siClearActiveIORequestsOnDevice 0x%x %d cleared\n",
device,num_found));
319 bit32 j, num_found = 0;
343 SA_DBG2((
"siCountActiveIORequestsOnDevice: saRoot->ResetStartTick %d pRequestDesc->startTick %d\n",
352 SA_DBG1((
"siCountActiveIORequestsOnDevice 0x%x %d found active\n",
device,num_found));
373 bit32 j, num_found = 0;
399 SA_DBG2((
"saCountActiveIORequests: saRoot->ResetStartTick %d pRequestDesc->startTick %d\n",
406 SA_DBG1((
"saCountActiveIORequests %d found active\n",num_found));
525#if defined(SALLSDK_DEBUG)
557 for (x=0; x < length/16; x++)
560 (
"%02x %02x %02x %02x %02x %02x %02x %02x - %02x %02x %02x %02x %02x %02x %02x %02x == "
561 "%c%c%c%c%c%c%c%c - %c%c%c%c%c%c%c%c\n",
602 for (x = 0; x < 16; x++)
607 for (x = 0; x < rem; x++)
609 temp[x] = *(buffer+x);
615 (
"%02x %02x %02x %02x %02x %02x %02x %02x - %02x %02x %02x %02x %02x %02x %02x %02x == "
616 "%c%c%c%c%c%c%c%c - %c%c%c%c%c%c%c%c\n",
657 for (x=0; x < length/4; x++)
660 (
"%08x %08x %08x %08x\n",
673 for (x = 0; x < 4; x++)
678 for (x = 0; x < rem; x++)
686 (
"%08x %08x %08x %08x\n",
714 SA_DBG2((
"sidump_hwConfig:hwConfig->hwOption 0x%x\n",hwConfig->
hwOption ));
734 SA_DBG2((
"sidump_swConfig:swConfig->param1 0x%x\n",swConfig->
param1 ));
735 SA_DBG2((
"sidump_swConfig:swConfig->param2 0x%x\n",swConfig->
param2 ));
736 SA_DBG2((
"sidump_swConfig:swConfig->param3 %p\n",swConfig->
param3 ));
737 SA_DBG2((
"sidump_swConfig:swConfig->param4 %p\n",swConfig->
param4 ));
751 SA_DBG2((
"sidump_Q_config: queueConfig->queueOption 0x%x\n", queueConfig->
queueOption ));
788 agsaLLCountInfo_t *LLCountInfo
794 for (i = 0; i < LL_COUNTERS; i++)
796 if (counters & (1 << i))
797 LLCountInfo->arrayIOCounter[i] = saRoot->LLCounters.arrayIOCounter[i];
825 for (i = 0; i < LL_COUNTERS; i++)
827 if (counters & (1 << i))
828 saRoot->LLCounters.arrayIOCounter[i] = 0;
#define ossaLogDebugString
This file defines global types.
#define V_Scratchpad_2_Register
#define V_Scratchpad_3_Register
#define V_Scratchpad_1_Register
#define V_Scratchpad_0_Register
#define SCRATCH_PAD1_V_ERROR_STATE(ScratchPad1)
#define smIS_SPCV8009(agr)
#define smIsCfg_V8073(agr)
#define smIS_SPCV8077(agr)
#define AGSAMEM_ELEMENT_READ(pMem, index)
AGSAMEM_ELEMENT_READ macro.
#define smIS_SPCV8071(agr)
#define smIS_spc8001(agr)
#define smIS_ADAP8088(agr)
#define smIS_SFC_AS_V(agr)
#define smIS_SPCV8075(agr)
#define smIsCfg_V8008(agr)
#define smIsCfg_V8006(agr)
#define smIsCfg_V8088(agr)
#define smIsCfg_V8071(agr)
#define smIS_SPCV8073(agr)
#define smIsCfg_V9015(agr)
enum siPrintType_e siPrintType
#define smIS_ADAP8089(agr)
#define smIS_spc8081(agr)
#define smIS_SPCV8006(agr)
#define smIS_SPCV8070(agr)
#define smIS_SPCV8008(agr)
#define smIS_SPCV9015(agr)
#define smIsCfg_V9060(agr)
#define smIsCfg_V8072(agr)
#define smIsCfg_V8019(agr)
#define smIS_SFC_AS_SPC(agr)
#define smIS_SPCV8072(agr)
#define smIS_SPCV8074(agr)
#define smIsCfg_V8018(agr)
#define smIsCfg_V8089(agr)
#define smIS_SPCV8076(agr)
#define smIS_SPCV9060(agr)
#define smIS_SPCV8019(agr)
#define smIsCfg_V8025(agr)
#define smIsCfg_V8009(agr)
#define smIS_SPCV8018(agr)
#define smIsCfg_V8070(agr)
GLOBAL FORCEINLINE bit32 ossaHwRegRead(agsaRoot_t *agRoot, bit32 regOffset)
GLOBAL void siPrintBuffer(bit32 debugLevel, siPrintType type, char *header, void *a, bit32 length)
GLOBAL bit32 smIsCfg_V_ANY(agsaRoot_t *agRoot)
GLOBAL void siCountActiveIORequestsOnDevice(agsaRoot_t *agRoot, bit32 device)
siCountActiveIORequestsOnDevice count all active IO's
GLOBAL void siClearActiveIORequests(agsaRoot_t *agRoot)
saCountActiveIORequests
GLOBAL bit32 smIS_SPC(agsaRoot_t *agRoot)
GLOBAL bit32 smIS_SPC12V(agsaRoot_t *agRoot)
int siIsHexDigit(char a)
Check for Hex digit.
GLOBAL void siClearActiveIORequestsOnDevice(agsaRoot_t *agRoot, bit32 device)
siCountActiveIORequestsOnDevice count all active IO's
GLOBAL bit32 smIS_SPC6V(agsaRoot_t *agRoot)
GLOBAL bit32 smIS_ENCRYPT(agsaRoot_t *agRoot)
GLOBAL bit32 smIS_SPCV_2_IOP(agsaRoot_t *agRoot)
FORCEINLINE void * si_memset(void *s, int c, bit32 n)
memset
GLOBAL bit32 smIS_SPCV(agsaRoot_t *agRoot)
FORCEINLINE void * si_memcpy(void *dst, void *src, bit32 count)
memcopy
GLOBAL void saCountActiveIORequests(agsaRoot_t *agRoot)
saCountActiveIORequests count all active IO's
GLOBAL void siDumpActiveIORequests(agsaRoot_t *agRoot, bit32 count)
siDumpActiveIORequests
GLOBAL bit32 smIS_HIL(agsaRoot_t *agRoot)
data structure stores OS specific and LL specific context