summaryrefslogtreecommitdiffstats
path: root/ipedma.h
diff options
context:
space:
mode:
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);