From 112030c40f88dde281073e00e4c24cc48daa99d2 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Jul 2011 03:37:29 +0200 Subject: Implement DMA access synchronization for NWL implementation --- dma/nwl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dma/nwl.c') diff --git a/dma/nwl.c b/dma/nwl.c index 78a587e..0a41703 100644 --- a/dma/nwl.c +++ b/dma/nwl.c @@ -41,7 +41,7 @@ int dma_nwl_stop(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, pcilib_dma // stop everything if (dma == PCILIB_DMA_ENGINE_INVALID) { for (dma = 0; dma < ctx->n_engines; dma++) { - if (flags&PCILIB_DMA_FLAG_PERMANENT) { + if (flags&PCILIB_DMA_FLAG_PERSISTENT) { ctx->engines[dma].preserve = 0; } @@ -62,7 +62,7 @@ int dma_nwl_stop(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, pcilib_dma if (dma > ctx->n_engines) return PCILIB_ERROR_INVALID_BANK; // ignorign previous setting if flag specified - if (flags&PCILIB_DMA_FLAG_PERMANENT) { + if (flags&PCILIB_DMA_FLAG_PERSISTENT) { ctx->engines[dma].preserve = 0; } -- cgit v1.2.3