diff options
Diffstat (limited to 'include/asm-ppc64/prom.h')
-rw-r--r-- | include/asm-ppc64/prom.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/asm-ppc64/prom.h b/include/asm-ppc64/prom.h index e8d0d2ab4c0f..ddfe186589fa 100644 --- a/include/asm-ppc64/prom.h +++ b/include/asm-ppc64/prom.h | |||
@@ -188,6 +188,14 @@ extern struct device_node *of_get_next_child(const struct device_node *node, | |||
188 | extern struct device_node *of_node_get(struct device_node *node); | 188 | extern struct device_node *of_node_get(struct device_node *node); |
189 | extern void of_node_put(struct device_node *node); | 189 | extern void of_node_put(struct device_node *node); |
190 | 190 | ||
191 | /* For scanning the flat device-tree at boot time */ | ||
192 | int __init of_scan_flat_dt(int (*it)(unsigned long node, | ||
193 | const char *uname, int depth, | ||
194 | void *data), | ||
195 | void *data); | ||
196 | void* __init of_get_flat_dt_prop(unsigned long node, const char *name, | ||
197 | unsigned long *size); | ||
198 | |||
191 | /* For updating the device tree at runtime */ | 199 | /* For updating the device tree at runtime */ |
192 | extern void of_attach_node(struct device_node *); | 200 | extern void of_attach_node(struct device_node *); |
193 | extern void of_detach_node(const struct device_node *); | 201 | extern void of_detach_node(const struct device_node *); |
@@ -196,6 +204,8 @@ extern void of_detach_node(const struct device_node *); | |||
196 | extern unsigned long prom_init(unsigned long, unsigned long, unsigned long, | 204 | extern unsigned long prom_init(unsigned long, unsigned long, unsigned long, |
197 | unsigned long, unsigned long); | 205 | unsigned long, unsigned long); |
198 | extern void finish_device_tree(void); | 206 | extern void finish_device_tree(void); |
207 | extern void unflatten_device_tree(void); | ||
208 | extern void early_init_devtree(void *); | ||
199 | extern int device_is_compatible(struct device_node *device, const char *); | 209 | extern int device_is_compatible(struct device_node *device, const char *); |
200 | extern int machine_is_compatible(const char *compat); | 210 | extern int machine_is_compatible(const char *compat); |
201 | extern unsigned char *get_property(struct device_node *node, const char *name, | 211 | extern unsigned char *get_property(struct device_node *node, const char *name, |
@@ -205,6 +215,6 @@ extern int prom_n_addr_cells(struct device_node* np); | |||
205 | extern int prom_n_size_cells(struct device_node* np); | 215 | extern int prom_n_size_cells(struct device_node* np); |
206 | extern int prom_n_intr_cells(struct device_node* np); | 216 | extern int prom_n_intr_cells(struct device_node* np); |
207 | extern void prom_get_irq_senses(unsigned char *senses, int off, int max); | 217 | extern void prom_get_irq_senses(unsigned char *senses, int off, int max); |
208 | extern void prom_add_property(struct device_node* np, struct property* prop); | 218 | extern int prom_add_property(struct device_node* np, struct property* prop); |
209 | 219 | ||
210 | #endif /* _PPC64_PROM_H */ | 220 | #endif /* _PPC64_PROM_H */ |