Subject: CVS commit: src/sys/dev
To: None <source-changes@NetBSD.org>
From: Jonathan Stone <jonathan@netbsd.org>
List: source-changes
Date: 12/23/2004 06:26:30
Module Name:	src
Committed By:	jonathan
Date:		Thu Dec 23 06:26:30 UTC 2004

Added Files:
	src/sys/dev/cardbus: if_re_cardbus.c
	src/sys/dev/ic: rtl8169.c rtl8169var.h
	src/sys/dev/mii: rgephy.c rgephyreg.h
	src/sys/dev/pci: if_re_pci.c

Log Message:
Snapshot of incomplete-but-working split of re(4) driver into a
bus-independent backend, with PCI and CardBus attachment code.
The committed code has two serious bugs:

1. The driver makes no attempt to recover resources when a (Cardbus)
instance is removed; bus resources are leaked.

2. In testing with a NetGear GA-511, the Cardbus card never responded
   to a reset/wakeup if the card is powered down after attachment.
   So for now, leave cardbus instances powered up at attachment
   (insertion, or at boot if a card is already present).

That aside, it acutally works on my GA-511. Committed as-is despite
the bugs, after repeated requests to make the code available for
further testing.  Also requires sys/dev/mii/miidevs rev 1.54 -> 1.55,
and consequent regen of miidevs{,_data}.h.


To generate a diff of this commit:
cvs rdiff -r0 -r1.1 src/sys/dev/cardbus/if_re_cardbus.c
cvs rdiff -r0 -r1.1 src/sys/dev/ic/rtl8169.c src/sys/dev/ic/rtl8169var.h
cvs rdiff -r0 -r1.1 src/sys/dev/mii/rgephy.c src/sys/dev/mii/rgephyreg.h
cvs rdiff -r0 -r1.1 src/sys/dev/pci/if_re_pci.c

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