Subject: re: kern/13797: hme driver does not compile on i386
To: ITOH Yasufumi <itohy@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 12/23/2002 19:38:49
.mrg.

   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.

as you know they will be on the same device, i think this
is a fine way of doing it.


.mrg.