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) */
10 extern long mvme_bdid_ptr
;
14 u_char rev
, mth
, day
, yr
;
15 u_short size
, reserved
;
19 u_short clun
, dlun
, ctype
, dnum
;
39 #define MVME_LPR_BASE 0xfff42030
41 #define mvmelp ((*(volatile MVMElpPtr)(MVME_LPR_BASE)))
53 } MK48T08_t
, *MK48T08ptr_t
;
55 #define RTC_WRITE 0x80
59 #define MVME_RTC_BASE 0xfffc1ff8
61 #define MVME_I596_BASE 0xfff46000
63 #define MVME_SCC_A_ADDR 0xfff45005
64 #define MVME_SCC_B_ADDR 0xfff45001
66 #define MVME162_IRQ_TYPE_PRIO 0
68 #define MVME167_IRQ_PRN 0x54
69 #define MVME16x_IRQ_I596 0x57
70 #define MVME16x_IRQ_SCSI 0x55
71 #define MVME16x_IRQ_FLY 0x7f
72 #define MVME167_IRQ_SER_ERR 0x5c
73 #define MVME167_IRQ_SER_MODEM 0x5d
74 #define MVME167_IRQ_SER_TX 0x5e
75 #define MVME167_IRQ_SER_RX 0x5f
76 #define MVME16x_IRQ_TIMER 0x59
77 #define MVME167_IRQ_ABORT 0x6e
78 #define MVME162_IRQ_ABORT 0x5e
80 /* SCC interrupts, for MVME162 */
81 #define MVME162_IRQ_SCC_BASE 0x40
82 #define MVME162_IRQ_SCCB_TX 0x40
83 #define MVME162_IRQ_SCCB_STAT 0x42
84 #define MVME162_IRQ_SCCB_RX 0x44
85 #define MVME162_IRQ_SCCB_SPCOND 0x46
86 #define MVME162_IRQ_SCCA_TX 0x48
87 #define MVME162_IRQ_SCCA_STAT 0x4a
88 #define MVME162_IRQ_SCCA_RX 0x4c
89 #define MVME162_IRQ_SCCA_SPCOND 0x4e
91 /* MVME162 version register */
93 #define MVME162_VERSION_REG 0xfff4202e
95 extern unsigned short mvme16x_config
;
97 /* Lower 8 bits must match the revision register in the MC2 chip */
99 #define MVME16x_CONFIG_SPEED_32 0x0001
100 #define MVME16x_CONFIG_NO_VMECHIP2 0x0002
101 #define MVME16x_CONFIG_NO_SCSICHIP 0x0004
102 #define MVME16x_CONFIG_NO_ETHERNET 0x0008
103 #define MVME16x_CONFIG_GOT_FPU 0x0010
105 #define MVME16x_CONFIG_GOT_LP 0x0100
106 #define MVME16x_CONFIG_GOT_CD2401 0x0200
107 #define MVME16x_CONFIG_GOT_SCCA 0x0400
108 #define MVME16x_CONFIG_GOT_SCCB 0x0800