-const char trbnet_version[] = "$Revision: 4.0 $";
+const char trbnet_version[] = "$Revision: 4.1 $";
#include <stdlib.h>
#include <signal.h>
}
/* Check for TX not Busy */
+#ifndef PEXOR
read32_from_FPGA(CHANNEL_N_SENDER_STATUS | ((channel * 2 + 1) << 4), &tmp);
if (tmp != 0) {
/* FIFO_TOGGLE_BIT-BUG Workaround */
com_reset_FPGA();
}
+#endif
read32_from_FPGA(CHANNEL_N_SENDER_STATUS | ((channel * 2 + 1) << 4), &tmp);
if (tmp != 0) {
trb_errno = TRB_TX_BUSY;
}
/* Check receiver FIFO empty */
+#ifndef PEXOR
read32_from_FPGA(CHANNEL_N_RECEIVER_FIFO_STATUS | ((channel * 2 + 1) << 4),
&tmp);
if ((tmp & MASK_FIFO_EMPTY) == 0) {
/* FIFO_TOGGLE_BIT-BUG Workaround */
com_reset_FPGA();
}
+#endif
read32_from_FPGA(CHANNEL_N_RECEIVER_FIFO_STATUS | ((channel * 2 + 1) << 4),
&tmp);
if ((tmp & MASK_FIFO_EMPTY) == 0) {
trb_errno = TRB_FIFO_INVALID_HEADER;
return -1;
}
-
+
+#ifndef PEXOR
/* Check Header H0 */
if (((package.H0 & MASK_HEADER_REPLY) >> SHIFT_HEADER_REPLY
!= 0x01) ||
trb_errno = TRB_FIFO_HEADERS;
return -1;
}
+#endif
}
/* Get Data F0 - F3 and store it in User-Data-Buffer if requested */