summaryrefslogtreecommitdiff
path: root/target/linux/generic/files/include/linux/switch.h
Commit message (Collapse)AuthorAge
* swconfig: add (PHY) generic helper setting port linkRafał Miłecki2016-02-03
| | | | | | | | | | It's quite common for switches to have PHY per port so adding a generic helper setting link state will help many drivers. It just needs an API to access PHYs which this patch also adds. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48621
* swconfig: add API for setting port link speedRafał Miłecki2016-01-06
| | | | | | | | | Some switches can force link speed for a port. Let's add API that will allow drivers to export this feature. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 48142
* swconfig: add SWITCH_TYPE_LINK and support sending link info to user spaceJohn Crispin2015-12-23
| | | | | | | | | | | | | So far we were sending link data as a string. It got some drawbacks: 1) Didn't allow writing clean user space apps reading link state. It was needed to do some screen scraping. 2) Forced whole PORT_LINK communication to be string based. Adding support for *setting* port link required passing string and parting it in the kernel space. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47997
* ar8216: add 802.3az EEE info to swconfig get_link attributeFelix Fietkau2015-01-18
| | | | | | | | | | | | | AR8327/AR8337 allow to read the result of EEE autonegotiation. If EEE is autonegotiated between the link partners, display this as part of the swconfig get_link attribute. eee100: 100MBit EEE supported by both link partners eee1000: 1GBit EEE supported by both link partners Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 44022
* allow loading port maps from OFJohn Crispin2013-04-09
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36283
* generic: disintegrate UAPI from include/linux/switch.hGabor Juhos2012-12-14
| | | | | | Signed-off-by: Gabor Juhos <juhosg@openwrt.org> SVN-Revision: 34677
* swconfig: use a mutex instead of a spinlock, many swconfig calls sleepFelix Fietkau2012-03-15
| | | | SVN-Revision: 30952
* generic: swconfig: add a generic get_port_link implementationGabor Juhos2012-03-07
| | | | SVN-Revision: 30839
* kernel: swconfig: introduce a generic switch LED triggerGabor Juhos2011-12-31
| | | | SVN-Revision: 29627
* kernel: swconfig: add get_port_{link,stats} callbacksGabor Juhos2011-12-31
| | | | SVN-Revision: 29625
* swconfig: Add generic switch identifiersJonas Gorski2011-07-27
| | | | | | | | Also make switches available under a generic name "switch<num>" for device name agnostic access. The old device name is used as an alias for backward compatibility. SVN-Revision: 27800
* swconfig: cleanup of kernel drivers and interface - add some comments to a ↵Felix Fietkau2010-08-04
| | | | | | 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 SVN-Revision: 22476
* rename target/linux/generic-2.6 to genericFelix Fietkau2010-06-26
SVN-Revision: 21952