1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-18 13:40:17 +02:00
Commit Graph

134 Commits

Author SHA1 Message Date
juhosg
3b7b50fb89 generic: rtl8366: add enable_vlan{,4k} to smi_ops
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22702 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-18 16:00:34 +00:00
juhosg
fbab069d3f generic: fix LED control on the RTL8366 switches
* patch from #7713

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22656 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-15 06:47:42 +00:00
nbd
1fc3901363 rtl8366: re-enable learning by default, disabling it broke switching functionality.
add a configuration option for dynamically enabling/disabling this feature.
based on patch from #7637

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22545 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-08 20:15:10 +00:00
nbd
f093fbf8a3 swconfig: cleanup of kernel drivers and interface
- add some comments to a few data structures
- add a switch_dev_ops data structure for attributes and callback to replace the stupid template memcpy
- get rid of the switch_dev.priv pointer - using container_of() is better

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22476 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-04 00:43:40 +00:00
jow
fe9e70274f ip17xx: r21709 broke VLAN functionality on the IP175C switch, add back mdelay() to wait before reading back the phy state, fixes ethernet on the DIR-300 and possibly others
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22468 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-08-03 03:04:34 +00:00
juhosg
6002af8edd generic: rtl8366: add debugfs file to show PVIDs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22206 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:56 +00:00
juhosg
12e4b34390 generic: rtl8366: make rtl8366_set_vlan static
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:53 +00:00
juhosg
8007d48891 generic: rtl8366: add common rtl8366_sw_{get,set}_vlan_ports functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22204 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:50 +00:00
juhosg
dac77d22af generic: rtl8366: add common rtl8366_sw_get_vlan_info
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22203 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:47 +00:00
juhosg
4bcb729a13 generic: rtl8366: use smi->num_ports and smi->ops->get_vlan_4k
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:43 +00:00
juhosg
fc85856afd generic: rtl8366: add is_vlan_valid function to smi_ops
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22201 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:39 +00:00
juhosg
5476411f3d generic: rtl8366: add common rtl8366_sw_get_port_mib function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22200 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:36 +00:00
juhosg
a072aff468 generic: rtl8366: generealize rtl8366{s,rb}_sw_get_port_mib functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22199 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:32 +00:00
juhosg
b956ede575 generic: rtl8366: make rtl8366_{g,s}et_pvid static
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22198 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:29 +00:00
juhosg
6938bc08df generic: rtl8366: add common rtl8366_sw_{get,set}_port_pvid functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22197 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:25 +00:00
juhosg
e920aacf90 generic: rtl8366: add setup to rtl8366_smi_ops struct
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:21 +00:00
juhosg
ec7835703b generic: rtl8366: introduce rtl8366_smi_alloc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:16 +00:00
juhosg
a8fb744861 generic: rtl8366: get rid of private rtl8366{s,rb} structs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22194 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:10 +00:00
juhosg
e2d43315df generic: rtl8366: move switch device to the rtl8366_smi struct
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22193 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:06 +00:00
juhosg
320e8ef881 generic: rtl8366: get rid of private vlan_{mc,4k} structs
The usage of bitfields causes problems in Little-Endian mode. Remove
them and manipulate the bits directly in the appropriate functions. This
change also reduces the size of the binary a bit.


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22192 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:05:02 +00:00
juhosg
c26785337f generic: rtl8366: use SWITCH_TYPE_NOVAL for reset_mib attributes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22191 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-15 13:04:57 +00:00
juhosg
e11397b6d4 generic: rtl8366: enable VLAN ingress filtering
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22044 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-07-02 09:55:57 +00:00
juhosg
302f3c09e8 generic: rtl8366: minor cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:24:05 +00:00
juhosg
d357a4cc6a generic: rtl8366: add common read_debugfs_mibs function
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:24:02 +00:00
juhosg
aaf0b375e0 generic: rtl8366: standardize read_debugfs_mibs functions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21983 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:59 +00:00
juhosg
41d026022e generic: rtl8366: use common rtl8366_mib_counter structure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21982 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:56 +00:00
juhosg
18ab2efaa8 generic: rtl8366: move common debugfs code to rtl8366_smi.c
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21981 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:52 +00:00
juhosg
d59f0a0930 generic: rtl8366: move buf to struct rtl8366_smi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21980 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:48 +00:00
juhosg
30a7cdf55e 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
2010-06-28 17:23:45 +00:00
juhosg
7a3a11aca6 generic: rtl8366: add cpu_port, num_ports and num_vlan_mc to struct rtl8366_smi
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21978 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:41 +00:00
juhosg
a81c90dc76 generic: rtl8366: add VLAN handling functions to rtl8366_smi_ops
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21977 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:37 +00:00
juhosg
e05b25a242 generic: rtl8366: use RTL8366{S,RB} prefixes for all defines
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21976 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-28 17:23:33 +00:00
juhosg
dfa85e2fa8 generic: rtl8366rb: fix MIB counter reset
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21969 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-27 14:37:34 +00:00
nbd
c5552ad039 rename target/linux/generic-2.6 to generic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21952 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-06-26 20:42:58 +00:00