-#if 0
- dataBuffer = mmap(NULL,
- dataBufferSize * 4,
- PROT_READ,
- MAP_SHARED,
- pexorFileHandle,
- 0x0);
- tmp = dataBuffer;
-
- // fprintf(stderr, "map it with size: %d\n", dataBufferSize);
- if (tmp == ((void *)-1)) {
- perror("mapping");
- abort();
- }
-#endif
-
-
-const char trbnet_version[] = "$Revision: 4.9 $";
+const char trbnet_version[] = "$Revision: 4.10 $";
#include <stdlib.h>
#include <signal.h>
} while ((tmp & MASK_FIFO_VALID) != 0);
}
-#if 0
-static int trb_wait_tx_not_busy(uint8_t channel)
-{
- uint32_t tmp = 0;
-
- if (channel >= 4) {
- trb_errno = TRB_INVALID_CHANNEL;
- return -1;
- }
-
- read32_from_FPGA(CHANNEL_N_SENDER_STATUS | ((channel * 2 + 1) << 4), &tmp);
- if ((tmp & MASK_TX_RUNNING) != 0) {
- trb_errno = TRB_TX_BUSY;
- return -1;
- }
-
- return 0;
-}
-#endif
-
static int trb_init_transfer(uint8_t channel)
{
uint32_t tmp = 0;