Subject: Re: pciide -> atabus change
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-alpha
Date: 10/14/2003 23:35:44
On Mon, Oct 13, 2003 at 06:17:34PM -0400, Nathan J. Williams wrote:
> Manuel Bouyer <bouyer@antioche.lip6.fr> writes:
> 
> > I suspect the attached diff is needed for alpha booting from pciide devices
> > to find the root device.
> > Can someone check and confirm ?
> 
> Your patch was half of what was necessary. The parent name did change
> from pciide to atabus, but the scsipidev became associated with the

Ha yes, sorry

> higher-up IDE device (aceride0, in my case), so the next test
> failed. I wasn't sure if there will always be the same number of
> layers between the wd device and the ide controller, so I made a

Should be. We always have *ide->atabus->wd (and
*ide->atabus->atapibus-><atapi device> for ATAPI, but it looks like we're
only looking at wd here).

> loop that searches up the device tree until it finds the scsipidev
> device or hits root. If the device distance is fixed, than the "parent
> != scsipidev" test can be changed to "parent->dv_parent != scsipidev"
> instead of having a loop.

You can probably do this.

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