From ffc1f10e0bf55eb5612e560d3660d7dd9ae68234 Mon Sep 17 00:00:00 2001 From: wpaul Date: Sat, 22 Apr 2000 02:16:41 +0000 Subject: Reoganize/update the SysKonnect driver: - Break out the support for the XMAC II's PHY into an miibus driver. - Reorganize the probe/attach stuff using newbus. Each XMAC is now attached to the parent GEnesis controller using newbus. This is necessary since each XMAC must also have an attached miibus, and the miibus read/write register routines need to be able to get at the softc struct for each XMAC, not the one for the parent controller. This allows me to get rid of the grotty code I added for selecting the unit numbers for the ifnet interfaces: the unit numbers are now derived from the newbus-assigned unit numbers, which should track with the ifnet interface numbers. I think. At the very least, there should never be any collisions. - Add support for the SK-9821 and SK-9822 1000baseTX adapters. Special thanks to SysKonnect for loaning me two adapters for testing. --- sys/modules/mii/Makefile | 1 + sys/modules/sk/Makefile | 1 + 2 files changed, 2 insertions(+) (limited to 'sys/modules') diff --git a/sys/modules/mii/Makefile b/sys/modules/mii/Makefile index b35455f7..73fcdac 100644 --- a/sys/modules/mii/Makefile +++ b/sys/modules/mii/Makefile @@ -5,5 +5,6 @@ KMOD = miibus SRCS = mii.c mii_physubr.c ukphy.c ukphy_subr.c bus_if.h pci_if.h SRCS += miibus_if.h device_if.h miibus_if.c exphy.c nsphy.c SRCS += mlphy.c tlphy.c rlphy.c amphy.c dcphy.c pnphy.c +SRCS += brgphy.c xmphy.c .include diff --git a/sys/modules/sk/Makefile b/sys/modules/sk/Makefile index c12e236..350521c 100644 --- a/sys/modules/sk/Makefile +++ b/sys/modules/sk/Makefile @@ -3,5 +3,6 @@ .PATH: ${.CURDIR}/../../pci KMOD = if_sk SRCS = if_sk.c opt_bdg.h device_if.h bus_if.h pci_if.h +SRCS += miibus_if.h .include -- cgit v1.1