1 #ifndef _M68K_MVME16xHW_H_
2 #define _M68K_MVME16xHW_H_
6 /* Board ID data structure - pointer to this retrieved from Bug by head.S */
8 /* Note, bytes 12 and 13 are board no in BCD (0162,0166,0167,0177,etc) */
12 u_char rev, mth, day, yr;
13 u_short size, reserved;
17 u_short clun, dlun, ctype, dnum;
37 #define MVME_LPR_BASE 0xfff42030
39 #define mvmelp ((*(volatile MVMElpPtr)(MVME_LPR_BASE)))
51 } MK48T08_t, *MK48T08ptr_t;
53 #define RTC_WRITE 0x80
57 #define MVME_RTC_BASE 0xfffc1ff8
59 #define MVME_I596_BASE 0xfff46000
61 #define MVME_SCC_A_ADDR 0xfff45005
62 #define MVME_SCC_B_ADDR 0xfff45001
63 #define MVME_SCC_PCLK 10000000
65 #define MVME162_IRQ_TYPE_PRIO 0
67 #define MVME167_IRQ_PRN (IRQ_USER+20)
68 #define MVME16x_IRQ_I596 (IRQ_USER+23)
69 #define MVME16x_IRQ_SCSI (IRQ_USER+21)
70 #define MVME16x_IRQ_FLY (IRQ_USER+63)
71 #define MVME167_IRQ_SER_ERR (IRQ_USER+28)
72 #define MVME167_IRQ_SER_MODEM (IRQ_USER+29)
73 #define MVME167_IRQ_SER_TX (IRQ_USER+30)
74 #define MVME167_IRQ_SER_RX (IRQ_USER+31)
75 #define MVME16x_IRQ_TIMER (IRQ_USER+25)
76 #define MVME167_IRQ_ABORT (IRQ_USER+46)
77 #define MVME162_IRQ_ABORT (IRQ_USER+30)
79 /* SCC interrupts, for MVME162 */
80 #define MVME162_IRQ_SCC_BASE (IRQ_USER+0)
81 #define MVME162_IRQ_SCCB_TX (IRQ_USER+0)
82 #define MVME162_IRQ_SCCB_STAT (IRQ_USER+2)
83 #define MVME162_IRQ_SCCB_RX (IRQ_USER+4)
84 #define MVME162_IRQ_SCCB_SPCOND (IRQ_USER+6)
85 #define MVME162_IRQ_SCCA_TX (IRQ_USER+8)
86 #define MVME162_IRQ_SCCA_STAT (IRQ_USER+10)
87 #define MVME162_IRQ_SCCA_RX (IRQ_USER+12)
88 #define MVME162_IRQ_SCCA_SPCOND (IRQ_USER+14)
90 /* MVME162 version register */
92 #define MVME162_VERSION_REG 0xfff4202e
94 extern unsigned short mvme16x_config;
96 /* Lower 8 bits must match the revision register in the MC2 chip */
98 #define MVME16x_CONFIG_SPEED_32 0x0001
99 #define MVME16x_CONFIG_NO_VMECHIP2 0x0002
100 #define MVME16x_CONFIG_NO_SCSICHIP 0x0004
101 #define MVME16x_CONFIG_NO_ETHERNET 0x0008
102 #define MVME16x_CONFIG_GOT_FPU 0x0010
104 #define MVME16x_CONFIG_GOT_LP 0x0100
105 #define MVME16x_CONFIG_GOT_CD2401 0x0200
106 #define MVME16x_CONFIG_GOT_SCCA 0x0400
107 #define MVME16x_CONFIG_GOT_SCCB 0x0800