retVal = LVme_getL(my, offset);
} while (!ourVmeAccessOK);
+
+#if 0
if (oldOff != offset && oldWord == retVal) {
- msglog(LOG_ERR, "wird twice: 0x%08x on 0x%08x\n", retVal, offset);
+ msglog(LOG_ERR, "word twice: 0x%08x on 0x%08x\n", retVal, offset);
}
oldOff = offset;
oldWord = retVal;
+#endif
+
return retVal;
}
LVme_setL(my, offset, v);
LVme_setL(my, offset, v);
LVme_setL(my, offset, v);
-
} while (!ourVmeAccessOK);
}
static int endOfData(HwTip * my)
{
- return my->pipeSize + my->fifo;
+ return berrGetL(my->lvme, my->fifo) + my->fifo;
}
int conHwTip(HwTip * my, const char *name, const Param *param)
msglog(LOG_ERR, "HwTip on %p not found\n", cardBase);
return -1;
}
+ my->trigNr = 0;
+
my->currAddr = 0xffffffff; /* start at the end */
my->bankRequested = 1; /* of the empty bank */
my->pipeFull = LVL2_PIPE2_FULL;
#endif
my->currAddr = my->fifo + 0x8;
- while (!(berrGetL(my->lvme, EXT_STATUS) & my->daqGr)) {
- }
- my->pipeSize = berrGetL(my->lvme, my->fifo);
}
int HwTip_isBusy(HwTip * my)
size_t size;
UInt1 trigTag;
- if(berrGetL(my->lvme, my->fifo) == 0) {
- msglog(LOG_ERR, "pipesize = 0\n");
- }
-
size = berrGetL(my->lvme, my->currAddr);
msglog(LOG_DEBUG, "size: 0x%08x\n", size);
- if (size > 0x60) {
+
+ if (size > 2400) {
msglog(LOG_ERR, "size too large: 0x%08x on 0x%08x\n", size, my->currAddr);
}
+
/* copy one sub evt from RC to memory */
for (firstAddr = my->currAddr; my->currAddr - firstAddr < size; my->currAddr += 4) {
*data++ = berrGetL(my->lvme, my->currAddr);