diff options
Diffstat (limited to 'include/linux/of_fdt.h')
| -rw-r--r-- | include/linux/of_fdt.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index 7bbf5b328438..0ef22a1f129e 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
| @@ -58,6 +58,23 @@ struct boot_param_header { | |||
| 58 | }; | 58 | }; |
| 59 | 59 | ||
| 60 | #if defined(CONFIG_OF_FLATTREE) | 60 | #if defined(CONFIG_OF_FLATTREE) |
| 61 | |||
| 62 | struct device_node; | ||
| 63 | |||
| 64 | /* For scanning an arbitrary device-tree at any time */ | ||
| 65 | extern char *of_fdt_get_string(struct boot_param_header *blob, u32 offset); | ||
| 66 | extern void *of_fdt_get_property(struct boot_param_header *blob, | ||
| 67 | unsigned long node, | ||
| 68 | const char *name, | ||
| 69 | unsigned long *size); | ||
| 70 | extern int of_fdt_is_compatible(struct boot_param_header *blob, | ||
| 71 | unsigned long node, | ||
| 72 | const char *compat); | ||
| 73 | extern int of_fdt_match(struct boot_param_header *blob, unsigned long node, | ||
| 74 | const char **compat); | ||
| 75 | extern void of_fdt_unflatten_tree(unsigned long *blob, | ||
| 76 | struct device_node **mynodes); | ||
| 77 | |||
| 61 | /* TBD: Temporary export of fdt globals - remove when code fully merged */ | 78 | /* TBD: Temporary export of fdt globals - remove when code fully merged */ |
| 62 | extern int __initdata dt_root_addr_cells; | 79 | extern int __initdata dt_root_addr_cells; |
| 63 | extern int __initdata dt_root_size_cells; | 80 | extern int __initdata dt_root_size_cells; |
| @@ -71,6 +88,7 @@ extern int of_scan_flat_dt(int (*it)(unsigned long node, const char *uname, | |||
| 71 | extern void *of_get_flat_dt_prop(unsigned long node, const char *name, | 88 | extern void *of_get_flat_dt_prop(unsigned long node, const char *name, |
| 72 | unsigned long *size); | 89 | unsigned long *size); |
| 73 | extern int of_flat_dt_is_compatible(unsigned long node, const char *name); | 90 | extern int of_flat_dt_is_compatible(unsigned long node, const char *name); |
| 91 | extern int of_flat_dt_match(unsigned long node, const char **matches); | ||
| 74 | extern unsigned long of_get_flat_dt_root(void); | 92 | extern unsigned long of_get_flat_dt_root(void); |
| 75 | 93 | ||
| 76 | extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, | 94 | extern int early_init_dt_scan_chosen(unsigned long node, const char *uname, |
