ocelot_pld.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /*
  2.  * Ocelot Board Register Definitions
  3.  *
  4.  * (C) 2001 Red Hat, Inc.
  5.  *
  6.  * GPL'd
  7.  */
  8. #ifndef __MOMENCO_OCELOT_PLD_H__
  9. #define __MOMENCO_OCELOT_PLD_H__
  10. #define OCELOT_CS0_ADDR (0xe0020000)
  11. #define OCELOT_REG_BOARDREV (0)
  12. #define OCELOT_REG_PLD1_ID (1)
  13. #define OCELOT_REG_PLD2_ID (2)
  14. #define OCELOT_REG_RESET_STATUS (3)
  15. #define OCELOT_REG_BOARD_STATUS (4)
  16. #define OCELOT_REG_CPCI_ID (5)
  17. #define OCELOT_REG_I2C_CTRL (8)
  18. #define OCELOT_REG_EEPROM_MODE (9)
  19. #define OCELOT_REG_INTMASK (10)
  20. #define OCELOT_REG_INTSTATUS (11)
  21. #define OCELOT_REG_INTSET (12)
  22. #define OCELOT_REG_INTCLR (13)
  23. #define OCELOT_PLD_WRITE(x, y) writeb(x, OCELOT_CS0_ADDR + OCELOT_REG_##y)
  24. #define OCELOT_PLD_READ(x) readb(OCELOT_CS0_ADDR + OCELOT_REG_##x)
  25. #endif /* __MOMENCO_OCELOT_PLD_H__ */