summaryrefslogtreecommitdiffstats
path: root/dma/ipe.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-11-19 02:20:47 +0100
committerSuren A. Chilingaryan <csa@suren.me>2015-11-19 02:20:47 +0100
commit9be284983d815f96e96a37a6a3e3ec9a86d7a245 (patch)
tree5d83e2c0c25a310c581bfb093eddbe9605fded80 /dma/ipe.c
parente30eddc0aeb368814d2bbe0031e6b6ed768bdfcf (diff)
downloadpcitool-9be284983d815f96e96a37a6a3e3ec9a86d7a245.tar.gz
pcitool-9be284983d815f96e96a37a6a3e3ec9a86d7a245.tar.bz2
pcitool-9be284983d815f96e96a37a6a3e3ec9a86d7a245.tar.xz
pcitool-9be284983d815f96e96a37a6a3e3ec9a86d7a245.zip
Correct empty_detected location for gen3 IPEDMA
Diffstat (limited to 'dma/ipe.c')
-rw-r--r--dma/ipe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dma/ipe.c b/dma/ipe.c
index 460d2a0..0541df3 100644
--- a/dma/ipe.c
+++ b/dma/ipe.c
@@ -505,7 +505,7 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin
volatile void *desc_va;
volatile void *last_written_addr_ptr;
- uint32_t empty_detected_dummy = 0;
+// uint32_t empty_detected_dummy = 0;
volatile uint32_t *empty_detected_ptr;
pcilib_dma_flags_t packet_flags = PCILIB_DMA_FLAG_EOP;
@@ -528,7 +528,8 @@ int dma_ipe_stream_read(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uin
empty_detected_ptr = last_written_addr_ptr - 2;
} else {
last_written_addr_ptr = desc_va + 2 * sizeof(uint32_t);
- empty_detected_ptr = &empty_detected_dummy;
+ empty_detected_ptr = desc_va + sizeof(uint32_t);
+// empty_detected_ptr = &empty_detected_dummy;
}