Subject: Re: pciide/atabus changes
To: matthew green <mrg@eterna.com.au>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-sparc64
Date: 10/13/2003 13:07:06
On Mon, Oct 13, 2003 at 09:02:42PM +1000, matthew green wrote:
>
> On Thu, Oct 09, 2003 at 08:29:09PM +0200, Manuel Bouyer wrote:
> > In fast this does work. The problem is that device_register() calls
> > dev_compatible() (which is OK) and then calls bus_class().
> > If the device name isn't in bus_class_tab[], we loose.
> > I'm not sure what is best here: change bus_class() to match on pa->pa_class
> > too for PCI devices, or just add the names to bus_class_tab[].
>
> OK, following Christos's suggestion, I changed bus_class() to use pmatch(),
> so that we can use *ide in bus_class_tab[]. This seems to work nicely here.
>
> Should I commit this ?
>
>
> has it been tested ? it should be fine :-)
Tested on my U5, which still finds root from cmdide and hme.
Couldn't test other devices (e.g. scsi)
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
NetBSD: 24 ans d'experience feront toujours la difference
--