// SPDX-License-Identifier: GPL-2.0-only /* * AMD Passthrough DMA device driver * -- Based on the CCP driver * * Copyright (C) 2016,2021 Advanced Micro Devices, Inc. * * Author: Sanjay R Mehta <[email protected]> * Author: Gary R Hook <[email protected]> */ #include <linux/debugfs.h> #include <linux/seq_file.h> #include "ptdma.h" /* DebugFS helpers */ #define RI_VERSION_NUM … #define RI_NUM_VQM … #define RI_NVQM_SHIFT … static int pt_debugfs_info_show(struct seq_file *s, void *p) { … } /* * Return a formatted buffer containing the current * statistics of queue for PTDMA */ static int pt_debugfs_stats_show(struct seq_file *s, void *p) { … } static int pt_debugfs_queue_show(struct seq_file *s, void *p) { … } DEFINE_SHOW_ATTRIBUTE(…); DEFINE_SHOW_ATTRIBUTE(…); DEFINE_SHOW_ATTRIBUTE(…); void ptdma_debugfs_setup(struct pt_device *pt) { … }