summaryrefslogtreecommitdiffstats
path: root/drivers/dma/qcom/hidma.h
diff options
context:
space:
mode:
authorSinan Kaya <okaya@codeaurora.org>2016-05-01 06:25:27 +0200
committerVinod Koul <vinod.koul@intel.com>2016-05-14 08:24:45 +0200
commit570d0176296f0d17c4b5ab206ad4a4bc027b863b (patch)
tree1c8d62592e8c332a5de3247d3dfcb65df8a83ff9 /drivers/dma/qcom/hidma.h
parentdmaengine: qcom_hidma: implement lower level hardware interface (diff)
downloadlinux-570d0176296f0d17c4b5ab206ad4a4bc027b863b.tar.xz
linux-570d0176296f0d17c4b5ab206ad4a4bc027b863b.zip
dmaengine: qcom_hidma: add debugfs hooks
Add debugfs hooks for debugging the execution behavior of the DMA channel. The debugfs hooks get initialized by the probe function and uninitialized by the remove function. A stats file is created in debugfs. The stats file will show the information about each HIDMA channel as well as each asynchronous job queued and completed at a given time. Signed-off-by: Sinan Kaya <okaya@codeaurora.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/qcom/hidma.h')
-rw-r--r--drivers/dma/qcom/hidma.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/qcom/hidma.h b/drivers/dma/qcom/hidma.h
index b1362ef7b747..db413a5efc4e 100644
--- a/drivers/dma/qcom/hidma.h
+++ b/drivers/dma/qcom/hidma.h
@@ -153,4 +153,6 @@ int hidma_ll_uninit(struct hidma_lldev *llhndl);
irqreturn_t hidma_ll_inthandler(int irq, void *arg);
void hidma_cleanup_pending_tre(struct hidma_lldev *llhndl, u8 err_info,
u8 err_code);
+int hidma_debug_init(struct hidma_dev *dmadev);
+void hidma_debug_uninit(struct hidma_dev *dmadev);
#endif