1
2
3
4
5
6
7
8
9#ifndef _LINUX_OF_PDT_H
10#define _LINUX_OF_PDT_H
11
12
13struct of_pdt_ops {
14
15
16
17
18 int (*nextprop)(phandle node, char *prev, char *buf);
19
20
21 int (*getproplen)(phandle node, const char *prop);
22 int (*getproperty)(phandle node, const char *prop, char *buf,
23 int bufsize);
24
25
26 phandle (*getchild)(phandle parent);
27 phandle (*getsibling)(phandle node);
28
29
30 int (*pkg2path)(phandle node, char *buf, const int buflen, int *len);
31};
32
33extern void *prom_early_alloc(unsigned long size);
34
35
36extern void of_pdt_build_devicetree(phandle root_node, struct of_pdt_ops *ops);
37
38#endif
39