1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

backfire: generic: rtl8366: move common debugfs code to rtl8366_smi.c (backport of 21981)

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@22027 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg
2010-07-01 18:08:32 +00:00
parent e4c3757c17
commit 1a7ad13e99
4 changed files with 193 additions and 335 deletions

View File

@@ -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 */