Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/sys

Module Name:    src
Committed By:   dyoung
Date:           Sat Jan 19 22:10:21 UTC 2008

Modified Files:
        src/sys/arch/arm/ep93xx: epe.c
        src/sys/arch/arm/xscale: ixp425_if_npe.c
        src/sys/arch/evbppc/virtex/dev: if_temac.c
        src/sys/arch/macppc/dev: if_bm.c if_gm.c
        src/sys/arch/mips/alchemy/dev: if_aumac.c
        src/sys/arch/mips/atheros/dev: if_ae.c
        src/sys/arch/mips/sibyte/dev: sbmac.c
        src/sys/arch/playstation2/dev: emac3.c emac3var.h if_smap.c
        src/sys/arch/powerpc/ibm4xx/dev: if_emac.c
        src/sys/arch/sgimips/mace: if_mec.c
        src/sys/dev/ic: aic6915.c ax88190.c dl10019.c gem.c hme.c i82557.c
            mtd803.c rtl8169.c rtl81x9.c smc83c170.c smc91cxx.c tulip.c
        src/sys/dev/marvell: if_gfe.c
        src/sys/dev/pci: if_bge.c if_msk.c if_nfe.c if_pcn.c if_sk.c if_ste.c
            if_stge.c if_tl.c if_vge.c if_vr.c if_wm.c
        src/sys/dev/pcmcia: if_xi.c
        src/sys/dev/sbus: be.c
        src/sys/dev/usb: if_aue.c if_axe.c if_axereg.h if_udav.c if_url.c

Log Message:
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.

To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 src/sys/arch/arm/ep93xx/epe.c
cvs rdiff -r1.6 -r1.7 src/sys/arch/arm/xscale/ixp425_if_npe.c
cvs rdiff -r1.2 -r1.3 src/sys/arch/evbppc/virtex/dev/if_temac.c
cvs rdiff -r1.35 -r1.36 src/sys/arch/macppc/dev/if_bm.c
cvs rdiff -r1.32 -r1.33 src/sys/arch/macppc/dev/if_gm.c
cvs rdiff -r1.23 -r1.24 src/sys/arch/mips/alchemy/dev/if_aumac.c
cvs rdiff -r1.9 -r1.10 src/sys/arch/mips/atheros/dev/if_ae.c
cvs rdiff -r1.26 -r1.27 src/sys/arch/mips/sibyte/dev/sbmac.c
cvs rdiff -r1.5 -r1.6 src/sys/arch/playstation2/dev/emac3.c
cvs rdiff -r1.1 -r1.2 src/sys/arch/playstation2/dev/emac3var.h
cvs rdiff -r1.10 -r1.11 src/sys/arch/playstation2/dev/if_smap.c
cvs rdiff -r1.30 -r1.31 src/sys/arch/powerpc/ibm4xx/dev/if_emac.c
cvs rdiff -r1.14 -r1.15 src/sys/arch/sgimips/mace/if_mec.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/ic/aic6915.c
cvs rdiff -r1.8 -r1.9 src/sys/dev/ic/ax88190.c src/sys/dev/ic/dl10019.c
cvs rdiff -r1.68 -r1.69 src/sys/dev/ic/gem.c
cvs rdiff -r1.60 -r1.61 src/sys/dev/ic/hme.c
cvs rdiff -r1.109 -r1.110 src/sys/dev/ic/i82557.c
cvs rdiff -r1.16 -r1.17 src/sys/dev/ic/mtd803.c
cvs rdiff -r1.92 -r1.93 src/sys/dev/ic/rtl8169.c
cvs rdiff -r1.80 -r1.81 src/sys/dev/ic/rtl81x9.c
cvs rdiff -r1.70 -r1.71 src/sys/dev/ic/smc83c170.c
cvs rdiff -r1.63 -r1.64 src/sys/dev/ic/smc91cxx.c
cvs rdiff -r1.156 -r1.157 src/sys/dev/ic/tulip.c
cvs rdiff -r1.26 -r1.27 src/sys/dev/marvell/if_gfe.c
cvs rdiff -r1.141 -r1.142 src/sys/dev/pci/if_bge.c
cvs rdiff -r1.14 -r1.15 src/sys/dev/pci/if_msk.c
cvs rdiff -r1.25 -r1.26 src/sys/dev/pci/if_nfe.c
cvs rdiff -r1.41 -r1.42 src/sys/dev/pci/if_pcn.c
cvs rdiff -r1.45 -r1.46 src/sys/dev/pci/if_sk.c
cvs rdiff -r1.31 -r1.32 src/sys/dev/pci/if_ste.c
cvs rdiff -r1.39 -r1.40 src/sys/dev/pci/if_stge.c
cvs rdiff -r1.84 -r1.85 src/sys/dev/pci/if_tl.c
cvs rdiff -r1.38 -r1.39 src/sys/dev/pci/if_vge.c
cvs rdiff -r1.88 -r1.89 src/sys/dev/pci/if_vr.c
cvs rdiff -r1.151 -r1.152 src/sys/dev/pci/if_wm.c
cvs rdiff -r1.62 -r1.63 src/sys/dev/pcmcia/if_xi.c
cvs rdiff -r1.55 -r1.56 src/sys/dev/sbus/be.c
cvs rdiff -r1.108 -r1.109 src/sys/dev/usb/if_aue.c
cvs rdiff -r1.21 -r1.22 src/sys/dev/usb/if_axe.c
cvs rdiff -r1.4 -r1.5 src/sys/dev/usb/if_axereg.h
cvs rdiff -r1.20 -r1.21 src/sys/dev/usb/if_udav.c
cvs rdiff -r1.29 -r1.30 src/sys/dev/usb/if_url.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index