From ec5fd54c7559392139fa704a57185f4d4244dfde Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 17 Jul 2011 06:25:14 +0200 Subject: Few fixes --- dma.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dma.c') diff --git a/dma.c b/dma.c index 45466b7..db7625c 100644 --- a/dma.c +++ b/dma.c @@ -72,7 +72,6 @@ int pcilib_start_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t } if (!ctx->model_info.dma_api->start_dma) { - //pcilib_error("The IRQs are not supported by configured DMA engine"); return 0; } @@ -94,10 +93,12 @@ int pcilib_stop_dma(pcilib_t *ctx, pcilib_dma_engine_t dma, pcilib_dma_flags_t f } if (!ctx->model_info.dma_api->stop_dma) { - //pcilib_error("The IRQs are not supported by configured DMA engine"); return 0; } - + + + printf("stop dma: %li\n", dma); + return ctx->model_info.dma_api->stop_dma(ctx->dma_ctx, dma, flags); } @@ -119,7 +120,7 @@ int pcilib_enable_irq(pcilib_t *ctx, pcilib_irq_type_t irq_type, pcilib_dma_flag //pcilib_error("The IRQs are not supported by configured DMA engine"); return 0; } - + return ctx->model_info.dma_api->enable_irq(ctx->dma_ctx, irq_type, flags); } -- cgit v1.2.3