提交 cca72333 编写于 作者: R Ralf Baechle

[MIPS] Ocelot C: Fix large number of warnings.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 64651309
...@@ -53,7 +53,9 @@ ...@@ -53,7 +53,9 @@
#define OCELOT_C_REG_INTSET 0xe #define OCELOT_C_REG_INTSET 0xe
#define OCELOT_C_REG_INTCLR 0xf #define OCELOT_C_REG_INTCLR 0xf
#define OCELOT_FPGA_WRITE(x, y) writeb(x, OCELOT_C_CS0_ADDR + OCELOT_C_REG_##y) #define __FPGA_REG_TO_ADDR(reg) \
#define OCELOT_FPGA_READ(x) readb(OCELOT_C_CS0_ADDR + OCELOT_C_REG_##x) ((void *) OCELOT_C_CS0_ADDR + OCELOT_C_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 #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册