OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d0f82a
)
[MIPS] Jaguar ATX: Fix large number of warnings.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 7 Nov 2006 09:23:57 +0000
(09:23 +0000)
committer
Ralf Baechle
<ralf@linux-mips.org>
Tue, 6 Feb 2007 16:53:22 +0000
(16:53 +0000)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
patch
|
blob
|
history
diff --git
a/arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
b/arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
index
6978654
..
022f697
100644
(file)
--- a/
arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
+++ b/
arch/mips/momentum/jaguar_atx/jaguar_atx_fpga.h
@@
-46,7
+46,9
@@
extern unsigned long ja_fpga_base;
-#define JAGUAR_FPGA_WRITE(x,y) writeb(x, ja_fpga_base + JAGUAR_ATX_REG_##y)
-#define JAGUAR_FPGA_READ(x) readb(ja_fpga_base + JAGUAR_ATX_REG_##x)
+#define __FPGA_REG_TO_ADDR(reg) \
+ ((void *) ja_fpga_base + JAGUAR_ATX_REG_##reg)
+#define JAGUAR_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg))
+#define JAGUAR_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg))
#endif