backfire: generic: rtl8366: move common VLAN handling functions to rtl8366_smi.c...
[openwrt-10.03/.git] / target / linux / generic-2.6 / files / drivers / net / phy / rtl8366_smi.h
index 9ed8c457324bdaf5cd5ec82089de6e57966d742c..f111f2b52557e7d5e63b4be24c72f7d5d9753d87 100644 (file)
@@ -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 */