]> err.no Git - linux-2.6/blobdiff - include/asm-sparc64/prom.h
[PATCH] Time: i386 Conversion - part 2: Rework TSC Support
[linux-2.6] / include / asm-sparc64 / prom.h
index 44bcc83267f3a3afa6ad39c80f3b41969fd7939d..6d1556c0c263307f0cc95995fb04ac00ab2e84cc 100644 (file)
@@ -65,13 +65,32 @@ static inline void set_node_proc_entry(struct device_node *dn, struct proc_dir_e
        dn->pde = de;
 }
 
+extern struct device_node *of_find_node_by_name(struct device_node *from,
+       const char *name);
+#define for_each_node_by_name(dn, name) \
+       for (dn = of_find_node_by_name(NULL, name); dn; \
+            dn = of_find_node_by_name(dn, name))
+extern struct device_node *of_find_node_by_type(struct device_node *from,
+       const char *type);
+#define for_each_node_by_type(dn, type) \
+       for (dn = of_find_node_by_type(NULL, type); dn; \
+            dn = of_find_node_by_type(dn, type))
+extern struct device_node *of_find_compatible_node(struct device_node *from,
+       const char *type, const char *compat);
 extern struct device_node *of_find_node_by_path(const char *path);
+extern struct device_node *of_find_node_by_phandle(phandle handle);
 extern struct device_node *of_get_parent(const struct device_node *node);
 extern struct device_node *of_get_next_child(const struct device_node *node,
                                             struct device_node *prev);
 extern struct property *of_find_property(struct device_node *np,
                                         const char *name,
                                         int *lenp);
+extern int of_device_is_compatible(struct device_node *device, const char *);
+extern void *of_get_property(struct device_node *node, const char *name,
+                            int *lenp);
+extern int of_getintprop_default(struct device_node *np,
+                                const char *name,
+                                int def);
 
 extern void prom_build_devicetree(void);