aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2009-01-03 00:13:52 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-03 00:13:52 -0500
commitbb5b52bbd5e2cd40b193f34c11eec19864080dcf (patch)
tree191341c7fa72d3ae0408f8172f159460156c5317 /arch/sparc
parentb608c3fe3cffcb3ebc87ffdec134286859d4a44e (diff)
sparc: prepare openprom for unification
Align the sparc and sparc64 versions so differences are minimal. A few data types are changed to better reflect there actual usage. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/include/asm/openprom_32.h8
-rw-r--r--arch/sparc/include/asm/openprom_64.h14
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/sparc/include/asm/openprom_32.h b/arch/sparc/include/asm/openprom_32.h
index f8b4bf7216d7..2e58db557198 100644
--- a/arch/sparc/include/asm/openprom_32.h
+++ b/arch/sparc/include/asm/openprom_32.h
@@ -47,7 +47,7 @@ struct linux_dev_v2_funcs {
47 47
48struct linux_mlist_v0 { 48struct linux_mlist_v0 {
49 struct linux_mlist_v0 *theres_more; 49 struct linux_mlist_v0 *theres_more;
50 char *start_adr; 50 unsigned int start_adr;
51 unsigned num_bytes; 51 unsigned num_bytes;
52}; 52};
53 53
@@ -182,9 +182,9 @@ struct linux_nodeops {
182#define PROMINTR_MAX 15 182#define PROMINTR_MAX 15
183 183
184struct linux_prom_registers { 184struct linux_prom_registers {
185 unsigned int which_io; /* is this in OBIO space? */ 185 unsigned int which_io; /* is this in OBIO space? */
186 unsigned int phys_addr; /* The physical address of this register */ 186 unsigned int phys_addr; /* The physical address of this register */
187 unsigned int reg_size; /* How many bytes does this register take up? */ 187 unsigned int reg_size; /* How many bytes does this register take up? */
188}; 188};
189 189
190struct linux_prom_irqs { 190struct linux_prom_irqs {
diff --git a/arch/sparc/include/asm/openprom_64.h b/arch/sparc/include/asm/openprom_64.h
index 955d7f687194..db3711e7e91d 100644
--- a/arch/sparc/include/asm/openprom_64.h
+++ b/arch/sparc/include/asm/openprom_64.h
@@ -44,7 +44,7 @@ struct linux_dev_v2_funcs {
44 44
45struct linux_mlist_v0 { 45struct linux_mlist_v0 {
46 struct linux_mlist_v0 *theres_more; 46 struct linux_mlist_v0 *theres_more;
47 unsigned start_adr; 47 unsigned int start_adr;
48 unsigned num_bytes; 48 unsigned num_bytes;
49}; 49};
50 50
@@ -167,9 +167,9 @@ struct linux_romvec {
167struct linux_nodeops { 167struct linux_nodeops {
168 int (*no_nextnode)(int node); 168 int (*no_nextnode)(int node);
169 int (*no_child)(int node); 169 int (*no_child)(int node);
170 int (*no_proplen)(int node, char *name); 170 int (*no_proplen)(int node, const char *name);
171 int (*no_getprop)(int node, char *name, char *val); 171 int (*no_getprop)(int node, const char *name, char *val);
172 int (*no_setprop)(int node, char *name, char *val, int len); 172 int (*no_setprop)(int node, const char *name, char *val, int len);
173 char * (*no_nextprop)(int node, char *name); 173 char * (*no_nextprop)(int node, char *name);
174}; 174};
175 175
@@ -179,9 +179,9 @@ struct linux_nodeops {
179#define PROMINTR_MAX 32 179#define PROMINTR_MAX 32
180 180
181struct linux_prom_registers { 181struct linux_prom_registers {
182 unsigned which_io; /* hi part of physical address */ 182 unsigned int which_io; /* hi part of physical address */
183 unsigned phys_addr; /* The physical address of this register */ 183 unsigned int phys_addr; /* The physical address of this register */
184 int reg_size; /* How many bytes does this register take up? */ 184 unsigned int reg_size; /* How many bytes does this register take up? */
185}; 185};
186 186
187struct linux_prom64_registers { 187struct linux_prom64_registers {