summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
Commit message (Collapse)AuthorAgeFilesLines
* generic: RTL8366S/RB: Fix autonegotiation for the WAN port.juhosg2010-09-271-0/+5
| | | | | | | | | | | | The RTL8366S/RB support connecting a second mac to it and using the 5th port as an independent phy. Therefore we need to handle autonegotiation changes for phy 4 like on a single phy device. This fixes #7980, verified on a WNDR3700. Signed-off-by: Jonas Gorski <jonas.gorski+openwrt@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23127 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: add rtl8366rb switch port rate, port and qos enable/disable supportjuhosg2010-09-271-0/+210
| | | | | | Patch-by: Roman Yeryomin <roman@advem.lv> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23126 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: allow use of VIDs 16-4095 if vlan4k is enabledjuhosg2010-08-181-2/+7
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add generic code to enable VLANsjuhosg2010-08-181-42/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22703 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add enable_vlan{,4k} to smi_opsjuhosg2010-08-181-4/+6
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22702 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: fix LED control on the RTL8366 switchesjuhosg2010-08-151-1/+1
| | | | | | * patch from #7713 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22656 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rtl8366: re-enable learning by default, disabling it broke switching ↵nbd2010-08-081-4/+46
| | | | | | | | | 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
* swconfig: cleanup of kernel drivers and interfacenbd2010-08-041-8/+6
| | | | | | | | - 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
* generic: rtl8366: add common rtl8366_sw_{get,set}_vlan_ports functionsjuhosg2010-07-151-53/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22204 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_vlan_infojuhosg2010-07-151-42/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22203 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use smi->num_ports and smi->ops->get_vlan_4kjuhosg2010-07-151-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22202 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add is_vlan_valid function to smi_opsjuhosg2010-07-151-3/+12
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22201 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_get_port_mib functionjuhosg2010-07-151-34/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22200 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: generealize rtl8366{s,rb}_sw_get_port_mib functionsjuhosg2010-07-151-4/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22199 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common rtl8366_sw_{get,set}_port_pvid functionsjuhosg2010-07-151-14/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22197 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add setup to rtl8366_smi_ops structjuhosg2010-07-151-4/+2
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: introduce rtl8366_smi_allocjuhosg2010-07-151-3/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22195 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private rtl8366{s,rb} structsjuhosg2010-07-151-42/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22194 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move switch device to the rtl8366_smi structjuhosg2010-07-151-11/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22193 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: get rid of private vlan_{mc,4k} structsjuhosg2010-07-151-155/+71
| | | | | | | | | 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
* generic: rtl8366: use SWITCH_TYPE_NOVAL for reset_mib attributesjuhosg2010-07-151-12/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22191 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: enable VLAN ingress filteringjuhosg2010-07-021-0/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22044 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: minor cleanupjuhosg2010-06-281-14/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21985 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add common read_debugfs_mibs functionjuhosg2010-06-281-72/+0
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21984 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: standardize read_debugfs_mibs functionsjuhosg2010-06-281-12/+21
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21983 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use common rtl8366_mib_counter structurejuhosg2010-06-281-40/+34
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21982 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move common debugfs code to rtl8366_smi.cjuhosg2010-06-281-167/+9
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21981 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move buf to struct rtl8366_smijuhosg2010-06-281-36/+32
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21980 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: move common VLAN handling functions to rtl8366_smi.cjuhosg2010-06-281-205/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21979 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add cpu_port, num_ports and num_vlan_mc to struct rtl8366_smijuhosg2010-06-281-10/+13
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21978 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: add VLAN handling functions to rtl8366_smi_opsjuhosg2010-06-281-18/+25
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21977 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366: use RTL8366{S,RB} prefixes for all definesjuhosg2010-06-281-236/+236
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21976 3c298f89-4303-0410-b956-a3cf2f4a3e73
* generic: rtl8366rb: fix MIB counter resetjuhosg2010-06-271-10/+8
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21969 3c298f89-4303-0410-b956-a3cf2f4a3e73
* rename target/linux/generic-2.6 to genericnbd2010-06-261-0/+1797
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21952 3c298f89-4303-0410-b956-a3cf2f4a3e73