File Index
Files and directories
Sign in
FILE

ena_debugfs.h

File preview with syntax highlighting.

linux-6.19.14/drivers/net/ethernet/amazon/ena/ena_debugfs.h C
 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
15void ena_debugfs_init(struct net_device *dev);
16
17void ena_debugfs_terminate(struct net_device *dev);
18
19#else /* CONFIG_DEBUG_FS */
20
21static inline void ena_debugfs_init(struct net_device *dev) {}
22
23static inline void ena_debugfs_terminate(struct net_device *dev) {}
24
25#endif /* CONFIG_DEBUG_FS */
26
27#endif /* __ENA_DEBUGFS_H__ */
~/ Read-only file preview.