diff options
author | David S. Miller <davem@sunset.davemloft.net> | 2006-06-23 01:08:58 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-06-24 02:15:41 -0400 |
commit | 8cd24ed4f8031636fb5dacb04adee9e02556ecd5 (patch) | |
tree | 8a58e54a4181adf91d0ee2c4af6a92be7427f7cb /include | |
parent | 92c4e22593c22eb0943b232c61c98b517081637d (diff) |
[SPARC64]: Expand of_*() interfaces some more.
Import some more stuff from powerpc.
Add of_device_is_compatible(), and of_find_compatible_node().
Export some more of the other routines to modules.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-sparc64/prom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-sparc64/prom.h b/include/asm-sparc64/prom.h index 062ae6e1212..6d1556c0c26 100644 --- a/include/asm-sparc64/prom.h +++ b/include/asm-sparc64/prom.h | |||
@@ -75,6 +75,8 @@ extern struct device_node *of_find_node_by_type(struct device_node *from, | |||
75 | #define for_each_node_by_type(dn, type) \ | 75 | #define for_each_node_by_type(dn, type) \ |
76 | for (dn = of_find_node_by_type(NULL, type); dn; \ | 76 | for (dn = of_find_node_by_type(NULL, type); dn; \ |
77 | dn = of_find_node_by_type(dn, type)) | 77 | dn = of_find_node_by_type(dn, type)) |
78 | extern struct device_node *of_find_compatible_node(struct device_node *from, | ||
79 | const char *type, const char *compat); | ||
78 | extern struct device_node *of_find_node_by_path(const char *path); | 80 | extern struct device_node *of_find_node_by_path(const char *path); |
79 | extern struct device_node *of_find_node_by_phandle(phandle handle); | 81 | extern struct device_node *of_find_node_by_phandle(phandle handle); |
80 | extern struct device_node *of_get_parent(const struct device_node *node); | 82 | extern struct device_node *of_get_parent(const struct device_node *node); |
@@ -83,6 +85,7 @@ extern struct device_node *of_get_next_child(const struct device_node *node, | |||
83 | extern struct property *of_find_property(struct device_node *np, | 85 | extern struct property *of_find_property(struct device_node *np, |
84 | const char *name, | 86 | const char *name, |
85 | int *lenp); | 87 | int *lenp); |
88 | extern int of_device_is_compatible(struct device_node *device, const char *); | ||
86 | extern void *of_get_property(struct device_node *node, const char *name, | 89 | extern void *of_get_property(struct device_node *node, const char *name, |
87 | int *lenp); | 90 | int *lenp); |
88 | extern int of_getintprop_default(struct device_node *np, | 91 | extern int of_getintprop_default(struct device_node *np, |