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 06:03:58PM +0200, Christoph Egger wrote:
> > Yes, this would work too.
> 
> Manuel: In case you haven't realized it yet, this is what the patch does.
> If you compile pcictl with COMPAT50, pcictl understands both the old
> and new syntax and w/o COMPAT50 it understands only the new syntax.

No, I didn't understand it this way. It's fine then

> 
> So far I understand your point, COMPAT50 should be on by default

yes

> and I can create the new /dev/pci for all busses but have to keep all the old 
> ones for backward compatibility. Is this correct?

Yes. I'm not sure you need a new /dev/pci. /dev/pci* can already handle
requests for all PCI busses as the PCI bus number is passed in the
ioctl command (your way of retrieving the softc to use the correct
pci_chipset_tag_t is better, BTW). I think all you need is a way to do a
PCI_IOC_BUSINFO for an arbitrary bus number and not the one designed by
the device's minor number. A new ioctl would fix this.

-- 
Manuel Bouyer, LIP6, Universite Paris VI.           
Manuel.Bouyer%lip6.fr@localhost
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index