Skip to content

Commit

Permalink
[MIPS] Ocelot 3: Fix large number of warnings.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Nov 6, 2006
1 parent ad0b365 commit d19f7be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/mips/momentum/ocelot_3/ocelot_3_fpga.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

extern unsigned long ocelot_fpga_base;

#define OCELOT_FPGA_WRITE(x, y) writeb(x, ocelot_fpga_base + OCELOT_3_REG_##y)
#define OCELOT_FPGA_READ(x) readb(ocelot_fpga_base + OCELOT_3_REG_##x)
#define __FPGA_REG_TO_ADDR(reg) \
((void *) ocelot_fpga_base + OCELOT_3_REG_##reg)
#define OCELOT_FPGA_WRITE(x, reg) writeb(x, __FPGA_REG_TO_ADDR(reg))
#define OCELOT_FPGA_READ(reg) readb(__FPGA_REG_TO_ADDR(reg))

#endif

0 comments on commit d19f7be

Please sign in to comment.