]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
cleanup
authorhadaq <hadaq>
Thu, 13 Oct 2011 22:52:28 +0000 (22:52 +0000)
committerhadaq <hadaq>
Thu, 13 Oct 2011 22:52:28 +0000 (22:52 +0000)
libtrbnet/trbnet.c

index 7ee4df9fe3659bce8188c9fb2602655d5d3a930a..8b0e4dddb51c64bd49e80c157de899d8d89517ce 100644 (file)
@@ -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 <stdlib.h>
 #include <signal.h>
@@ -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;