Warner Losh
6a3033a8b4
Make dc compile after repo-copy.
2005-10-18 06:09:42 +00:00
Warner Losh
7d830ac9c2
Use ansi function definitions in preference to K&R to reduce diffs
...
with NetBSD (and cause it looks cooler).
2005-09-30 19:39:27 +00:00
Yoshihiro Takahashi
d4fcf3cba5
Remove bus_{mem,p}io.h and related code for a micro-optimization on i386
...
and amd64. The optimization is a trivial on recent machines.
Reviewed by: -arch (imp, marcel, dfr)
2005-05-29 04:42:30 +00:00
Marius Strobl
50aa106108
Remove double __FBSDID and move the remaining one into a common place after
...
the license(s) and before the driver comment (the latter only in drivers not
having __FBSDID at that location).
2004-05-29 18:09:10 +00:00
David E. O'Brien
aad970f1fe
Use __FBSDID().
...
Also some minor style cleanups.
2003-08-24 17:55:58 +00:00
Poul-Henning Kamp
19ca58475e
Remove unnecessary breaks.
...
Remove unused variables.
Add XXX comment where a break may be missing. [lxtphy.c]
Found by: FlexeLint
2003-05-31 19:48:33 +00:00
David E. O'Brien
8368cf8f75
Use __FBSDID rather than rcsid[].
2003-04-03 21:36:33 +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
Alfred Perlstein
9c1c2e9924
Put function return types on a line by themselves.
...
Cleanup my earlier de-__P sweep and remove whitespace between function
names and paramters.
2002-10-14 22:31:52 +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
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
Alfred Perlstein
e51a25f850
Remove __P.
2002-03-20 02:08:01 +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
John Baldwin
f34fa851e0
Catch up to header include changes:
...
- <sys/mutex.h> now requires <sys/systm.h>
- <sys/mutex.h> and <sys/sx.h> now require <sys/lock.h>
2001-03-28 09:17:56 +00:00
John Baldwin
35e0e5b311
Catch up to moving headers:
...
- machine/ipl.h -> sys/ipl.h
- machine/mutex.h -> sys/mutex.h
2000-10-20 07:58:15 +00:00
Poul-Henning Kamp
db7e3af111
Remove unneeded #include <machine/clock.h>
2000-10-15 14:19:01 +00:00
Bill Paul
d308faacc2
Add #include <machine/mutex.h> since these files need it and don't
...
include anything else that includes mutex.h. Needed to resolve struct mtx
from struct dc_softc.
2000-10-13 19:15:50 +00:00
Poul-Henning Kamp
3389ae9350
Remove ~25 unneeded #include <sys/conf.h>
...
Remove ~60 unneeded #include <sys/malloc.h>
2000-04-19 14:58:28 +00:00
Bill Paul
96f2e892a7
Add the if_dc driver and remove all of the al, ax, dm, pn and mx drivers
...
which it replaces. The new driver supports all of the chips supported
by the ones it replaces, as well as many DEC/Intel 21143 10/100 cards.
This also completes my quest to convert things to miibus and add
Alpha support.
1999-12-04 17:41:31 +00:00