summaryrefslogtreecommitdiffstats
path: root/cli.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 /cli.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 'cli.c')
-rw-r--r--cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cli.c b/cli.c
index bd5a33a..924fd5b 100644
--- a/cli.c
+++ b/cli.c
@@ -904,10 +904,10 @@ int StartStopDMA(pcilib_t *handle, pcilib_model_description_t *model_info, pcil
}
if (start) {
- err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERMANENT);
+ err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT);
if (err) Error("Error starting DMA engine (C2S %lu)", dma);
} else {
- err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERMANENT);
+ err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT);
if (err) Error("Error stopping DMA engine (C2S %lu)", dma);
}
}
@@ -922,10 +922,10 @@ int StartStopDMA(pcilib_t *handle, pcilib_model_description_t *model_info, pcil
}
if (start) {
- err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERMANENT);
+ err = pcilib_start_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT);
if (err) Error("Error starting DMA engine (S2C %lu)", dma);
} else {
- err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERMANENT);
+ err = pcilib_stop_dma(handle, dmaid, PCILIB_DMA_FLAG_PERSISTENT);
if (err) Error("Error stopping DMA engine (S2C %lu)", dma);
}
}