NetBSD/sys/arch/macppc/dev
dyoung b480b62270 Make many ethernet drivers share the common code for MII media
handling, ether_mediastatus() and ether_mediachange().  Check for
a non-ENXIO error return from mii_mediachg().  (ENXIO indicates
that a PHY is suspended.)

This patch shrinks the source code size by 979 lines.  There was
a 5100-byte savings on the NetBSD/i386 kernel configuration, ALL.

I have made a few miscellaneous changes, too:

gem(4): use LIST_EMPTY(), LIST_FOREACH().
mtd(4): handle media ioctls, for a change!
axe(4): do not track link status in sc->axe_link any longer
nfe(4), aue(4), axe(4), udav(4), url(4): do not reset all PHYs
        on a change of media

Except for the change to mtd(4), no functional changes are intended.

XXX This patch affects more architectures than I can feasibly
XXX compile and run.  I have compiled macppc, sparc64, i386.  I
XXX have run the patches on i386 boxen with bnx(4) and sip(4).
XXX Compiling and running on evbmips (MERAKI, ADM5120) is in
XXX progress.
2008-01-19 22:10:14 +00:00
..
abtn.c - use (uint8_t *) for buffer args on *_adbcomplete() functions 2007-03-05 10:47:05 +00:00
adb_direct.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
adb.c Convert macppc to shared ofw_autoconf.c. Compile tested only. 2007-11-07 19:47:00 +00:00
adbvar.h Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
adm1030_ki2c.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
adt7467_ki2c.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
aed.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
aedvar.h
akbd.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
akbdmap.h
akbdvar.h - use (uint8_t *) for buffer args on *_adbcomplete() functions 2007-03-05 10:47:05 +00:00
am79c950.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
am79c950reg.h
ams.c - use (uint8_t *) for buffer args on *_adbcomplete() functions 2007-03-05 10:47:05 +00:00
amsvar.h - use (uint8_t *) for buffer args on *_adbcomplete() functions 2007-03-05 10:47:05 +00:00
apm.c Wrong copyright template used on import. Referenced Regents, but 2007-12-11 23:23:02 +00:00
awacs.c add a mixer control for the loopthrough channel that some awacs have - it 2007-11-04 18:00:55 +00:00
battery.c fix sensor attachment 2007-12-12 18:19:20 +00:00
batteryvar.h not quite complete yet driver for batteries found in ohare-based PowerBooks 2007-02-15 01:48:40 +00:00
com_mainbus.c Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
cuda.c lockmgr -> mutex 2007-12-06 17:00:31 +00:00
cudavar.h new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
dbdma.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
dbdma.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
deq.c prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
deqvar.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
esp.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
espvar.h Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
gpio.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
if_bm.c Make many ethernet drivers share the common code for MII media 2008-01-19 22:10:14 +00:00
if_bmreg.h
if_gm.c Make many ethernet drivers share the common code for MII media 2008-01-19 22:10:14 +00:00
if_gmreg.h
if_mc.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
if_mcvar.h Use (uint8_t *) for RX buffer. 2007-03-05 10:50:01 +00:00
if_wi_obio.c make this compile again 2007-12-11 21:00:22 +00:00
kauai.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
ki2c.c lockmgr -> mutex 2007-12-06 17:00:31 +00:00
ki2cvar.h finish mutexification, now ki2c compiles again 2007-12-07 16:01:19 +00:00
mediabay.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
mesh.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
meshreg.h
nvram.c Remove duplicate #includes, patch contributed in private mail 2007-01-24 13:08:11 +00:00
obio.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
ofb.c Apply a set of patches from Frank Wille to make the genfb attachment work 2007-11-26 19:58:29 +00:00
ofcons.c - Factor out too many copies of the same bit of tty code. 2007-11-19 18:51:36 +00:00
pbms.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
pm_direct.c Convert macppc to shared ofw_autoconf.c. Compile tested only. 2007-11-07 19:47:00 +00:00
pm_direct.h merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
pmu.c lockmgr -> mutex 2007-12-06 17:00:31 +00:00
pmuvar.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
smartbat.c skeleton smart battery driver. Doesn't do much yet. 2007-03-25 23:22:46 +00:00
snapper.c Convert macppc to shared ofw_autoconf.c. Compile tested only. 2007-11-07 19:47:00 +00:00
uni-n.c merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
viareg.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
wdc_obio.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
zs_kgdb.c Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
zs.c Use the softint API. 2007-11-19 18:41:29 +00:00