Only check GiGE related flags in the generic code when MIIF_IS_1000X is set
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 15:55:32 +0000 (15:55 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 24 Oct 2005 15:55:32 +0000 (15:55 +0000)
commit515db302876857983966fb4004f33d1113610ea9
treefcdd151e58c13f4c77a9cd7f12d77ae0e2c795d8
parent2b71c8f1007701e813e81ac88df4f2b6d8d019ee
Only check GiGE related flags in the generic code when MIIF_IS_1000X is set
in mii_softc->mii_flags.  This really only effects the generic MII code, as
the flags for GigE may not be compatible with all devices (such as xl(4)).

Change the mii_add_media() API to pass mii_softc instead of mii_data, and
derive the instance id from the softc instead of passing it.

Reported-by: Sepherosa Ziehau <sepherosa@gmail.com>
19 files changed:
sys/dev/netif/mii_layer/acphy.c
sys/dev/netif/mii_layer/amphy.c
sys/dev/netif/mii_layer/brgphy.c
sys/dev/netif/mii_layer/dcphy.c
sys/dev/netif/mii_layer/exphy.c
sys/dev/netif/mii_layer/inphy.c
sys/dev/netif/mii_layer/lxtphy.c
sys/dev/netif/mii_layer/mii_physubr.c
sys/dev/netif/mii_layer/miivar.h
sys/dev/netif/mii_layer/mlphy.c
sys/dev/netif/mii_layer/nsgphy.c
sys/dev/netif/mii_layer/nsphy.c
sys/dev/netif/mii_layer/pnphy.c
sys/dev/netif/mii_layer/qsphy.c
sys/dev/netif/mii_layer/rlphy.c
sys/dev/netif/mii_layer/ruephy.c
sys/dev/netif/mii_layer/tlphy.c
sys/dev/netif/mii_layer/ukphy.c
sys/dev/netif/mii_layer/ukphy_subr.c