From cfec995c87f39e59c80554b85625b4aaa8ddf8db Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Fri, 17 Apr 2026 10:11:42 -0700 Subject: ixgbe: add MDIO bus support This works enough to let me see the marvell switch on the MDIO bus. It uses clause 22, which ixgbe's existing MDIO code doesn't currently support, so it's implemented in a new source file. Since mdio(4) is now required, add it where appropriate to GENERIC kernels. Reviewed by: kbowling Differential Revision: https://reviews.freebsd.org/D50128 --- sys/conf/NOTES | 3 +++ sys/conf/files | 4 ++++ 2 files changed, 7 insertions(+) (limited to 'sys/conf') diff --git a/sys/conf/NOTES b/sys/conf/NOTES index 4279fae4c547..d982164ae3a1 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -1997,6 +1997,9 @@ device vr # VIA Rhine, Rhine II device vte # DM&P Vortex86 RDC R6040 Fast Ethernet device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') +# MDIO bus for Ethernet NICs that directly expose the MDIO bus +device mdio + # PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure device iflib device em # Intel Pro/1000 Gigabit Ethernet diff --git a/sys/conf/files b/sys/conf/files index da07e370a712..18ca17c731a8 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -2300,6 +2300,10 @@ dev/ixgbe/if_ix.c optional ix inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP" dev/ixgbe/if_ixv.c optional ixv inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP" +dev/ixgbe/if_ix_mdio.c optional ix inet mdio \ + compile-with "${NORMAL_C} -I$S/dev/ixgbe" +dev/ixgbe/if_ix_mdio_hw.c optional ix inet mdio \ + compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/if_bypass.c optional ix inet \ compile-with "${NORMAL_C} -I$S/dev/ixgbe" dev/ixgbe/if_fdir.c optional ix inet | ixv inet \ -- cgit v1.3