xref: /linux/drivers/net/ethernet/amazon/ena/ena_debugfs.h (revision 8be4d31cb8aaeea27bde4b7ddb26e28a89062ebf)
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
2 /* Copyright (c) Amazon.com, Inc. or its affiliates.
3  * All rights reserved.
4  */
5 
6 #ifndef __ENA_DEBUGFS_H__
7 #define __ENA_DEBUGFS_H__
8 
9 #include <linux/debugfs.h>
10 #include <linux/netdevice.h>
11 #include "ena_netdev.h"
12 
13 #ifdef CONFIG_DEBUG_FS
14 
15 void ena_debugfs_init(struct net_device *dev);
16 
17 void ena_debugfs_terminate(struct net_device *dev);
18 
19 #else /* CONFIG_DEBUG_FS */
20 
ena_debugfs_init(struct net_device * dev)21 static inline void ena_debugfs_init(struct net_device *dev) {}
22 
ena_debugfs_terminate(struct net_device * dev)23 static inline void ena_debugfs_terminate(struct net_device *dev) {}
24 
25 #endif /* CONFIG_DEBUG_FS */
26 
27 #endif /* __ENA_DEBUGFS_H__ */
28