]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
not needed any more
authorhadaq <hadaq>
Mon, 7 Sep 2009 21:02:17 +0000 (21:02 +0000)
committerhadaq <hadaq>
Mon, 7 Sep 2009 21:02:17 +0000 (21:02 +0000)
.

libtrbnet/fs_fpga_int_mem.c [deleted file]
libtrbnet/fs_fpga_int_mem.h [deleted file]

diff --git a/libtrbnet/fs_fpga_int_mem.c b/libtrbnet/fs_fpga_int_mem.c
deleted file mode 100644 (file)
index 705979b..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-#include <stdlib.h>
-#include <stdio.h>
-#include <port.h>
-
-#include "fs_fpga_int_mem.h"
-
-#define TOGGLE_BIT 0x10000
-
-/* writes a 32bit word to a given address on a given device */
-void write32_to_FPGA(uint16_t address, uint32_t value)
-{
-  uint32_t toggleBit = readPC() & TOGGLE_BIT; 
-  
-  /* set address RW_WRITE */
-  writePC((address & 0x7fff) | (toggleBit ^ TOGGLE_BIT));
-  
-  /* write value */
-  writePC((value >> 16) | toggleBit);
-  writePC((value & 0xffff) | (toggleBit ^ TOGGLE_BIT));
-}
-
-/* reads a 32bit word from a given address on a given device */
-void read32_from_FPGA(uint16_t address, uint32_t* value)
-{
-  uint32_t toggleBit = readPC() & TOGGLE_BIT;
-  /* set address RW_READ */
-  writePC((address | 0x8000) | (toggleBit ^ TOGGLE_BIT));
-  
-  /* read value */
-  *value = ((readPB() << 16));
-  writePC(toggleBit);
-  
-  *value |= (readPB() & 0xffff);
-  writePC(toggleBit ^ TOGGLE_BIT);
-}
-
-
-/* reads a 32bit word from a given address on a given device */
-int read32_from_FPGA_dma(uint16_t fifo_address,
-                         uint32_t* values, 
-                         uint32_t size)
-{
-  return -1;
-
-#if 0
-  uint32_t tmp;
-  uint32_t *start = NULL;
-    
-  /* write maximum length to control register of fifo */
-  write32_to_FPGA(fifo_address, size);
-  
-  /* set address RW_WRITE */
-  set_value_single(fifo_address | 0x8000);
-  
-  start = values;
-  do {
-    tmp = readPB() << 16;
-    strobe();
-    strobe();  /* (will be optimized away) */
-    tmp |= (readPB() & 0xffff);
-    strobe();
-    *values++ = tmp;
-  } while(tmp & 0x01000000);
-  
-  return (values - start) - 1;
-#endif
-}
-
-void com_reset()
-{
-  setbitsPC(0x30000);
-  clrbitsPC(0x30000);
-}
diff --git a/libtrbnet/fs_fpga_int_mem.h b/libtrbnet/fs_fpga_int_mem.h
deleted file mode 100644 (file)
index 0f38ef7..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-#ifndef FS_FPGA_INT_H
-#define FS_FPGA_INT_H
-
-#include <stdint.h>
-
-/* Writes a 32bit word to a given address on a given device */
-void write32_to_FPGA(uint16_t address, uint32_t value);
-
-/* Reads a 32bit word from a given address on a given device */
-void read32_from_FPGA(uint16_t address, uint32_t* value);
-
-/* Do not use, not yet implemented, returns -1 always */
-int read32_from_FPGA_dma(uint16_t fifo_address,
-                         uint32_t* values,
-                         uint32_t size);
-
-/* sends a reset to the communication logic PC(17, 16) = 11 */
-void com_reset();
-
-#endif