aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2009-01-02 21:13:52 -0800
committerDavid S. Miller <davem@davemloft.net>2009-01-02 21:13:52 -0800
commitbb5b52bbd5e2cd40b193f34c11eec19864080dcf (patch)
tree191341c7fa72d3ae0408f8172f159460156c5317
parentsparc: remove linux_prom_pci_assigned_addresses from openprom_32.h (diff)
downloadlinux-dev-bb5b52bbd5e2cd40b193f34c11eec19864080dcf.tar.xz
linux-dev-bb5b52bbd5e2cd40b193f34c11eec19864080dcf.zip
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>
-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 {
struct linux_mlist_v0 {
struct linux_mlist_v0 *theres_more;
- char *start_adr;
+ unsigned int start_adr;
unsigned num_bytes;
};
@@ -182,9 +182,9 @@ struct linux_nodeops {
#define PROMINTR_MAX 15
struct linux_prom_registers {
- unsigned int which_io; /* is this in OBIO space? */
- unsigned int phys_addr; /* The physical address of this register */
- unsigned int reg_size; /* How many bytes does this register take up? */
+ unsigned int which_io; /* is this in OBIO space? */
+ unsigned int phys_addr; /* The physical address of this register */
+ unsigned int reg_size; /* How many bytes does this register take up? */
};
struct 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 {
struct linux_mlist_v0 {
struct linux_mlist_v0 *theres_more;
- unsigned start_adr;
+ unsigned int start_adr;
unsigned num_bytes;
};
@@ -167,9 +167,9 @@ struct linux_romvec {
struct linux_nodeops {
int (*no_nextnode)(int node);
int (*no_child)(int node);
- int (*no_proplen)(int node, char *name);
- int (*no_getprop)(int node, char *name, char *val);
- int (*no_setprop)(int node, char *name, char *val, int len);
+ int (*no_proplen)(int node, const char *name);
+ int (*no_getprop)(int node, const char *name, char *val);
+ int (*no_setprop)(int node, const char *name, char *val, int len);
char * (*no_nextprop)(int node, char *name);
};
@@ -179,9 +179,9 @@ struct linux_nodeops {
#define PROMINTR_MAX 32
struct linux_prom_registers {
- unsigned which_io; /* hi part of physical address */
- unsigned phys_addr; /* The physical address of this register */
- int reg_size; /* How many bytes does this register take up? */
+ unsigned int which_io; /* hi part of physical address */
+ unsigned int phys_addr; /* The physical address of this register */
+ unsigned int reg_size; /* How many bytes does this register take up? */
};
struct linux_prom64_registers {