cpu86.h 1.0 KB

123456789101112131415161718192021222324252627
  1. #ifndef __BOARD_CPU86__
  2. #define __BOARD_CPU86__
  3. #include <config.h>
  4. #define REG8(x) (*(volatile unsigned char *)(x))
  5. /* CPU86 register definitions */
  6. #define CPU86_VME_EAC REG8(CONFIG_SYS_BCRS_BASE + 0x00)
  7. #define CPU86_VME_SAC REG8(CONFIG_SYS_BCRS_BASE + 0x01)
  8. #define CPU86_VME_MAC REG8(CONFIG_SYS_BCRS_BASE + 0x02)
  9. #define CPU86_BCR REG8(CONFIG_SYS_BCRS_BASE + 0x03)
  10. #define CPU86_BSR REG8(CONFIG_SYS_BCRS_BASE + 0x04)
  11. #define CPU86_WDOG_RPORT REG8(CONFIG_SYS_BCRS_BASE + 0x05)
  12. #define CPU86_MBOX_IRQ REG8(CONFIG_SYS_BCRS_BASE + 0x04)
  13. #define CPU86_REV REG8(CONFIG_SYS_BCRS_BASE + 0x07)
  14. #define CPU86_VME_IRQMASK REG8(CONFIG_SYS_BCRS_BASE + 0x80)
  15. #define CPU86_VME_IRQSTATUS REG8(CONFIG_SYS_BCRS_BASE + 0x81)
  16. #define CPU86_LOCAL_IRQMASK REG8(CONFIG_SYS_BCRS_BASE + 0x82)
  17. #define CPU86_LOCAL_IRQSTATUS REG8(CONFIG_SYS_BCRS_BASE + 0x83)
  18. #define CPU86_PMCL_IRQSTATUS REG8(CONFIG_SYS_BCRS_BASE + 0x84)
  19. /* Board Control Register bits */
  20. #define CPU86_BCR_FWPT 0x01
  21. #define CPU86_BCR_FWRE 0x02
  22. #endif /* __BOARD_CPU86__ */