blob: 5dbd4ae07d648f4a6484e78d51f6f09ae94afbb3 [file] [log] [blame]
wdenk384cc682005-04-03 22:35:21 +00001#ifndef __BOARD_CPU87__
2#define __BOARD_CPU87__
3
4#include <config.h>
5
6#define REG8(x) (*(volatile unsigned char *)(x))
7
8/* CPU86 register definitions */
9#define CPU86_VME_EAC REG8(CFG_BCRS_BASE + 0x00)
10#define CPU86_VME_SAC REG8(CFG_BCRS_BASE + 0x01)
11#define CPU86_VME_MAC REG8(CFG_BCRS_BASE + 0x02)
12#define CPU86_BCR REG8(CFG_BCRS_BASE + 0x03)
13#define CPU86_BSR REG8(CFG_BCRS_BASE + 0x04)
14#define CPU86_WDOG_RPORT REG8(CFG_BCRS_BASE + 0x05)
15#define CPU86_MBOX_IRQ REG8(CFG_BCRS_BASE + 0x04)
16#define CPU86_REV REG8(CFG_BCRS_BASE + 0x07)
17#define CPU86_VME_IRQMASK REG8(CFG_BCRS_BASE + 0x80)
18#define CPU86_VME_IRQSTATUS REG8(CFG_BCRS_BASE + 0x81)
19#define CPU86_LOCAL_IRQMASK REG8(CFG_BCRS_BASE + 0x82)
20#define CPU86_LOCAL_IRQSTATUS REG8(CFG_BCRS_BASE + 0x83)
21#define CPU86_PMCL_IRQSTATUS REG8(CFG_BCRS_BASE + 0x84)
22
23/* Board Control Register bits */
24#define CPU86_BCR_FWPT 0x01
25#define CPU86_BCR_FWRE 0x02
26
27#endif /* __BOARD_CPU87__ */