summaryrefslogtreecommitdiffstats
path: root/dma/ipe_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'dma/ipe_private.h')
-rw-r--r--dma/ipe_private.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/dma/ipe_private.h b/dma/ipe_private.h
index 98d71c1..ba47c40 100644
--- a/dma/ipe_private.h
+++ b/dma/ipe_private.h
@@ -71,7 +71,7 @@
#define WR64(addr, value) { *(uint64_t*)(REG2VIRT(addr)) = value; }
#define RD64(addr, value) { value = *(uint64_t*)(REG2VIRT(addr)); }
-#define DEREF(ptr) ((ctx->version<3)?(*(uint32_t*)ptr):(*(uint64_t*)ptr))
+#define DEREF(ptr) ((ctx->addr64)?(*(uint64_t*)ptr):(*(uint32_t*)ptr))
typedef uint32_t reg_t;
typedef struct ipe_dma_s ipe_dma_t;