55 lines · 1.3 KB · C
RawDownload
/* SPDX-License-Identifier: GPL-2.0+ *//* Copyright (C) 2022 Microchip Technology Inc. and its subsidiaries. * Microchip VCAP API */ #ifndef __VCAP_API_DEBUGFS__#define __VCAP_API_DEBUGFS__ #include <linux/types.h>#include <linux/debugfs.h>#include <linux/netdevice.h> #include "vcap_api.h" #if defined(CONFIG_DEBUG_FS) void vcap_port_debugfs(struct device *dev, struct dentry *parent,		       struct vcap_control *vctrl,		       struct net_device *ndev); void vcap_port_debugfs_portno(struct device *dev,			      struct dentry *parent,			      struct vcap_control *vctrl,			      struct net_device *ndev,			      unsigned int portno); /* Create a debugFS entry for a vcap instance */struct dentry *vcap_debugfs(struct device *dev, struct dentry *parent,			    struct vcap_control *vctrl); #else static inline void vcap_port_debugfs(struct device *dev, struct dentry *parent,				     struct vcap_control *vctrl,				     struct net_device *ndev){} static inline void vcap_port_debugfs_portno(struct device *dev,					    struct dentry *parent,					    struct vcap_control *vctrl,					    struct net_device *ndev,					    unsigned int portno){} static inline struct dentry *vcap_debugfs(struct device *dev,					  struct dentry *parent,					  struct vcap_control *vctrl){	return NULL;} #endif#endif /* __VCAP_API_DEBUGFS__ */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t