summaryrefslogtreecommitdiffstats
path: root/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'dma.c')
-rw-r--r--dma.c9
1 files changed, 5 insertions, 4 deletions
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);
}