ar40xx: fix to compile/run under the new ifnet rulesLocally tested:* IPQ4018, Asus router, w/ ethernet driverDifferential Revision: https://reviews.freebsd.org/D49025Reviewed by: imp, zlei
etherswitch: Cleanup detach and delete of child devices during detachCall bus_generic_detach first and return any error. Remove no longerneeded individual device_delete_child calls.Differential
etherswitch: Cleanup detach and delete of child devices during detachCall bus_generic_detach first and return any error. Remove no longerneeded individual device_delete_child calls.Differential Revision: https://reviews.freebsd.org/D47970
show more ...
Replace calls to bus_generic_attach with bus_attach_childrenReviewed by: impDifferential Revision: https://reviews.freebsd.org/D47675
Replace calls to bus_generic_probe with bus_identify_childrenReviewed by: impDifferential Revision: https://reviews.freebsd.org/D47674
net: Remove unneeded NULL check for the allocated ifnetChange 4787572d0580 made if_alloc_domain() never fail, then also do thewrappers if_alloc(), if_alloc_dev(), and if_gethandle().No functiona
net: Remove unneeded NULL check for the allocated ifnetChange 4787572d0580 made if_alloc_domain() never fail, then also do thewrappers if_alloc(), if_alloc_dev(), and if_gethandle().No functional change intended.Reviewed by: kp, imp, glebius, stevekMFC after: 2 weeksDifferential Revision: https://reviews.freebsd.org/D45740
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a
hwreset: Move reset code in dev/hwresetWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: impSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43192
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of
clk: Move clock code in dev/clkWe've removed kernel option EXT_RESOURCES almost two years ago.While it was ok to have some code under a common 'extres' subdirectoryat first, we now have a lot of consumer of it and we made it mandatoryso no need to have it under a cryptic name.Reviewed by: mhorneSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D43191
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDThe SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catchup to that fact and revert to their recommended match of BSD-2-Clause.Discussed with: pfgMFC After: 3 daysSponsored by: Netflix
etherswitch: Fix leftovers from IfAPI conversionSponsored by: Juniper Networks, Inc.
Mechanically convert etherswitch drivers to IfAPIReviewed by: kdSponsored by: Juniper Networks, Inc.Differential Revision: https://reviews.freebsd.org/D37813
etherswitch drivers: Remove unused devclass arguments to DRIVER_MODULE.
Remove unused etherswitch_devclass.
Remove unused mdio_devclass.
Remove unused miibus_devclass and miibus_fdt_devclass.
ar40xx_switch: add initial switch for the IPQ4018/IPQ4019.Summary:This switch is based off of the AR8327/AR8337 external switch/PHY.However unlike the AR8327/AR8337 it itself doesn't have any PH
ar40xx_switch: add initial switch for the IPQ4018/IPQ4019.Summary:This switch is based off of the AR8327/AR8337 external switch/PHY.However unlike the AR8327/AR8337 it itself doesn't have any PHYs;instead an external PHY connects to it using the PSGMII port.Differential Revision: https://reviews.freebsd.org/D34112Reviewed by: manuThis code is inspired by the ar40xx code in openwrt, which itselfis based on the Qualcomm QCA-SSDK. Both of these sources are, amusingly,BSD licenced - and thus I have included some of the comments in thehardware workaround paths to document some of the magic numbers.