diff options
Diffstat (limited to 'arch/sparc/include/asm/openprom.h')
-rw-r--r-- | arch/sparc/include/asm/openprom.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/arch/sparc/include/asm/openprom.h b/arch/sparc/include/asm/openprom.h index 963e1a45c35f..81cd43432dc0 100644 --- a/arch/sparc/include/asm/openprom.h +++ b/arch/sparc/include/asm/openprom.h | |||
@@ -11,6 +11,8 @@ | |||
11 | #define LINUX_OPPROM_MAGIC 0x10010407 | 11 | #define LINUX_OPPROM_MAGIC 0x10010407 |
12 | 12 | ||
13 | #ifndef __ASSEMBLY__ | 13 | #ifndef __ASSEMBLY__ |
14 | #include <linux/of.h> | ||
15 | |||
14 | /* V0 prom device operations. */ | 16 | /* V0 prom device operations. */ |
15 | struct linux_dev_v0_funcs { | 17 | struct linux_dev_v0_funcs { |
16 | int (*v0_devopen)(char *device_str); | 18 | int (*v0_devopen)(char *device_str); |
@@ -26,7 +28,7 @@ struct linux_dev_v0_funcs { | |||
26 | 28 | ||
27 | /* V2 and later prom device operations. */ | 29 | /* V2 and later prom device operations. */ |
28 | struct linux_dev_v2_funcs { | 30 | struct linux_dev_v2_funcs { |
29 | int (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ | 31 | phandle (*v2_inst2pkg)(int d); /* Convert ihandle to phandle */ |
30 | char * (*v2_dumb_mem_alloc)(char *va, unsigned sz); | 32 | char * (*v2_dumb_mem_alloc)(char *va, unsigned sz); |
31 | void (*v2_dumb_mem_free)(char *va, unsigned sz); | 33 | void (*v2_dumb_mem_free)(char *va, unsigned sz); |
32 | 34 | ||
@@ -168,12 +170,12 @@ struct linux_romvec { | |||
168 | 170 | ||
169 | /* Routines for traversing the prom device tree. */ | 171 | /* Routines for traversing the prom device tree. */ |
170 | struct linux_nodeops { | 172 | struct linux_nodeops { |
171 | int (*no_nextnode)(int node); | 173 | phandle (*no_nextnode)(phandle node); |
172 | int (*no_child)(int node); | 174 | phandle (*no_child)(phandle node); |
173 | int (*no_proplen)(int node, const char *name); | 175 | int (*no_proplen)(phandle node, const char *name); |
174 | int (*no_getprop)(int node, const char *name, char *val); | 176 | int (*no_getprop)(phandle node, const char *name, char *val); |
175 | int (*no_setprop)(int node, const char *name, char *val, int len); | 177 | int (*no_setprop)(phandle node, const char *name, char *val, int len); |
176 | char * (*no_nextprop)(int node, char *name); | 178 | char * (*no_nextprop)(phandle node, char *name); |
177 | }; | 179 | }; |
178 | 180 | ||
179 | /* More fun PROM structures for device probing. */ | 181 | /* More fun PROM structures for device probing. */ |