From 32c2f2c589c1a3ccf5dd9117538aafc6f3e0194e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 26 Oct 2011 07:12:31 +0200 Subject: Improvements of DMA engine --- dma/nwl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'dma/nwl.c') diff --git a/dma/nwl.c b/dma/nwl.c index 7d2c964..cc03687 100644 --- a/dma/nwl.c +++ b/dma/nwl.c @@ -88,6 +88,10 @@ pcilib_dma_context_t *dma_nwl_init(pcilib_t *pcilib, pcilib_dma_modification_t t ctx->pcilib = pcilib; ctx->type = type; + if (type == PCILIB_NWL_MODIFICATION_IPECAMERA) { + ctx->dmactx.ignore_eop = 1; + } + pcilib_register_bank_t dma_bank = pcilib_find_bank_by_addr(pcilib, PCILIB_REGISTER_BANK_DMA); if (dma_bank == PCILIB_REGISTER_BANK_INVALID) { free(ctx); @@ -132,7 +136,7 @@ void dma_nwl_free(pcilib_dma_context_t *vctx) { if (ctx) { if (ctx->type == PCILIB_DMA_MODIFICATION_DEFAULT) dma_nwl_stop_loopback(ctx); dma_nwl_free_irq(ctx); - dma_nwl_stop(ctx, PCILIB_DMA_ENGINE_ALL, PCILIB_DMA_FLAGS_DEFAULT); + dma_nwl_stop(vctx, PCILIB_DMA_ENGINE_ALL, PCILIB_DMA_FLAGS_DEFAULT); free(ctx); } -- cgit v1.2.3