X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Ffiles%2Fdrivers%2Fnet%2Fphy%2Frtl8366_smi.h;h=85ce05e463f9e58da28fecf41a99608910182d87;hb=d8678644f9b18f36bdd5e7825e09c65dfcd049dc;hp=5c60a3093fcb0439f03e2dd6faf614e0eeba82f8;hpb=e931ffd678298d07d90618bb4e0685e6e1235301;p=lede.git 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 5c60a3093f..85ce05e463 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h @@ -32,6 +32,7 @@ struct rtl8366_smi { struct device *parent; unsigned int gpio_sda; unsigned int gpio_sck; + void (*hw_reset)(bool active); unsigned int clk_delay; /* ns */ u8 cmd_read; u8 cmd_write; @@ -52,7 +53,7 @@ struct rtl8366_smi { int vlan4k_enabled; char buf[4096]; -#ifdef CONFIG_RTL8366S_PHY_DEBUG_FS +#ifdef CONFIG_RTL8366_SMI_DEBUG_FS struct dentry *debugfs_root; u16 dbg_reg; u8 dbg_vlan_4k_page; @@ -112,7 +113,7 @@ int rtl8366_reset_vlan(struct rtl8366_smi *smi); int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable); int rtl8366_enable_all_ports(struct rtl8366_smi *smi, int enable); -#ifdef CONFIG_RTL8366S_PHY_DEBUG_FS +#ifdef CONFIG_RTL8366_SMI_DEBUG_FS int rtl8366_debugfs_open(struct inode *inode, struct file *file); #endif @@ -145,4 +146,6 @@ int rtl8366_sw_set_vlan_enable(struct switch_dev *dev, const struct switch_attr *attr, struct switch_val *val); +struct rtl8366_smi* rtl8366_smi_probe(struct platform_device *pdev); + #endif /* _RTL8366_SMI_H */