aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 4948552d60f5..ea44fd72af5f 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -65,6 +65,13 @@ struct device_node {
65#endif 65#endif
66}; 66};
67 67
68#define MAX_PHANDLE_ARGS 8
69struct of_phandle_args {
70 struct device_node *np;
71 int args_count;
72 uint32_t args[MAX_PHANDLE_ARGS];
73};
74
68#ifdef CONFIG_OF 75#ifdef CONFIG_OF
69 76
70/* Pointer for first entry in chain of all nodes. */ 77/* Pointer for first entry in chain of all nodes. */
@@ -230,9 +237,9 @@ extern int of_modalias_node(struct device_node *node, char *modalias, int len);
230extern struct device_node *of_parse_phandle(struct device_node *np, 237extern struct device_node *of_parse_phandle(struct device_node *np,
231 const char *phandle_name, 238 const char *phandle_name,
232 int index); 239 int index);
233extern int of_parse_phandles_with_args(struct device_node *np, 240extern int of_parse_phandle_with_args(struct device_node *np,
234 const char *list_name, const char *cells_name, int index, 241 const char *list_name, const char *cells_name, int index,
235 struct device_node **out_node, const void **out_args); 242 struct of_phandle_args *out_args);
236 243
237extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); 244extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align));
238extern int of_alias_get_id(struct device_node *np, const char *stem); 245extern int of_alias_get_id(struct device_node *np, const char *stem);