summaryrefslogtreecommitdiffstats
path: root/pcilib.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 /pcilib.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 'pcilib.h')
-rw-r--r--pcilib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcilib.h b/pcilib.h
index d6b4bda..3e82c99 100644
--- a/pcilib.h
+++ b/pcilib.h
@@ -158,6 +158,11 @@ typedef struct {
} pcilib_event_description_t;
typedef enum {
+ PCILIB_DMA_IRQ = 1,
+ PCILIB_EVENT_IRQ = 2
+} pcilib_irq_type_t;
+
+typedef enum {
PCILIB_DMA_FROM_DEVICE = 1,
PCILIB_DMA_TO_DEVICE = 2,
PCILIB_DMA_BIDIRECTIONAL = 3
@@ -204,7 +209,7 @@ void pcilib_close(pcilib_t *ctx);
int pcilib_start_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags);
int pcilib_stop_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t flags);
-int pcilib_enable_irq(pcilib_t *ctx, pcilib_dma_flags_t flags);
+int pcilib_enable_irq(pcilib_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flags_t flags);
int pcilib_disable_irq(pcilib_t *ctx, pcilib_dma_flags_t flags);
int pcilib_clear_irq(pcilib_t *ctx, pcilib_irq_source_t source);