diff options
Diffstat (limited to 'include/linux/of_fdt.h')
-rw-r--r-- | include/linux/of_fdt.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h index b37ad3a973b9..b363eadea819 100644 --- a/include/linux/of_fdt.h +++ b/include/linux/of_fdt.h | |||
@@ -12,6 +12,9 @@ | |||
12 | #ifndef _LINUX_OF_FDT_H | 12 | #ifndef _LINUX_OF_FDT_H |
13 | #define _LINUX_OF_FDT_H | 13 | #define _LINUX_OF_FDT_H |
14 | 14 | ||
15 | #include <linux/types.h> | ||
16 | #include <linux/init.h> | ||
17 | |||
15 | /* Definitions used by the flattened device tree */ | 18 | /* Definitions used by the flattened device tree */ |
16 | #define OF_DT_HEADER 0xd00dfeed /* marker */ | 19 | #define OF_DT_HEADER 0xd00dfeed /* marker */ |
17 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ | 20 | #define OF_DT_BEGIN_NODE 0x1 /* Start of node, full name */ |
@@ -54,5 +57,16 @@ struct boot_param_header { | |||
54 | u32 dt_struct_size; /* size of the DT structure block */ | 57 | u32 dt_struct_size; /* size of the DT structure block */ |
55 | }; | 58 | }; |
56 | 59 | ||
60 | /* For scanning the flat device-tree at boot time */ | ||
61 | extern int __init of_scan_flat_dt(int (*it)(unsigned long node, | ||
62 | const char *uname, int depth, | ||
63 | void *data), | ||
64 | void *data); | ||
65 | extern void __init *of_get_flat_dt_prop(unsigned long node, const char *name, | ||
66 | unsigned long *size); | ||
67 | extern int __init of_flat_dt_is_compatible(unsigned long node, | ||
68 | const char *name); | ||
69 | extern unsigned long __init of_get_flat_dt_root(void); | ||
70 | |||
57 | #endif /* __ASSEMBLY__ */ | 71 | #endif /* __ASSEMBLY__ */ |
58 | #endif /* _LINUX_OF_FDT_H */ | 72 | #endif /* _LINUX_OF_FDT_H */ |