Add PHY module for re(4)
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 26 Dec 2005 13:36:18 +0000 (13:36 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 26 Dec 2005 13:36:18 +0000 (13:36 +0000)
commiteb2ada2e92bc459e21bee6767eb6c0777216e0dc
tree6555f1a231ea17cdcf947c9fb2004bc5fe663814
parent09e6e92932581e0441971af3609499a60aec187e
Add PHY module for re(4)

Changes to the original code:
- Turn on MIIF_IS_1000X so that mii_bmsr_media_to_anar() won't lie
- Enable auto-negotiation in rgephy_reset() so that ifconfig(8) will report
  correct media even when re(4) is not up

Obtained-from: FreeBSD
Patched-by: me and Gary Allan <dragonfly@gallan.plus.com>
Requested-by: Tomaz Borstnar <tomaz.borstnar@over.net>
Tested-by: Tomaz Borstnar <tomaz.borstnar@over.net>
   Gary Allan <dragonfly@gallan.plus.com>
   and me

# Thank Bill Paul and many other people for their work on this PHY module
sys/dev/netif/mii_layer/Makefile
sys/dev/netif/mii_layer/miidevs
sys/dev/netif/mii_layer/rgephy.c [new file with mode: 0644]
sys/dev/netif/mii_layer/rgephyreg.h [new file with mode: 0644]