Subject: Re: How to get the firmware node into the device properties early?
To: Jachym Holecek <freza@dspfpga.com>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 09/13/2006 14:01:51
--ofZMSlrAVk9bLeVm
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 13, 2006 at 01:21:01PM +0200, Jachym Holecek wrote:
> # Martin Husemann 2006-09-12:
> > I am looking for an easy way to retrieve the OpenFirmware node (phandle)
> > of a struct device * I get passed in device_register(). Is there any ma=
gic
> > way to store them in the device properties early?
>=20
> Not that I'm aware of (besides something like you posted).
>=20
> Maybe early MD code should be allowed to precreate device_t nodes
> and let autoconfiguration proccess use them instead of creating
> fresh ones. But this is kind of forward-thought, there's quite a
> couple of things in our autoconf machinery that need to change
> "device_t =3D=3D ${foo}softc" being the most evil.

Ahem.  Not evil.  Intrusive, perhaps, but definitely not evil.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"You could have made it, spitting out benchmarks
Owe it to yourself not to fail"
Amplifico, Spitting Out Benchmarks, Hometakes Vol. 2, 2005.

--ofZMSlrAVk9bLeVm
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (NetBSD)

iQEVAwUBRQfzL9goQloHrPnoAQJqCQf+MWq4aTi6Jl8nkXoyDzvRZgC7VeZ7sPf5
ba+UwVBzhOw4n2oh0TMebcoamRHNrM1XJ63hUHYtWxG6N8Jz5oCICR6ECsxUoriT
jF39pkYzHvVaQ/vbdt93WYFuryCqqUH9PUU0tTVqeP2Esy5NG0NsC3tATyOts1x7
p8+bPWI0L/+j1dV96sXUp7io003TcLF6lm1dDS/BjRGSVqA83FqLkn6nKdazNQlk
+Yf2hNpzuObW7NshIvp9koXTGDTVtB/v9+nW9yL4fmKqZOhnVC0yAKdPUgCPjS+C
22NcGepUn/3obgRPGJGve4xu+stuaBIWmUmOBDMg8D/ahufv0bf5EA==
=ozMZ
-----END PGP SIGNATURE-----

--ofZMSlrAVk9bLeVm--