diff options
author | ian <ian@FreeBSD.org> | 2014-10-26 01:30:46 +0000 |
---|---|---|
committer | ian <ian@FreeBSD.org> | 2014-10-26 01:30:46 +0000 |
commit | 1c8cde378e7386ca86f33d4ce67b360782b6abec (patch) | |
tree | f847b5f519d4b7fc00e295ee9cb3686f2cec6de9 /sys/powerpc | |
parent | 520f9702ad1e3b22f76421e717bd01dd5c266bde (diff) | |
download | FreeBSD-src-1c8cde378e7386ca86f33d4ce67b360782b6abec.zip FreeBSD-src-1c8cde378e7386ca86f33d4ce67b360782b6abec.tar.gz |
MFC r270945:
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/ofw/ofw_pcibus.c | 4 | ||||
-rw-r--r-- | sys/powerpc/powermac/macio.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sys/powerpc/ofw/ofw_pcibus.c b/sys/powerpc/ofw/ofw_pcibus.c index ee14ccf..aa943ac 100644 --- a/sys/powerpc/ofw/ofw_pcibus.c +++ b/sys/powerpc/ofw/ofw_pcibus.c @@ -212,7 +212,7 @@ ofw_pcibus_enum_devtree(device_t dev, u_int domain, u_int busno) OF_getprop(child, "interrupt-parent", &iparent, sizeof(iparent)); if (iparent != 0) { - OF_getprop(OF_xref_phandle(iparent), + OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, sizeof(icells)); intr[0] = ofw_bus_map_intr(dev, iparent, @@ -329,7 +329,7 @@ ofw_pcibus_assign_interrupt(device_t dev, device_t child) iparent = -1; icells = 1; if (iparent != -1) - OF_getprop(OF_xref_phandle(iparent), "#interrupt-cells", + OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, sizeof(icells)); /* diff --git a/sys/powerpc/powermac/macio.c b/sys/powerpc/powermac/macio.c index 6a0b913..b495cb3 100644 --- a/sys/powerpc/powermac/macio.c +++ b/sys/powerpc/powermac/macio.c @@ -217,7 +217,7 @@ macio_add_intr(phandle_t devnode, struct macio_devinfo *dinfo) <= 0) panic("Interrupt but no interrupt parent!\n"); - if (OF_getprop(OF_xref_phandle(iparent), "#interrupt-cells", &icells, + if (OF_getprop(OF_node_from_xref(iparent), "#interrupt-cells", &icells, sizeof(icells)) <= 0) icells = 1; |