Beispiel #1
0
/*
 * show routine for this contruct
 *
 *                                      Author Greg Brissey  8/18/05
 *
 */
showBarrier()
{
   printf("DDR barrier: \n");
   printf("uploadSyncCount: %d, uploadSyncCntDown: %d\n",uploadSyncCount,uploadSyncCntDown);
   printf("numActiveDDRs: %d, numAtBarrier; %d\n",numActiveDDRs,numAtBarrier);
   semShow(pBarrierWaitSem,0);
   printf("\n\n");
}
Beispiel #2
0
/**************************************************************
*
*   adcShow - display the ADC Object inforamtion
*
*  RETURN
*   void
*/
void adcShow(register ADC_ID pAdcId,int level)
/* ADC_ID pAdcId;   ADC Object */
/* int level       - level of information */
{
   printf("\n\n-------------------------------------------------------------\n\n");
   printf("ADC Object: 0x%lx\n", pAdcId);
   printf("ADC State: %d\n",pAdcId->adcState);
   printf("Board Verion: %d\n",pAdcId->adcBrdVersion);
   printf("ADC: Address-0x%lx, VME Vector-0x%x, VME Level-%d\n",
		pAdcId->adcBaseAddr,pAdcId->vmeItrVector,pAdcId->vmeItrLevel);
   if (level > 0)
   {
     printf("\nADC State Sync Semiphore");
     semShow(pAdcId->pSemAdcStateChg,1);
     printf("\nADC Mutex Semiphore");
     semShow(pAdcId->pAdcMutex,1);
   }
}
Beispiel #3
0
int
serialShimsShow()
{
   printf("\n\n---------------------------------------------------------\n\n");
   printf("serial port is %d, at memory location 0x%x\n", shimPort, &shimPort );
   printf( "serial port Mutex: 0x%lx\n", pShimMutex);
   if (pShimMutex != NULL)
      semShow(pShimMutex,1);
   return( 0 );
}
Beispiel #4
0
/********************************************************************
* stmShow - display the status information on the STM Object
*
*  This routine display the status information of the STM Object
*
*
*  RETURN
*   VOID
*
*/
VOID stmShow(DATAOBJ_ID pStmId, int level)
/* DATAOBJ_ID pStmId - STM Object ID */
/* int level 	   - level of information */
{
   FID_STAT_BLOCK *pStatBlk; /* array of FID Entries */
   int i;

   if (pStmId == NULL)
     return;

   printf("\n -------------------------------------------------------------\n\n");
   printf("STM Object (0x%lx): %s\n",
           pStmId,pStmId->pIdStr);
 /*   printf("Board Type: '%s'\n",getBoardType(pStmId->stmBrdVersion)); */
   /* printf("SCCS ID: '%s'\n",pStmId->pSID); */

   /* stmPrtStatus(pStmId); */

   /* stmPrtRegs(pStmId); */

   printf("\nTag Free List:\n");
   rngXBlkShow(pStmId->pTagFreeList, 0);

   printf("\nSTM State Semaphore: \n");
   printSemInfo(pStmId->pSemStateChg,"STM State Semaphore",1);
   /* semShow(pStmId->pSemStateChg,level); */

   if (level > 0)
   {
     int foundone = 0;
     printf("\nData Mutex Semaphore: \n");
     semShow(pStmId->pStmMutex,level);

     printf("\nFID Blocks allocated for Acquisition (out of %d possible): \n",pStmId->maxFidBlkBuffered);
     for( i=0; i < pStmId->maxFidBlkBuffered; i++)
     {
       pStatBlk = &((pStmId->pStatBlkArray)[i]);

       if(pStatBlk->doneCode != NOT_ALLOCATED)
       {
         foundone = 1;
         printf("Tag: %d, Elem: %ld, FidAddr: 0x%lx, State: %d \n",
	      i, pStatBlk->elemId,pStatBlk->fidAddr,pStatBlk->doneCode);
         printf("Start CT: %ld, NP: %ld, CT: %ld, FidSize: %ld \n",
	   pStatBlk->startct, pStatBlk->np, pStatBlk->ct, pStatBlk->dataSize);
       }
     }
     if (!foundone)
	printf(" No Blocks allocated.\n");
   }
}
Beispiel #5
0
void dumpMaskListInfo(){
    MaskList_t *temp;
	int i;

	semTake(maskList_sem, WAIT_FOREVER);

    if(MaskList_Head != 0){
    	for(temp = MaskList_Head; temp != NULL; temp = temp->next){
			//printf("Mask %x \n",temp->id);
			for(i=0;i<MAX_EVENTS;i++){
				semShow(temp->semId[i],1);
			}
     	}
    }

    semGive(maskList_sem);

}
Beispiel #6
0
printSemInfo(SEM_ID pSemId,char *msge,int level)
{
   int npend,pAry[6],i;

   npend = semInfo(pSemId,pAry,6);
   if ( npend > 0 )
   {
     for(i=0;i < npend; i++)
     {
       printf("Task: '%s' - 0x%lx Pending on %s\n",taskName(pAry[i]),pAry[i],msge);
     }
     semShow(pSemId,0);
   }
   else
   {
      printf("No Tasks Pending on %s\n",msge);
   }
}