Subject: Re: looking for devices on PCI bus
To: Jason R Thorpe <firstname.lastname@example.org>
From: Manuel Bouyer <email@example.com>
Date: 05/03/2001 23:33:30
On Thu, May 03, 2001 at 12:30:49PM -0700, Jason R Thorpe wrote:
> I have been largely ignoring this thread, because it seems like the
> signal/noise ratio dropped pretty quickly, but... If this is for the
> VIA chipset problem, this really is pretty easy...
> We should promote the "bus" number into the pci_attach_args(), and then
> you can:
> pcibtab = pci_make_tag(pa->pa_pc, pa->pa_bus, pa->pa_device,
> 0 /* function of the ISA bridge */);
> ....and then read config space to your heart's content.
yes this would work. Still a hack, but this one is acceptable.
We'll see what to do if one day the pciide is on another PCI bus :)
As some peoples don't like my idea of pci_find_device()
maybe I'll go this route for now
Manuel Bouyer <firstname.lastname@example.org>