diff options
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366_smi.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | 11 |
1 files changed, 11 insertions, 0 deletions
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 8639553..3238875 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 */ |