Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 40775
b: refs/heads/master
c: d19f7be
h: refs/heads/master
i:
  40773: 7bc63df
  40771: db7099d
  40767: 3f4864c
v: v3
  • Loading branch information
Ralf Baechle committed Nov 6, 2006
1 parent be6c0cb commit d088fe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ad0b365573718a4a83266f98c9a49305c8eaf0b8
refs/heads/master: d19f7befe929d400df89699eb51b8d7f4ef1b2d8
6 changes: 4 additions & 2 deletions trunk/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 d088fe2

Please sign in to comment.