OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 12... Line 12...
12 #define _RTL8366_SMI_H 12 #define _RTL8366_SMI_H
Line 13... Line 13...
13   13  
14 #include <linux/phy.h> 14 #include <linux/phy.h>
15 #include <linux/switch.h> 15 #include <linux/switch.h>
16 #include <linux/platform_device.h> -  
Line 17... Line 16...
17 #include <linux/reset.h> 16 #include <linux/platform_device.h>
18   17  
19 struct rtl8366_smi_ops; 18 struct rtl8366_smi_ops;
20 struct rtl8366_vlan_ops; 19 struct rtl8366_vlan_ops;
Line 32... Line 31...
32   31  
33 struct rtl8366_smi { 32 struct rtl8366_smi {
34 struct device *parent; 33 struct device *parent;
35 unsigned int gpio_sda; 34 unsigned int gpio_sda;
36 unsigned int gpio_sck; 35 unsigned int gpio_sck;
37 void (*hw_reset)(struct rtl8366_smi *smi, bool active); 36 void (*hw_reset)(bool active);
38 unsigned int clk_delay; /* ns */ 37 unsigned int clk_delay; /* ns */
39 u8 cmd_read; 38 u8 cmd_read;
40 u8 cmd_write; 39 u8 cmd_write;
41 spinlock_t lock; 40 spinlock_t lock;
Line 53... Line 52...
53   52  
54 int vlan_enabled; 53 int vlan_enabled;
Line 55... Line 54...
55 int vlan4k_enabled; 54 int vlan4k_enabled;
56   -  
57 char buf[4096]; -  
58   -  
59 struct reset_control *reset; 55  
60   56 char buf[4096];
61 #ifdef CONFIG_RTL8366_SMI_DEBUG_FS 57 #ifdef CONFIG_RTL8366_SMI_DEBUG_FS
62 struct dentry *debugfs_root; 58 struct dentry *debugfs_root;
63 u16 dbg_reg; 59 u16 dbg_reg;
64 u8 dbg_vlan_4k_page; -  
65 #endif 60 u8 dbg_vlan_4k_page;
Line 66... Line 61...
66 struct mii_bus *ext_mbus; 61 #endif
67 }; 62 };
68   63