Poul-Henning Kamp
41ee9f1c69
Add some missing <sys/module.h> includes which are masked by the
...
one on death-row in <sys/kernel.h>
2004-05-30 17:57:46 +00:00
David E. O'Brien
aad970f1fe
Use __FBSDID().
...
Also some minor style cleanups.
2003-08-24 17:55:58 +00:00
Peter Wemm
bbf9145de3
Remove unused variable and code.
2003-02-19 00:32:01 +00:00
David E. O'Brien
2d3ce7133a
Remove miidevs.h and generate it from miidevs at compile time.
...
The devlist2h.awk tool to do this has been repocopied to sys/tools/.
2003-01-19 02:59:34 +00:00
Semen Ustimenko
07971c4102
Remove unnecessary <sys/malloc.h> include.
...
Submitted by: marius@alchemy.franken.de
MFC after: 1 week
2002-10-29 00:20:47 +00:00
Poul-Henning Kamp
279fe8d156
Make one generic mii_phy_detach() to replace 19 slightly different ones.
...
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.
2002-04-29 13:07:38 +00:00
Poul-Henning Kamp
78c8c3db4b
Move a lot closer to NetBSDs MII support for GigE.
...
Move fxp and nge drivers over to use the new stuff.
2002-04-29 11:57:30 +00:00
Poul-Henning Kamp
07dd938303
Don't pass three args when one will do just fine, and even prevent
...
mistakes like the one brgphy.c (now corrected).
2002-04-28 19:25:07 +00:00
Poul-Henning Kamp
83549c664b
Improve an API by about 4 lines per driver.
2002-04-28 19:01:32 +00:00
Jonathan Lemon
d9730b8b53
Cleanup pass for mii drivers.
...
. 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.
2001-09-29 19:18:52 +00:00
Jonathan Lemon
dafdd7777b
Correctly recognize the i82562{EM} PHYs.
...
Obtained from: OpenBSD
2001-05-11 20:34:38 +00:00
Jonathan Lemon
e3768ebb1b
Back out previous commit until I figure out a way to do it properly.
...
We really want to be able to say "auto NWAY", "limited NWAY", and
"no NWAY". Unfortunately, this does not appear to be possible with
the current mediaopt structure.
2001-03-28 07:01:45 +00:00
Jonathan Lemon
469961321f
Really fix NWAY negotiation for the 82553 PHY. Locking down the
...
media interface selection should not imply disabling NWAY negotiaton
as well.
Problem pointed out by: peter
2001-03-17 02:50:20 +00:00
Jonathan Lemon
83a2d3997e
Add drivers for Intel 82553 and 82555 PHYs.
2001-03-12 02:41:57 +00:00