summaryrefslogtreecommitdiffstats
path: root/ipedma.h
diff options
context:
space:
mode:
authorroot <root@ipepdvdev1.ipe.kit.edu>2016-05-25 06:35:59 +0200
committerroot <root@ipepdvdev1.ipe.kit.edu>2016-05-25 06:35:59 +0200
commita6f3e96f2cafc183ab29e53007a86bb968d654b8 (patch)
tree5248f06934289d65e366507890ebac3c7a4816ab /ipedma.h
parentca1b1cea796bcfaeb86f201cf35065a606921cc1 (diff)
downloadgdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.gz
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.bz2
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.tar.xz
gdrtest-a6f3e96f2cafc183ab29e53007a86bb968d654b8.zip
Support bigger writes
Diffstat (limited to 'ipedma.h')
-rw-r--r--ipedma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ipedma.h b/ipedma.h
index 299499c..6daef4b 100644
--- a/ipedma.h
+++ b/ipedma.h
@@ -7,10 +7,14 @@
#define REG_DESCRIPTOR_ADDRESS 0x50
#define REG_UPDATE_ADDRESS 0x58
#define REG_UPDATE_THRESHOLD 0x60
+#define REG_UPDATE_COUNTER 0x70
#define REG_INTERCONNECT 0x9048
#define REG_COUNTER 0x9000
+
+#define DESCRIPTOR_OFFSET 256
+
#define WR32(addr, value) *(volatile uint32_t *) (((char*)(bar)) + (addr)) = (value);
#define RD32(addr) (*(volatile uint32_t *) (((char*)(bar)) + (addr)))
#define WR32_sleep(addr, value) *(volatile uint32_t *) (((char*)(bar)) + (addr)) = (value); usleep (100);