From de984f8b9706cfac79f7658e5b3863e78b052458 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Tue, 12 Jul 2011 09:53:45 +0200 Subject: Suppport DMA modes in console application (not functional yet) --- dma/nwl.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'dma/nwl.h') diff --git a/dma/nwl.h b/dma/nwl.h index cb162de..1ee6f5d 100644 --- a/dma/nwl.h +++ b/dma/nwl.h @@ -17,8 +17,9 @@ typedef struct { pcilib_kmem_handle_t *ring; pcilib_kmem_handle_t *pages; - int started; // indicates if DMA buffers are initialized and reading is allowed - int writting; // indicates if we are in middle of writting packet + int started; /**< indicates that DMA buffers are initialized and reading is allowed */ + int writting; /**< indicates that we are in middle of writting packet */ + int preserve; /**< indicates that DMA should not be stopped during clean-up */ } pcilib_nwl_engine_description_t; @@ -28,9 +29,9 @@ struct nwl_dma_s { pcilib_register_bank_description_t *dma_bank; char *base_addr; - pcilib_irq_type_t irq_enabled; - - int started; + pcilib_irq_type_t irq_enabled; /**< indicates that IRQs are enabled */ + int irq_preserve; /**< indicates that IRQs should not be disabled during clean-up */ + int started; /**< indicates that DMA subsystem is initialized and DMA engine can start */ pcilib_dma_engine_t n_engines; pcilib_nwl_engine_description_t engines[PCILIB_MAX_DMA_ENGINES + 1]; -- cgit v1.2.3