summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-11 03:48:13 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-11 03:48:13 +0200
commit40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97 (patch)
treebaf559a19f5dd348856012d469935b2b29a86de1 /dma.h
parent82167742d62f1cd583d7eb99b356864df70afd8b (diff)
downloadipecamera-40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97.tar.gz
ipecamera-40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97.tar.bz2
ipecamera-40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97.tar.xz
ipecamera-40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97.zip
Wait for the completion of DMA operations during writes
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/dma.h b/dma.h
index f254b8c..38c921b 100644
--- a/dma.h
+++ b/dma.h
@@ -7,8 +7,8 @@ struct pcilib_dma_api_description_s {
pcilib_dma_context_t *(*init)(pcilib_t *ctx);
void (*free)(pcilib_dma_context_t *ctx);
- size_t (*push)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, void *buf);
- size_t (*stream)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, pcilib_dma_callback_t cb, void *cbattr);
+ int (*push)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, void *buf, size_t *written);
+ int (*stream)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, pcilib_dma_callback_t cb, void *cbattr);
double (*benchmark)(pcilib_dma_context_t *ctx, pcilib_dma_engine_addr_t dma, uintptr_t addr, size_t size, size_t iterations, pcilib_dma_direction_t direction);
};