summaryrefslogtreecommitdiffstats
path: root/drivers/dma/ptdma/ptdma.h
diff options
context:
space:
mode:
authorSanjay R Mehta <sanju.mehta@amd.com>2021-08-17 15:55:59 +0200
committerVinod Koul <vkoul@kernel.org>2021-08-29 15:44:20 +0200
commite2fb2e2a33fae6009bf68574a7eec8fcfdf9c78e (patch)
tree29fca1b073cb6d133308ed933f0ddc028e82fa51 /drivers/dma/ptdma/ptdma.h
parentdmaengine: ptdma: register PTDMA controller as a DMA resource (diff)
downloadlinux-e2fb2e2a33fae6009bf68574a7eec8fcfdf9c78e.tar.xz
linux-e2fb2e2a33fae6009bf68574a7eec8fcfdf9c78e.zip
dmaengine: ptdma: Add debugfs entries for PTDMA
Expose data about the configuration and operation of the PTDMA through debugfs entries: device name, capabilities, configuration, statistics. Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com> Link: https://lore.kernel.org/r/1629208559-51964-4-git-send-email-Sanju.Mehta@amd.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/ptdma/ptdma.h')
-rw-r--r--drivers/dma/ptdma/ptdma.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/dma/ptdma/ptdma.h b/drivers/dma/ptdma/ptdma.h
index 1329c55439b1..860e302bcae6 100644
--- a/drivers/dma/ptdma/ptdma.h
+++ b/drivers/dma/ptdma/ptdma.h
@@ -216,6 +216,8 @@ struct pt_cmd_queue {
u32 q_status;
u32 q_int_status;
u32 cmd_error;
+ /* Queue Statistics */
+ unsigned long total_pt_ops;
} ____cacheline_aligned;
struct pt_device {
@@ -254,6 +256,9 @@ struct pt_device {
wait_queue_head_t lsb_queue;
+ /* Device Statistics */
+ unsigned long total_interrupts;
+
struct pt_tasklet_data tdata;
};
@@ -307,6 +312,7 @@ struct pt_dev_vdata {
int pt_dmaengine_register(struct pt_device *pt);
void pt_dmaengine_unregister(struct pt_device *pt);
+void ptdma_debugfs_setup(struct pt_device *pt);
int pt_core_init(struct pt_device *pt);
void pt_core_destroy(struct pt_device *pt);