summaryrefslogtreecommitdiffstats
path: root/dma
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-22 14:46:30 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-22 14:46:30 +0100
commitad9deef451f517f60dea5cc5c4d05b09ba84b464 (patch)
treec482bbe1143ce17b63f392e321dd5ba8fb5a0a3c /dma
parentc40aef870ebb105c3c3ded77e3b3f818b03b9983 (diff)
downloadpcitool-ad9deef451f517f60dea5cc5c4d05b09ba84b464.tar.gz
pcitool-ad9deef451f517f60dea5cc5c4d05b09ba84b464.tar.bz2
pcitool-ad9deef451f517f60dea5cc5c4d05b09ba84b464.tar.xz
pcitool-ad9deef451f517f60dea5cc5c4d05b09ba84b464.zip
Crticial fix in IPEDMA resulting in spurious data generated, due to not finished migration to new versioning scheme in hardware
Diffstat (limited to 'dma')
-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;