diff options
author | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-12 14:39:06 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@dside.dyndns.org> | 2011-07-12 14:39:06 +0200 |
commit | 493958c9cf11eaa25251d91e9ecab9a28bd6d68f (patch) | |
tree | bdda549da425acc5bdbddb5006b6980ec4233a77 /pcilib.h | |
parent | de984f8b9706cfac79f7658e5b3863e78b052458 (diff) | |
download | pcitool-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.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); |