From 09a7d320a44c892e91bf563bbc72842bff88dc57 Mon Sep 17 00:00:00 2001 From: hadaq Date: Thu, 13 Oct 2011 22:52:28 +0000 Subject: [PATCH] cleanup --- libtrbnet/trbnet.c | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/libtrbnet/trbnet.c b/libtrbnet/trbnet.c index 7ee4df9..8b0e4dd 100644 --- a/libtrbnet/trbnet.c +++ b/libtrbnet/trbnet.c @@ -1,21 +1,4 @@ -#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 #include @@ -455,26 +438,6 @@ static void fifo_flush(uint8_t channel) } 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; -- 2.43.0