NetBSD/sys/dev/pcmcia
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
..
aic_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
bluecardreg.h Add support for AnyCom BlueCard. 2007-08-20 00:29:43 +00:00
bt3c.c Clean up the way that bluetooth drivers attach to the bluetooth stack, 2007-11-28 20:16:11 +00:00
btbc.c Clean up the way that bluetooth drivers attach to the bluetooth stack, 2007-11-28 20:16:11 +00:00
com_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
devlist2h.awk
esl_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
esl.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
eslvar.h
esp_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
fdc_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
files.pcmcia Add support for AnyCom BlueCard. 2007-08-20 00:29:43 +00:00
if_an_pcmcia.c Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
if_awi_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_cnw.c Change a bazillion occurrences of code resembling this, 2007-09-01 07:32:22 +00:00
if_cnwioctl.h
if_cnwreg.h
if_cs_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_ep_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_mbe_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_ne_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_ray.c Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
if_rayreg.h Convert many of the uses of __attribute__ to equivalent 2007-12-25 18:33:32 +00:00
if_sm_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_tr_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
if_wi_pcmcia.c Merge jmcneill-pm branch. 2007-12-09 20:27:42 +00:00
if_xi.c Make many ethernet drivers share the common code for MII media 2008-01-19 22:10:14 +00:00
if_xireg.h
if_xivar.h
isic_pcmcia_avm_fritz.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
isic_pcmcia_elsa_isdnmc.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
isic_pcmcia_elsa_mcall.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
isic_pcmcia_sbspeedstar2.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
isic_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
isic_pcmcia.h
Makefile
Makefile.pcmciadevs
mhzc.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
nca_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
opl_esl.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
pcmcia_cis_quirks.c
pcmcia_cis.c
pcmcia.c Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment 2007-12-16 21:28:30 +00:00
pcmciachip.h machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
pcmciadevs Add TDK Bluetooth PC Card. 2007-09-22 19:59:55 +00:00
pcmciadevs_data.h Regen. 2007-09-22 20:01:21 +00:00
pcmciadevs.h Regen. 2007-09-22 20:01:21 +00:00
pcmciareg.h
pcmciavar.h
pcmcom.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
slhci_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
spc_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
wdc_pcmcia.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
xirc.c machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00