aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@queued.net>2010-10-10 23:52:57 -0400
committerGrant Likely <grant.likely@secretlab.ca>2010-10-12 23:58:08 -0400
commite2f2a93b6384cfe0face0be595bfbda1475d864b (patch)
treef379fda9976cba42f3fccb0bcbac71312db869d3 /include/linux
parented41850298f7a55519de0b8573e217ed8a45c199 (diff)
of/promtree: add package-to-path support to pdt
package-to-path is a PROM function which tells us the real (full) name of the node. This provides a hook for that in the prom ops struct, and makes use of it in the pdt code when attempting to determine a node's name. If the hook is available, try using it (falling back to looking at the "name" property if it fails). Signed-off-by: Andres Salomon <dilinger@queued.net> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of_pdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/of_pdt.h b/include/linux/of_pdt.h
index 0f7d0c56348a..c65a18a0cfdf 100644
--- a/include/linux/of_pdt.h
+++ b/include/linux/of_pdt.h
@@ -29,6 +29,9 @@ struct of_pdt_ops {
29 /* phandles are 0 if no child or sibling exists */ 29 /* phandles are 0 if no child or sibling exists */
30 phandle (*getchild)(phandle parent); 30 phandle (*getchild)(phandle parent);
31 phandle (*getsibling)(phandle node); 31 phandle (*getsibling)(phandle node);
32
33 /* return 0 on success; fill in 'len' with number of bytes in path */
34 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len);
32}; 35};
33 36
34extern void *prom_early_alloc(unsigned long size); 37extern void *prom_early_alloc(unsigned long size);