freebsd-dev/sys/dev/ofw
Ian Lepore 26511eb02e When registering an association between a device and an xref phandle, create
an entry in the xref list if one doesn't already exist for the given handle.

On a system that uses phandle properties, the init-time scan of the tree
which builds the xref list will pre-create entries for every xref handle
that exists in the data.  On systems where the xref and node handles are
synonymous there is no phandle property in referenced nodes, and the xref
list will initialize to an empty state.  In the latter case, we still need
to be able to associate a device_t with an xref handle, so we create list
entries on the fly as needed.  Since the node and xref handles are
synonymous, we have all the info needed to create a list entry at device
registration time.

The downside to this change is that it basically allows on the fly creation
of xref handles as synonyms of node handles, and the association of a
device_t with them.  Whether this is a bug or a feature is in the eye of
the beholder, I guess.
2014-09-06 18:43:17 +00:00
..
ofw_bus_if.m Move gpiobus routines to dev/gpio. Avoid polluting ofw_bus with bus 2014-05-04 04:01:26 +00:00
ofw_bus_subr.c Rename OF_xref_phandle() to OF_node_from_xref() and add a new function 2014-09-01 18:51:01 +00:00
ofw_bus_subr.h Add a set of helpers (ofw_bus_get_status() and ofw_bus_status_okay()) to 2014-02-02 16:41:54 +00:00
ofw_bus.h Move gpiobus routines to dev/gpio. Avoid polluting ofw_bus with bus 2014-05-04 04:01:26 +00:00
ofw_console.c Use callout(9) instead of timeout(9). 2014-09-02 18:57:19 +00:00
ofw_disk.c
ofw_fdt.c Rename OF_xref_phandle() to OF_node_from_xref() and add a new function 2014-09-01 18:51:01 +00:00
ofw_if.m
ofw_iicbus.c Allow the use of OFW I2C bus together with iicbb(4) on OFW-based systems. 2014-02-13 18:22:49 +00:00
ofw_pci.h
ofw_standard.c
ofwbus.c Rename OF_xref_phandle() to OF_node_from_xref() and add a new function 2014-09-01 18:51:01 +00:00
ofwvar.h
openfirm.c When registering an association between a device and an xref phandle, create 2014-09-06 18:43:17 +00:00
openfirm.h Revert rr271190, it was based on a misunderstanding. The problem of 2014-09-06 17:50:59 +00:00
openfirmio.c
openfirmio.h
openpromio.c
openpromio.h