freebsd-nq/sys/conf
Bill Paul d00275330d This commit adds support for the NetBSD MII abstraction layer and
MII-compliant PHY drivers. Many 10/100 ethernet NICs available today
either use an MII transceiver or have built-in transceivers that can
be programmed using an MII interface. It makes sense then to separate
this support out into common code instead of duplicating it in all
of the NIC drivers. The mii code also handles all of the media
detection, selection and reporting via the ifmedia interface.

This is basically the same code from NetBSD's /sys/dev/mii, except
it's been adapted to FreeBSD's bus architecture. The advantage to this
is that it automatically allows everything to be turned into a
loadable module. There are some common functions for use in drivers
once an miibus has been attached (mii_mediachg(), mii_pollstat(),
mii_tick()) as well as individual PHY drivers. There is also a
generic driver for all PHYs that aren't handled by a specific driver.
It's possible to do this because all 10/100 PHYs implement the same
general register set in addition to their vendor-specific register
sets, so for the most part you can use one driver for pretty much
any PHY. There are a couple of oddball exceptions though, hence
the need to have specific drivers.

There are two layers: the generic "miibus" layer and the PHY driver
layer. The drivers are child devices of "miibus" and the "miibus" is
a child of a given NIC driver. The "miibus" code and the PHY drivers
can actually be compiled and kldoaded as completely separate modules
or compiled together into one module. For the moment I'm using the
latter approach since the code is relatively small.

Currently there are only three PHY drivers here: the generic driver,
the built-in 3Com XL driver and the NS DP83840 driver. I'll be adding
others later as I convert various NIC drivers to use this code.

I realize that I'm cvs adding this stuff instead of importing it
onto a separate vendor branch, but in my opinion the import approach
doesn't really offer any significant advantage: I'm going to be
maintaining this stuff and writing my own PHY drivers one way or
the other.
1999-08-21 17:40:53 +00:00
..
defines Add some more defines that don't change the genericness of a file. 1995-05-11 20:21:23 +00:00
files This commit adds support for the NetBSD MII abstraction layer and 1999-08-21 17:40:53 +00:00
files.alpha Merge the cons.c and cons.h to the best of my ability. alpha may or 1999-08-09 10:35:05 +00:00
files.i386 Create callable (non-inline) versions of the atomic_OP_TYPE functions 1999-08-18 04:08:31 +00:00
files.pc98 Merge from sys/i386/conf/files.i386 revision 1.259. 1999-08-18 08:20:28 +00:00
kern.mk Fixed comment and whitespace lossage in recent commits. The -W flag 1999-01-29 10:57:18 +00:00
kmod.mk Add variable INSTALLFLAGS_EDIT used to remove arbitrary INSTALLFLAGS. 1999-07-31 20:27:33 +00:00
ldscript.alpha Lots of changes, including: 1998-08-10 07:53:59 +00:00
ldscript.amd64 Remove a rather bogus search path reference.. 1999-06-03 22:07:41 +00:00
ldscript.i386 Remove a rather bogus search path reference.. 1999-06-03 22:07:41 +00:00
ldscript.powerpc Lots of changes, including: 1998-08-10 07:53:59 +00:00
majors Reserve bdev/cdev entries for i2o driver. 1999-08-11 05:28:06 +00:00
Makefile.alpha Delete the 'device-driver' suffix. It's been meaningless for a long time. 1999-07-03 19:19:34 +00:00
Makefile.i386 Delete the 'device-driver' suffix. It's been meaningless for a long time. 1999-07-03 19:19:34 +00:00
Makefile.pc98 Sync with sys/i386/conf/Makefile.i386 revision 1.158. 1999-07-08 11:48:47 +00:00
Makefile.powerpc Delete the 'device-driver' suffix. It's been meaningless for a long time. 1999-07-03 19:19:34 +00:00
newvers.sh The following simplifies newvers.sh somewhat and makes what(1) work with 1999-08-08 07:51:16 +00:00
nfsswapkernel.c Removed vestiges of config-time "argument processing" configuration. 1997-09-07 13:49:56 +00:00
NOTES This commit adds support for the NetBSD MII abstraction layer and 1999-08-21 17:40:53 +00:00
options Fix short timeout problems with the pt(4) driver: 1999-08-20 03:48:11 +00:00
options.alpha The second phase of syscons reorganization. 1999-06-22 14:14:06 +00:00
options.i386 The "LINUX" option isn't actually used or referenced anywhere. The stuff 1999-08-18 11:28:36 +00:00
options.pc98 Sync with sys/i386/conf/options.i386 revision 1.119. 1999-08-08 11:13:47 +00:00
param.c Move the initialisation/tuning of nmbclusters from param.c/machdep.c 1999-07-05 08:52:54 +00:00
systags.sh Fixed regression of $Id$ to "from: $Header$" in previous commit. 1999-07-03 06:48:02 +00:00