Subject: CVS commit: [netbsd-4] src/sys/dev/cardbus
To: None <source-changes@NetBSD.org>
From: Julian Coleman <jdc@netbsd.org>
List: source-changes
Date: 05/16/2007 20:43:35
Module Name:	src
Committed By:	jdc
Date:		Wed May 16 20:43:35 UTC 2007

Modified Files:
	src/sys/dev/cardbus [netbsd-4]: if_re_cardbus.c

Log Message:
Pull up revision 1.13 (requested by tsutsui in ticket #640).

Cleanup handling of quikrs on each RealTek chip:
- replace rtk_type member in rtk_softc which has chip types
  with new rtk_quirk that represents quirks on each chip:
  - RTKQ_8129           doesn't have internal MII (used in rtk(4))
  - RTKQ_8139CPLUS      has different register layout (for re(4))
  - RTKQ_8169NONS       (original 8169) requires some settings on init
  - RTKQ_PCIE           requires different settings in setmulti
  so that we don't have to check each hwrev values or types everywhere
  and newer variants will also work without changes if they don't
  have other quirks
  (sc_rev is unchenged for now for reference to the Realtek's driver)
- don't check hwrev register in re_pci_match() but check
  only PCI_VENDER(), PCI_PRODUCT() and PCI_REVISION()
  so that we no longer have to map pci space there
- add a new HWREV value for another 8168 variant
- try to map PCI mem space more properly
- remove (probably unneeded) ifp->if_baudrate initialization

Tested on a newer 8168 variant by Dennis den Brok on tech-kern,
and also tested on 8139 and 8169C on macppc, and 8139C+ on landisk
by me.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.12.2.1 src/sys/dev/cardbus/if_re_cardbus.c

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