summaryrefslogtreecommitdiffstats
path: root/dma/nwl.c
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 03:37:29 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-17 03:37:29 +0200
commit112030c40f88dde281073e00e4c24cc48daa99d2 (patch)
treef6486582ee46a2b3b48bba5bc9d96c8432d0b7dc /dma/nwl.c
parent7ac0539951ff0eba200e64b850b5181a82915c86 (diff)
downloadpcitool-112030c40f88dde281073e00e4c24cc48daa99d2.tar.gz
pcitool-112030c40f88dde281073e00e4c24cc48daa99d2.tar.bz2
pcitool-112030c40f88dde281073e00e4c24cc48daa99d2.tar.xz
pcitool-112030c40f88dde281073e00e4c24cc48daa99d2.zip
Implement DMA access synchronization for NWL implementation
Diffstat (limited to 'dma/nwl.c')
-rw-r--r--dma/nwl.c4
1 files changed, 2 insertions, 2 deletions
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;
}