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=1105ce47fcfee6794d26604104797b0d41c29a1a;hpb=badd7a3cf29aa6c156ddc0010e68519814b456e5;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 1105ce47fc..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 @@ -121,6 +122,7 @@ static inline struct rtl8366_smi *sw_to_rtl8366_smi(struct switch_dev *sw) return container_of(sw, struct rtl8366_smi, sw_dev); } +int rtl8366_sw_reset_switch(struct switch_dev *dev); int rtl8366_sw_get_port_pvid(struct switch_dev *dev, int port, int *val); int rtl8366_sw_set_port_pvid(struct switch_dev *dev, int port, int val); int rtl8366_sw_get_port_mib(struct switch_dev *dev, @@ -144,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 */