Pyun YongHyeon
5358725ab4
Replace hard-coded magic constants to system defined constants
...
(BUS_PROBE_DEFAULT, BUS_PROBE_GENERIC etc).
There is no functional changes.
Reviewed by: oleg, scottl
2006-07-03 02:53:40 +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
Warner Losh
098ca2bda9
Start each of the license/copyright comments with /*-, minor shuffle of lines
2005-01-06 01:43:34 +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
fd94424c78
Clean up mii/phy drivers: Remove the MIIF_DOINGAUTO which doesn't really
...
do anything at the end of the day except bloat the drivers which has
copy&pasted it.
2002-05-04 11:00:30 +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
Semen Ustimenko
9526a692c6
Add QS6612, AC101 and LXT970 personal drivers and register definitions.
...
Obtained from: NetBSD/OpenBSD
2001-02-07 19:57:40 +00:00