|
|
1.1 root 1: /*
2: * Information about nexus's.
3: *
4: * Each machine has an address of backplane slots (nexi).
5: * Each nexus is some type of adapter, whose code is the low
6: * byte of the first word of the adapter address space.
7: * At boot time the system looks through the array of available
8: * slots and finds the interconnects for the machine.
9: *
10: * We stretch this a little for MicroVAX-II. It has a local register
11: * space for the toy, q-bus map registers and other goodies. Because
12: * these things are similar in concept to adapters we use this space
13: * to map them in also.
14: */
15: #if VAX780
16: #define NNEX780 16
17: #define NEX780 ((struct nexus *)0x20000000)
18: #endif
19: #if VAX750
20: #define NNEX750 16
21: #define NEX750 ((struct nexus *)0xf20000)
22: #endif
23: #if VAX7ZZ
24: #define NNEX7ZZ 16
25: #define NEX7ZZ ((struct nexus *)0xf20000)
26: #endif
27: #ifdef MVAX
28: #define NNEXMVAX 1
29: #define NEXMVAX ((struct nexus *)0x20080000)
30: #endif
31:
32: #define MAXNNEXUS 16
33:
34: #if defined(VAX780) || defined(VAX750) || defined(VAX7ZZ)
35: #define NEXSIZE 0x2000
36: #else
37: #define NEXSIZE 0x40000
38: #endif
39:
40: #ifndef LOCORE
41: struct nexus {
42: union nexcsr {
43: long nex_csr;
44: u_char nex_type;
45: } nexcsr;
46: long nex_pad[NEXSIZE / sizeof (long) - 1];
47: };
48: #ifdef KERNEL
49: struct nexus nexus[MAXNNEXUS];
50: #endif
51: #endif
52:
53: /*
54: * Bits in high word of nexus's.
55: */
56: #define SBI_PARFLT (1<<31) /* sbi parity fault */
57: #define SBI_WSQFLT (1<<30) /* write sequence fault */
58: #define SBI_URDFLT (1<<29) /* unexpected read data fault */
59: #define SBI_ISQFLT (1<<28) /* interlock sequence fault */
60: #define SBI_MXTFLT (1<<27) /* multiple transmitter fault */
61: #define SBI_XMTFLT (1<<26) /* transmit fault */
62:
63: #define NEX_CFGFLT (0xfc000000)
64:
65: #ifndef LOCORE
66: #if VAX780
67: #define NEXFLT_BITS \
68: "\20\40PARFLT\37WSQFLT\36URDFLT\35ISQFLT\34MXTFLT\33XMTFLT"
69: #endif
70: #endif
71:
72: #define NEX_APD (1<<23) /* adaptor power down */
73: #define NEX_APU (1<<22) /* adaptor power up */
74:
75: #define MBA_OT (1<<21) /* overtemperature */
76:
77: #define UBA_UBINIT (1<<18) /* unibus init */
78: #define UBA_UBPDN (1<<17) /* unibus power down */
79: #define UBA_UBIC (1<<16) /* unibus initialization complete */
80:
81: /*
82: * Types for nex_type.
83: */
84: #define NEX_ANY 0 /* pseudo for handling 11/750 */
85: #define NEX_MEM4 0x08 /* 4K chips, non-interleaved mem */
86: #define NEX_MEM4I 0x09 /* 4K chips, interleaved mem */
87: #define NEX_MEM16 0x10 /* 16K chips, non-interleaved mem */
88: #define NEX_MEM16I 0x11 /* 16K chips, interleaved mem */
89: #define NEX_MBA 0x20 /* Massbus adaptor */
90: #define NEX_UBA0 0x28 /* Unibus adaptor */
91: #define NEX_UBA1 0x29 /* 4 flavours for 4 addr spaces */
92: #define NEX_UBA2 0x2a
93: #define NEX_UBA3 0x2b
94: #define NEX_DR32 0x30 /* DR32 user i'face to SBI */
95: #define NEX_MPM0 0x40 /* Multi-port mem */
96: #define NEX_MPM1 0x41 /* Who knows why 4 different ones ? */
97: #define NEX_MPM2 0x42
98: #define NEX_MPM3 0x43
99: #define NEX_Q22 0xfd /* Fudge an adapter type for MicroVAX */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.