summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-12 09:53:45 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-12 09:53:45 +0200
commitde984f8b9706cfac79f7658e5b3863e78b052458 (patch)
treef989701212bb2de4d224387344929853e4055d27 /dma.h
parent5b4fbcc62d4544aee7adf0a92a2db31197bae305 (diff)
downloadipecamera-de984f8b9706cfac79f7658e5b3863e78b052458.tar.gz
ipecamera-de984f8b9706cfac79f7658e5b3863e78b052458.tar.bz2
ipecamera-de984f8b9706cfac79f7658e5b3863e78b052458.tar.xz
ipecamera-de984f8b9706cfac79f7658e5b3863e78b052458.zip
Suppport DMA modes in console application (not functional yet)
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/dma.h b/dma.h
index 38c921b..e3db838 100644
--- a/dma.h
+++ b/dma.h
@@ -7,8 +7,14 @@ struct pcilib_dma_api_description_s {
pcilib_dma_context_t *(*init)(pcilib_t *ctx);
void (*free)(pcilib_dma_context_t *ctx);
- 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);
+ int (*pcilib_start_dma)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags);
+ int (*pcilib_stop_dma)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags);
+
+ int (*pcilib_enable_irq)(pcilib_dma_context_t *ctx, pcilib_dma_flags_t flags);
+ int (*pcilib_disable_irq)(pcilib_dma_context_t *ctx, pcilib_dma_flags_t flags);
+
+ int (*push)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, uintptr_t addr, size_t size, pcilib_dma_flags_t flags, pcilib_timeout_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, pcilib_timeout_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);
};