mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
generic: rtl8366: preparing for RTL8367 support
* make clock delay configurable * make read,write commands configurable * use u16 for member and untag fields git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29677 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -32,6 +32,9 @@ struct rtl8366_smi {
|
||||
struct device *parent;
|
||||
unsigned int gpio_sda;
|
||||
unsigned int gpio_sck;
|
||||
unsigned int clk_delay; /* ns */
|
||||
u8 cmd_read;
|
||||
u8 cmd_write;
|
||||
spinlock_t lock;
|
||||
struct mii_bus *mii_bus;
|
||||
int mii_irq[PHY_MAX_ADDR];
|
||||
@@ -58,16 +61,16 @@ struct rtl8366_smi {
|
||||
|
||||
struct rtl8366_vlan_mc {
|
||||
u16 vid;
|
||||
u8 priority;
|
||||
u8 untag;
|
||||
u8 member;
|
||||
u16 untag;
|
||||
u16 member;
|
||||
u8 fid;
|
||||
u8 priority;
|
||||
};
|
||||
|
||||
struct rtl8366_vlan_4k {
|
||||
u16 vid;
|
||||
u8 untag;
|
||||
u8 member;
|
||||
u16 untag;
|
||||
u16 member;
|
||||
u8 fid;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user