Subject: Re: kern/13797: hme driver does not compile on i386
To: None <gnats-bugs@gnats.netbsd.org, tech-kern@netbsd.org>
From: ITOH Yasufumi <itohy@netbsd.org>
List: tech-kern
Date: 12/23/2002 16:00:48
In article <757.1040604334@splode.eterna.com.au>
mrg@eterna.com.au writes:

> thanks for writing the code to do this.  do you think you could
> rework it so that in the hme attach routine pci_find_device() is
> called ala pciide trying to find the isa controller for broken
> VIA chipsets?

Hmm.

sys/dev/pci/pciide.c::apollo_chip_map():
	/* get a PCI tag for the ISA bridge (function 0 of the same device) */
	pcib_tag = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device, 0);
	/* and read ID and rev of the ISA bridge */
	pcib_id = pci_conf_read(sc->sc_pc, pcib_tag, PCI_ID_REG);
	pcib_class = pci_conf_read(sc->sc_pc, pcib_tag, PCI_CLASS_REG);
	...

This seems (a little?) cleaner.  I'm going to try this way.

Thanks,
-- 
ITOH Yasufumi