summaryrefslogtreecommitdiffstats
path: root/sys/dev/mii/nsgphy.c
Commit message (Collapse)AuthorAgeFilesLines
* Add a helper function mii_phy_dev_probe(), which wraps around themarius2006-12-021-13/+2
| | | | | | | | | | | mii_phy_match() API and takes care of the PHY device probe based on the struct mii_phydesc array and the match return value provided. Convert PHY drivers to take advantage of mii_phy_dev_probe(), converting drivers to provide a mii_phydesc table in the first place where necessary. Reviewed by: yongari MFC after: 2 weeks
* - Rely on mii_phy_add_media() setting mii_anegticks as appropriate.marius2006-11-281-4/+3
| | | | | | - Fix some whitespace nits. MFC after: 2 weeks
* Replace hard-coded magic constants to system defined constantsyongari2006-07-031-1/+1
| | | | | | | (BUS_PROBE_DEFAULT, BUS_PROBE_GENERIC etc). There is no functional changes. Reviewed by: oleg, scottl
* Since DELAY() was moved, most <machine/clock.h> #includes have beenphk2006-05-161-1/+0
| | | | unnecessary.
* Add macros which follow the miidevs design pattern to make it easierimp2005-09-301-8/+3
| | | | to construct tables for mii_phy_match.
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Add some missing <sys/module.h> includes which are masked by thephk2004-05-301-0/+1
| | | | one on death-row in <sys/kernel.h>
* Remove double __FBSDID and move the remaining one into a common place aftermarius2004-05-291-3/+0
| | | | | the license(s) and before the driver comment (the latter only in drivers not having __FBSDID at that location).
* Use __FBSDID().obrien2003-08-241-0/+3
| | | | Also some minor style cleanups.
* Remove unnecessary breaks.phk2003-05-311-2/+0
| | | | | | | Remove unused variables. Add XXX comment where a break may be missing. [lxtphy.c] Found by: FlexeLint
* Use __FBSDID rather than rcsid[].obrien2003-04-031-7/+3
|
* Remove miidevs.h and generate it from miidevs at compile time.obrien2003-01-191-1/+1
| | | | The devlist2h.awk tool to do this has been repocopied to sys/tools/.
* Remove unnecessary <sys/malloc.h> include.semenu2002-10-291-1/+0
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 1 week
* Put function return types on a line by themselves.alfred2002-10-141-2/+2
| | | | | Cleanup my earlier de-__P sweep and remove whitespace between function names and paramters.
* Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't reallyphk2002-05-041-1/+0
| | | | | do anything at the end of the day except bloat the drivers which has copy&pasted it.
* Introduce NetBSD's mii_phy_match() API and use it in the nsgphy tophk2002-04-291-10/+22
| | | | get a description printed.
* Make one generic mii_phy_detach() to replace 19 slightly different ones.phk2002-04-291-18/+1
| | | | | | | Rename mii_phy_auto_stop() mii_phy_down(). Introduce mii_down(), use it from nge. Do not indirect it to 19 identical case's in 19 switchstatements like NetBSD did.
* Move a lot closer to NetBSDs MII support for GigE.phk2002-04-291-215/+40
| | | | Move fxp and nge drivers over to use the new stuff.
* Moving closer to being able to use NetBSD's generic mii_set_media()phk2002-04-291-2/+3
| | | | function.
* Follow NetBSD and s/IFM_1000_TX/IFM_1000_T/phk2002-04-281-6/+6
|
* Use generic MII #defines instead of private ones when the registersphk2002-04-281-63/+61
| | | | | | are IEEE defined. Object file comes out the same.
* Remove __P.alfred2002-03-201-7/+7
|
* Cleanup pass for mii drivers.jlemon2001-09-291-19/+15
| | | | | | | . Make internal service routines static. . Use a consistent ordering of checks in MII_TICK. Do the work in the mii_phy_tick() subroutine if appropriate. . Call mii_phy_update() to trigger the callbacks.
* Add support for gigabit ethernet cards based on the NatSemi DP83820wpaul2001-05-111-0/+475
and DP83821 gigabit ethernet MAC chips and the NatSemi DP83861 10/100/1000 copper PHY. There are a whole bunch of very low cost cards available with this chipset selling for $150USD or less. This includes the SMC9462TX, D-Link DGE-500T, Asante GigaNIX 1000TA and 1000TPC, and a couple cards from Addtron. This chip supports TCP/IP checksum offload, VLAN tagging/insertion. 2048-bit multicast filter, jumbograms and has 8K TX and 32K RX FIFOs. I have not done serious performance testing with this driver. I know it works, and I want it under CVS control so I can keep tabs on it. Note that there's no serious mutex stuff in here yet either: I need to talk more with jhb to figure out the right way to do this. That said, I don't think there will be any problems. This driver should also work on the alpha. It's not turned on in GENERIC.
OpenPOWER on IntegriCloud