aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 21:10:30 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-08-03 21:10:30 -0400
commit27665ffa22b9b83bab226bf12c61424f7f1f8995 (patch)
treeaaccc030778bb6878c46ab9ca035901af67d78e4 /include
parent14595f708eeb528fabcee339ed0b9e0a2ecec73f (diff)
parent750f463a749e28464151ad26938d11b07b1c43cb (diff)
Merge branch 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6
* 'devicetree/next' of git://git.secretlab.ca/git/linux-2.6: dt: add of_alias_scan and of_alias_get_id
Diffstat (limited to 'include')
-rw-r--r--include/linux/of.h8
-rw-r--r--include/linux/of_fdt.h1
2 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 0085bb01c041..bc3dc6399547 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -68,6 +68,7 @@ struct device_node {
68/* Pointer for first entry in chain of all nodes. */ 68/* Pointer for first entry in chain of all nodes. */
69extern struct device_node *allnodes; 69extern struct device_node *allnodes;
70extern struct device_node *of_chosen; 70extern struct device_node *of_chosen;
71extern struct device_node *of_aliases;
71extern rwlock_t devtree_lock; 72extern rwlock_t devtree_lock;
72 73
73static inline bool of_have_populated_dt(void) 74static inline bool of_have_populated_dt(void)
@@ -209,6 +210,9 @@ extern int of_device_is_available(const struct device_node *device);
209extern const void *of_get_property(const struct device_node *node, 210extern const void *of_get_property(const struct device_node *node,
210 const char *name, 211 const char *name,
211 int *lenp); 212 int *lenp);
213#define for_each_property(pp, properties) \
214 for (pp = properties; pp != NULL; pp = pp->next)
215
212extern int of_n_addr_cells(struct device_node *np); 216extern int of_n_addr_cells(struct device_node *np);
213extern int of_n_size_cells(struct device_node *np); 217extern int of_n_size_cells(struct device_node *np);
214extern const struct of_device_id *of_match_node( 218extern const struct of_device_id *of_match_node(
@@ -221,6 +225,10 @@ extern int of_parse_phandles_with_args(struct device_node *np,
221 const char *list_name, const char *cells_name, int index, 225 const char *list_name, const char *cells_name, int index,
222 struct device_node **out_node, const void **out_args); 226 struct device_node **out_node, const void **out_args);
223 227
228extern void *early_init_dt_alloc_memory_arch(u64 size, u64 align);
229extern void of_alias_scan(void);
230extern int of_alias_get_id(struct device_node *np, const char *stem);
231
224extern int of_machine_is_compatible(const char *compat); 232extern int of_machine_is_compatible(const char *compat);
225 233
226extern int prom_add_property(struct device_node* np, struct property* prop); 234extern int prom_add_property(struct device_node* np, struct property* prop);
diff --git a/include/linux/of_fdt.h b/include/linux/of_fdt.h
index c84d900fbbb3..b74b74ffe0e7 100644
--- a/include/linux/of_fdt.h
+++ b/include/linux/of_fdt.h
@@ -97,7 +97,6 @@ extern void early_init_dt_check_for_initrd(unsigned long node);
97extern int early_init_dt_scan_memory(unsigned long node, const char *uname, 97extern int early_init_dt_scan_memory(unsigned long node, const char *uname,
98 int depth, void *data); 98 int depth, void *data);
99extern void early_init_dt_add_memory_arch(u64 base, u64 size); 99extern void early_init_dt_add_memory_arch(u64 base, u64 size);
100extern void * early_init_dt_alloc_memory_arch(u64 size, u64 align);
101extern u64 dt_mem_next_cell(int s, __be32 **cellp); 100extern u64 dt_mem_next_cell(int s, __be32 **cellp);
102 101
103/* 102/*