From 18ab2efaa8209a6b3ec563644b6c23d134e78af3 Mon Sep 17 00:00:00 2001 From: juhosg Date: Mon, 28 Jun 2010 17:23:52 +0000 Subject: generic: rtl8366: move common debugfs code to rtl8366_smi.c git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21981 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366_smi.h') diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h index 863955301..323887596 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h @@ -16,6 +16,9 @@ struct rtl8366_smi_ops; struct rtl8366_vlan_ops; struct mii_bus; +struct dentry; +struct inode; +struct file; struct rtl8366_smi { struct device *parent; @@ -32,6 +35,10 @@ struct rtl8366_smi { struct rtl8366_smi_ops *ops; char buf[4096]; +#ifdef CONFIG_RTL8366S_PHY_DEBUG_FS + struct dentry *debugfs_root; + u16 dbg_reg; +#endif }; struct rtl8366_vlan_mc { @@ -79,4 +86,8 @@ int rtl8366_reset_vlan(struct rtl8366_smi *smi); int rtl8366_get_pvid(struct rtl8366_smi *smi, int port, int *val); int rtl8366_set_pvid(struct rtl8366_smi *smi, unsigned port, unsigned vid); +#ifdef CONFIG_RTL8366S_PHY_DEBUG_FS +int rtl8366_debugfs_open(struct inode *inode, struct file *file); +#endif + #endif /* _RTL8366_SMI_H */ -- cgit v1.2.3