diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2016-03-22 14:46:30 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2016-03-22 14:46:30 +0100 |
commit | ad9deef451f517f60dea5cc5c4d05b09ba84b464 (patch) | |
tree | c482bbe1143ce17b63f392e321dd5ba8fb5a0a3c /dma | |
parent | c40aef870ebb105c3c3ded77e3b3f818b03b9983 (diff) | |
download | pcitool-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.h | 2 |
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; |