From 493958c9cf11eaa25251d91e9ecab9a28bd6d68f Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 12 Jul 2011 14:39:06 +0200 Subject: Provide IRQ enable/disable call --- pcilib.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pcilib.h') diff --git a/pcilib.h b/pcilib.h index d6b4bda..3e82c99 100644 --- a/pcilib.h +++ b/pcilib.h @@ -157,6 +157,11 @@ typedef struct { const char *description; } 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, @@ -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); -- cgit v1.2.3