diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-11-19 02:20:47 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-11-19 02:20:47 +0100 |
commit | 9be284983d815f96e96a37a6a3e3ec9a86d7a245 (patch) | |
tree | 5d83e2c0c25a310c581bfb093eddbe9605fded80 /dma | |
parent | e30eddc0aeb368814d2bbe0031e6b6ed768bdfcf (diff) | |
download | pcitool-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')
-rw-r--r-- | dma/ipe.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |