diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-06-28 17:23:45 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-06-28 17:23:45 +0000 |
commit | 7639f28439496bad5ff4ec1a2d80f24964d452c3 (patch) | |
tree | e216736f84ee4b7ed0321889f3f4382f9ddb3349 /target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | |
parent | 652ecc789b01e6b258a59c5ec43bf0e3902fcb98 (diff) | |
download | upstream-7639f28439496bad5ff4ec1a2d80f24964d452c3.tar.gz upstream-7639f28439496bad5ff4ec1a2d80f24964d452c3.tar.bz2 upstream-7639f28439496bad5ff4ec1a2d80f24964d452c3.zip |
generic: rtl8366: move common VLAN handling functions to rtl8366_smi.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21979 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366_smi.h')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366_smi.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 9ed8c45732..f111f2b525 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.h @@ -71,4 +71,10 @@ int rtl8366_smi_write_reg(struct rtl8366_smi *smi, u32 addr, u32 data); int rtl8366_smi_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data); int rtl8366_smi_rmwr(struct rtl8366_smi *smi, u32 addr, u32 mask, u32 data); +int rtl8366_set_vlan(struct rtl8366_smi *smi, int vid, u32 member, u32 untag, + u32 fid); +int rtl8366_reset_vlan(struct rtl8366_smi *smi); +int rtl8366_get_pvid(struct rtl8366_smi *smi, int port, int *val); +int rtl8366_set_pvid(struct rtl8366_smi *smi, unsigned port, unsigned vid); + #endif /* _RTL8366_SMI_H */ |