Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Sep 2013 13:54:24 -0500
From:      Nathan Whitehorn <nwhitehorn@freebsd.org>
To:        FreeBSD PowerPC ML <freebsd-ppc@freebsd.org>, freebsd-arm@freebsd.org
Subject:   Patch for Cross-Reference Phandles
Message-ID:  <522CC7E0.9060508@freebsd.org>

next in thread | raw e-mail | index | archive | help
Open Firmware has three namespaces for handles:
1. Instance handles, for open devices
2. Package handles for the client interface
3. Package handles for device tree cross references

On Powermac hardware, we assume that (2) and (3) are identical and call 
both phandles. On embedded FDT systems, you can't open devices and so we 
abuse ihandle_t for (3). IBM pSeries hardware, however, has all three 
things. With that in mind, I'd like to start separating them. The patch 
at http://people.freebsd.org/~nwhitehorn/xref_phandle.diff adds a new 
function (OF_child_xref_phandle) that takes a phandle of type (3) and 
turns into one of type (2) by searching for entries named "phandle", 
"ibm,phandle", or "linux,phandle" in the tree. This should work for FDT 
as well, but is not connected in the patch to anything actually FDT related.

Comments would be appreciated. I'd like to get to get this as in as soon 
as possible (given the HEAD freeze) otherwise.
-Nathan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?522CC7E0.9060508>