diff options
author | Steen Hegelund <steen.hegelund@microchip.com> | 2022-11-18 00:31:09 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-21 14:33:02 +0300 |
commit | e0305cc1d125d76e6614a675b1126f00152d6789 (patch) | |
tree | 9d841fd420a39b0f064b31c4677d1fc986547d70 /drivers/net/ethernet/microchip/sparx5/sparx5_main.h | |
parent | 277e9179efe5cf3719c7cf181404d26a348c37cf (diff) | |
download | linux-e0305cc1d125d76e6614a675b1126f00152d6789.tar.xz |
net: microchip: sparx5: Add VCAP debugFS support
Add a debugFS root folder for Sparx5 and add a vcap folder underneath with
the VCAP instances and the ports
Signed-off-by: Steen Hegelund <steen.hegelund@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/microchip/sparx5/sparx5_main.h')
-rw-r--r-- | drivers/net/ethernet/microchip/sparx5/sparx5_main.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h index 5985f2087d7f..4a574cdcb584 100644 --- a/drivers/net/ethernet/microchip/sparx5/sparx5_main.h +++ b/drivers/net/ethernet/microchip/sparx5/sparx5_main.h @@ -17,6 +17,7 @@ #include <linux/net_tstamp.h> #include <linux/ptp_clock_kernel.h> #include <linux/hrtimer.h> +#include <linux/debugfs.h> #include "sparx5_main_regs.h" @@ -292,6 +293,8 @@ struct sparx5 { struct vcap_control *vcap_ctrl; /* PGID allocation map */ u8 pgid_map[PGID_TABLE_SIZE]; + /* Common root for debugfs */ + struct dentry *debugfs_root; }; /* sparx5_switchdev.c */ |