drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/microchip/vcap/vcap_api_debugfs.h
Extension
.h
Size
977 bytes
Lines
42
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#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);

/* 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 struct dentry *vcap_debugfs(struct device *dev,
					  struct dentry *parent,
					  struct vcap_control *vctrl)
{
	return NULL;
}

#endif
#endif /* __VCAP_API_DEBUGFS__ */

Annotation

Implementation Notes