aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/etherswitch/ip17x
Commit message (Collapse)AuthorAgeFilesLines
* net: Remove unneeded NULL check for the allocated ifnetZhenlei Huang2024-07-121-6/+0
| | | | | | | | | | | | | Change 4787572d0580 made if_alloc_domain() never fail, then also do the wrappers if_alloc(), if_alloc_dev(), and if_gethandle(). No functional change intended. Reviewed by: kp, imp, glebius, stevek MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D45740 (cherry picked from commit aa3860851b9f6a6002d135b1cac7736e0995eedc)
* etherswitch: Use device_set_desc(f)()Mark Johnston2024-06-091-1/+1
| | | | | | | | No functional change intended. MFC after: 1 week (cherry picked from commit 54482989d34c94c6894cb51f65250a4d5946eb1b)
* ip17x: fix non-debug buildEd Maste2024-05-141-2/+2
| | | | | | | | | PR: 278847 Reviewed by: jhibbits Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D45133 (cherry picked from commit 82f43db382cc4aea2a3f34f08da9a97ab023d5fb)
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-1611-22/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-1211-11/+11
| | | | | | | | | The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause. Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
* etherswitch: Clean up whitespace after IfAPI conversionJustin Hibbits2023-01-311-3/+3
| | | | | Sponsored by: Juniper Networks, Inc. Fixes: 2e6a8c1ae
* Mechanically convert etherswitch drivers to IfAPIJustin Hibbits2023-01-242-16/+16
| | | | | | Reviewed by: kd Sponsored by: Juniper Networks, Inc. Differential Revision: https://reviews.freebsd.org/D37813
* etherswitch drivers: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-091-2/+1
|
* Remove unused etherswitch_devclass.John Baldwin2022-05-091-1/+1
|
* Remove unused mdio_devclass.John Baldwin2022-05-061-1/+1
|
* Remove unused miibus_devclass and miibus_fdt_devclass.John Baldwin2022-05-061-1/+1
|
* [etherswitch] check if_alloc returns NULLMichael Zhilin2018-01-241-0/+6
| | | | | | | | | | | This patch is cosmetic. It checks if allocation of ifnet structure failed. It's better to have this check rather than assume positive scenario. Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Reported by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Notes: svn path=/head/; revision=328377
* sys/dev: further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-2711-0/+22
| | | | | | | | | | | | | | | Mainly focus on files that use BSD 2-Clause license, however the tool I was using misidentified many licenses so this was mostly a manual - error prone - task. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Notes: svn path=/head/; revision=326255
* [ip17x] [etherswitch] fdt away and mii hang workaround on ip17xAdrian Chadd2017-05-062-4/+48
| | | | | | | | | | | | | | | | Add workaround mii access because of rt1310 is hang up on etherswitch mii poll. And FDT away on arm platform. Tested: * wzr2-g300n Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: mizhka Differential Revision: https://reviews.freebsd.org/D10295 Notes: svn path=/head/; revision=317866
* [etherswitch] enable phy4/mac4 of ip175cMichael Zhilin2016-11-152-0/+10
| | | | | | | | | | | | If MII1 interface is disabled, then enable phy4/mac4. Submitted by: Hiroki Mori <yamori813@yahoo.co.jp> Reviewed by: mizhka, adrian Approved by: adrian (mentor) Differential Revision: https://reviews.freebsd.org/D6832 Notes: svn path=/head/; revision=308702
* sys/dev: replace comma with semicolon when pertinent.Pedro F. Giffuni2016-08-091-1/+1
| | | | | | | | | | | | | Uses of commas instead of a semicolons can easily go undetected. The comma can serve as a statement separator but this shouldn't be abused when statements are meant to be standalone. Detected with devel/coccinelle following a hint from DragonFlyBSD. MFC after: 1 month Notes: svn path=/head/; revision=303891
* Cleanup unnecessary semicolons from the kernel.Pedro F. Giffuni2016-04-102-2/+2
| | | | | | | Found with devel/coccinelle. Notes: svn path=/head/; revision=297793
* [mdio] migrate mdiobus out of etherswitch and into a top-level device of its ↵Adrian Chadd2015-12-261-1/+1
| | | | | | | | | | | | | | own. The mdio driver interface is generally useful for devices that require MDIO without the full MII bus interface. This lifts the driver/interface out of etherswitch(4), and adds a mdio(4) man page. Submitted by: Landon Fuller <landon@landonf.org> Differential Revision: https://reviews.freebsd.org/D4606 Notes: svn path=/head/; revision=292738
* Fix the build with debug enabled and remove a variable used only at switchLuiz Otavio O Souza2014-05-092-11/+4
| | | | | | | initialization, it is nonsense keep it around without futher use. Notes: svn path=/head/; revision=265770
* Fix a bug on ip17x switch initialization which will fail as soon as youLuiz Otavio O Souza2014-05-092-2/+2
| | | | | | | | | | disable the debug and diagnosis options from current. We must wait 2ms after the switch reset and not 2us. Tested on RB433UAH. Notes: svn path=/head/; revision=265767
* Add missing includes and remove two unused ones.Christian Brueffer2014-02-273-2/+9
| | | | | | | | Reviewed by: loos MFC after: 1 week Notes: svn path=/head/; revision=262571
* Add a new flag (ETHERSWITCH_VID_VALID) to say what vlangroups are in use.Luiz Otavio O Souza2013-07-233-10/+30
| | | | | | | | | | | | | | | | | This fix the case when etherswitch is printing the information of port 0 vlan group (in port based vlan mode) with no member ports. Add the ETHERSWITCH_VID_VALID support to ip17x driver. Add the ETHERSWITCH_VID_VALID support to rt8366 driver. arswitch doesn't need to be updated as it doesn't support vlans management yet. Approved by: adrian (mentor) Notes: svn path=/head/; revision=253569
* Bring in a basic ethernet switch driver for the IP17x series ofAdrian Chadd2013-05-0811-0/+1650
switches. These are notably found on some AR71xx based Mikrotik boards. Submitted by: Luiz Otavio O Souza <loos.br@gmail.com> Reviewed by: ray Notes: svn path=/head/; revision=250386