tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] pcictl: simplify its usage



On Thu, Jun 04, 2009 at 07:18:50PM +0200, Matthias Drochner wrote:
> 
> mouse%Rodents-Montreal.ORG@localhost said:
> > But you need /dev/pci in order to have something to open when you
> > don't have a bus number available.
> 
> I didn't follow all the thread, just want to make sure that
> everyone is aware of the fact that the N and the M in
> pcictl /dev/pciN <command> -b M
> are not the same: N is a logical index chosen by autoconf
> and M is the physical bus number.
> This might be not a big issue with a simple PC, but on
> a big box with multiple PCI hierarchies the same physical bus
> number can occur multiple times.

Yes, you're right. The API proposed by Christoph doens't work in
that case. I think it needs to use the autoconf index in this case,
not the physical bus number.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index