summaryrefslogtreecommitdiffstats
path: root/dma.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-12 14:39:06 +0200
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2011-07-12 14:39:06 +0200
commit493958c9cf11eaa25251d91e9ecab9a28bd6d68f (patch)
treebdda549da425acc5bdbddb5006b6980ec4233a77 /dma.h
parentde984f8b9706cfac79f7658e5b3863e78b052458 (diff)
downloadpcitool-493958c9cf11eaa25251d91e9ecab9a28bd6d68f.tar.gz
pcitool-493958c9cf11eaa25251d91e9ecab9a28bd6d68f.tar.bz2
pcitool-493958c9cf11eaa25251d91e9ecab9a28bd6d68f.tar.xz
pcitool-493958c9cf11eaa25251d91e9ecab9a28bd6d68f.zip
Provide IRQ enable/disable call
Diffstat (limited to 'dma.h')
-rw-r--r--dma.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/dma.h b/dma.h
index e3db838..1685403 100644
--- a/dma.h
+++ b/dma.h
@@ -7,11 +7,11 @@ struct pcilib_dma_api_description_s {
pcilib_dma_context_t *(*init)(pcilib_t *ctx);
void (*free)(pcilib_dma_context_t *ctx);
- 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 (*enable_irq)(pcilib_dma_context_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flags_t flags);
+ int (*disable_irq)(pcilib_dma_context_t *ctx, 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 (*start_dma)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags);
+ int (*stop_dma)(pcilib_dma_context_t *ctx, pcilib_dma_engine_t dma, 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);