Subject: Re: How to get the firmware node into the device properties early?
To: Eduardo Horvath <eeh@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 09/14/2006 21:14:35
On Thu, Sep 14, 2006 at 03:59:16PM +0000, Eduardo Horvath wrote:
> If you do ihandle>phandle you don't need to do any string parsing.

Yes, but that assumes I manage to get at the phandle of the device. Right now
all I know hot to get is the phandle of the ide or scsi controller - and for
disks/cds the channel/target/lun info. I considered cheating and only do a
few tries on possible path representation for that.

I agree that if we would know the phandle for each struct device, your method
would be the fastest and simplest. So - back to the original question - how
do we identify the firmware node for every new device attaching?

Martin