make rtl8366 driver OF capable
[lede.git] / target / linux / generic / files / drivers / net / phy / rtl8366_smi.h
index 5c60a3093fcb0439f03e2dd6faf614e0eeba82f8..85ce05e463f9e58da28fecf41a99608910182d87 100644 (file)
@@ -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 */