summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii
Commit message (Collapse)AuthorAgeFilesLines
* Allow the AMD PHY driver to support the DM9101 PHY. The DM9101 and thewpaul1999-09-191-3/+10
| | | | | AMD AM79c873 have identical registers. I'm not sure why; one is probably a clone of the other.
* Add a driver for the AMD AM79c873 10/100 PHY. By some strange coincidence,wpaul1999-09-062-0/+428
| | | | | | | | this PHY and the Davicom DM9101 have exactly the same register definitions. One of them is probably a clone of the other. I'm not sure which. This is needed for the Davicom DM9102 10/100 PCI ethernet driver which will be committed shortly.
* $Id$ -> $FreeBSD$peter1999-09-052-2/+2
|
* Re-arrange things in the attach routines of the 3Com and RealTek PHYwpaul1999-09-012-13/+13
| | | | | | | drivers so that we don't clobber things or leave them uninitialized if we abort due a failure. Submitted by: Luoqi Chen
* Add a driver for the internal PHY in the RealTek 8139.wpaul1999-08-311-0/+284
|
* Regenerate miidevs.h.wpaul1999-08-291-2/+7
|
* The ASIC on the 3c905C appears to be manufactured by Broadcom (previouswpaul1999-08-293-7/+19
| | | | | | | | | ones were made by Lucent). The Broadcom chip also appears to use an internal PHY made by Broadcom which uses the Broadcom OUI. This is different from previous ASICs which always returned 0 in the PHY ID registers. To account for this, I added the necessary ID values for the Broadcom PHY so that it can be detected and attached using the 3Com PHY driver instead of defaulting to the generic one.
* $Id$ -> $FreeBSD$ (some mangled and/or hidden ones)peter1999-08-281-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-283-3/+3
|
* $Id$ -> $FreeBSD$peter1999-08-2814-14/+14
|
* Add miibus drivers for the ThunderLAN internal PHY and the Micro Linearwpaul1999-08-274-1/+973
| | | | | | | | | ML6692 PHY. The Micro Linear driver is my own; the ThunderLAN driver is a port of the NetBSD driver with various hacks. The ML driver is necessary to support the Olicom OC-2326 ThunderLAN-based NIC. Also regenerated miidevs.h to pick up the proper 'obtained from' revision string.
* Handle buses with multiple PHYs correctly.wpaul1999-08-261-5/+3
|
* Crap, I knew I was going to forget something: add missing miibus methodwpaul1999-08-221-0/+36
| | | | | | description file which slipped through the cracks. Pointed out by: Doug <Doug@gorean.org>
* This commit adds support for the NetBSD MII abstraction layer andwpaul1999-08-2113-0/+2597
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.
OpenPOWER on IntegriCloud