diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-11 03:48:13 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-11 03:48:13 +0200 |
commit | 40c61a3b927ce31e05a6eb0d7b36e09e67c6ca97 (patch) | |
tree | baf559a19f5dd348856012d469935b2b29a86de1 /dma/nwl_dma.h | |
parent | 82167742d62f1cd583d7eb99b356864df70afd8b (diff) | |
download | ipecamera-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/nwl_dma.h')
-rw-r--r-- | dma/nwl_dma.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dma/nwl_dma.h b/dma/nwl_dma.h index 8468f52..b8d6cce 100644 --- a/dma/nwl_dma.h +++ b/dma/nwl_dma.h @@ -11,8 +11,8 @@ typedef struct nwl_dma_s nwl_dma_t; pcilib_dma_context_t *dma_nwl_init(pcilib_t *ctx); void dma_nwl_free(pcilib_dma_context_t *vctx); -size_t dma_nwl_write_fragment(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, void *data); -size_t dma_nwl_stream_read(pcilib_dma_context_t *vctx, 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 dma_nwl_write_fragment(pcilib_dma_context_t *vctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, size_t timeout, void *data, size_t *written); +int dma_nwl_stream_read(pcilib_dma_context_t *vctx, 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 dma_nwl_benchmark(pcilib_dma_context_t *vctx, pcilib_dma_engine_addr_t dma, uintptr_t addr, size_t size, size_t iterations, pcilib_dma_direction_t direction); |