diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-12 16:35:24 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-12 16:35:24 +0200 |
commit | e455f83ca2e4ee7c39837309a422732167994cbf (patch) | |
tree | 0411940c804b8abf33a2bbaa2c2294c9b77d4bb6 /dma/nwl_dma.h | |
parent | 6c922712fd8ee7e75a1b45c4980be22d36d0d1d9 (diff) | |
download | ipecamera-e455f83ca2e4ee7c39837309a422732167994cbf.tar.gz ipecamera-e455f83ca2e4ee7c39837309a422732167994cbf.tar.bz2 ipecamera-e455f83ca2e4ee7c39837309a422732167994cbf.tar.xz ipecamera-e455f83ca2e4ee7c39837309a422732167994cbf.zip |
Separate NWL loopback code, provide DMA start/stop interfaces
Diffstat (limited to 'dma/nwl_dma.h')
-rw-r--r-- | dma/nwl_dma.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dma/nwl_dma.h b/dma/nwl_dma.h index 0ed8158..883dc29 100644 --- a/dma/nwl_dma.h +++ b/dma/nwl_dma.h @@ -10,6 +10,9 @@ void dma_nwl_free(pcilib_dma_context_t *vctx); int dma_nwl_enable_irq(pcilib_dma_context_t *vctx, pcilib_irq_type_t type, pcilib_dma_flags_t flags); int dma_nwl_disable_irq(pcilib_dma_context_t *vctx, pcilib_dma_flags_t flags); +int dma_nwl_start(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags); +int dma_nwl_stop(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags); + 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, pcilib_timeout_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, pcilib_timeout_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); @@ -21,8 +24,8 @@ pcilib_dma_api_description_t nwl_dma_api = { dma_nwl_free, dma_nwl_enable_irq, dma_nwl_disable_irq, - NULL, - NULL, + dma_nwl_start, + dma_nwl_stop, dma_nwl_write_fragment, dma_nwl_stream_read, dma_nwl_benchmark |