diff options
Diffstat (limited to 'include/asm-mips/dec/kn05.h')
-rw-r--r-- | include/asm-mips/dec/kn05.h | 76 |
1 files changed, 40 insertions, 36 deletions
diff --git a/include/asm-mips/dec/kn05.h b/include/asm-mips/dec/kn05.h index b120362b8f13..15fe8f881e60 100644 --- a/include/asm-mips/dec/kn05.h +++ b/include/asm-mips/dec/kn05.h | |||
@@ -1,10 +1,12 @@ | |||
1 | /* | 1 | /* |
2 | * include/asm-mips/dec/kn05.h | 2 | * include/asm-mips/dec/kn05.h |
3 | * | 3 | * |
4 | * DECstation 5000/260 (4max+ or KN05) and DECsystem 5900/260 | 4 | * DECstation/DECsystem 5000/260 (4max+ or KN05), 5000/150 (4min |
5 | * or KN04-BA), Personal DECstation/DECsystem 5000/50 (4maxine or | ||
6 | * KN04-CA) and DECsystem 5900/260 (KN05) R4k CPU card MB ASIC | ||
5 | * definitions. | 7 | * definitions. |
6 | * | 8 | * |
7 | * Copyright (C) 2002, 2003 Maciej W. Rozycki | 9 | * Copyright (C) 2002, 2003, 2005 Maciej W. Rozycki |
8 | * | 10 | * |
9 | * This program is free software; you can redistribute it and/or | 11 | * This program is free software; you can redistribute it and/or |
10 | * modify it under the terms of the GNU General Public License | 12 | * modify it under the terms of the GNU General Public License |
@@ -13,8 +15,8 @@ | |||
13 | * | 15 | * |
14 | * WARNING! All this information is pure guesswork based on the | 16 | * WARNING! All this information is pure guesswork based on the |
15 | * ROM. It is provided here in hope it will give someone some | 17 | * ROM. It is provided here in hope it will give someone some |
16 | * food for thought. No documentation for the KN05 module has | 18 | * food for thought. No documentation for the KN05 nor the KN04 |
17 | * been located so far. | 19 | * module has been located so far. |
18 | */ | 20 | */ |
19 | #ifndef __ASM_MIPS_DEC_KN05_H | 21 | #ifndef __ASM_MIPS_DEC_KN05_H |
20 | #define __ASM_MIPS_DEC_KN05_H | 22 | #define __ASM_MIPS_DEC_KN05_H |
@@ -24,48 +26,50 @@ | |||
24 | /* | 26 | /* |
25 | * The oncard MB (Memory Buffer) ASIC provides an additional address | 27 | * The oncard MB (Memory Buffer) ASIC provides an additional address |
26 | * decoder. Certain address ranges within the "high" 16 slots are | 28 | * decoder. Certain address ranges within the "high" 16 slots are |
27 | * passed to the I/O ASIC's decoder like with the KN03. Others are | 29 | * passed to the I/O ASIC's decoder like with the KN03 or KN02-BA/CA. |
28 | * handled locally. "Low" slots are always passed. | 30 | * Others are handled locally. "Low" slots are always passed. |
29 | */ | 31 | */ |
30 | #define KN05_MB_ROM (16*IOASIC_SLOT_SIZE) /* KN05 card ROM */ | 32 | #define KN4K_SLOT_BASE 0x1fc00000 |
31 | #define KN05_IOCTL (17*IOASIC_SLOT_SIZE) /* I/O ASIC */ | 33 | |
32 | #define KN05_ESAR (18*IOASIC_SLOT_SIZE) /* LANCE MAC address chip */ | 34 | #define KN4K_MB_ROM (0*IOASIC_SLOT_SIZE) /* KN05/KN04 card ROM */ |
33 | #define KN05_LANCE (19*IOASIC_SLOT_SIZE) /* LANCE Ethernet */ | 35 | #define KN4K_IOCTL (1*IOASIC_SLOT_SIZE) /* I/O ASIC */ |
34 | #define KN05_MB_INT (20*IOASIC_SLOT_SIZE) /* MB interrupt register */ | 36 | #define KN4K_ESAR (2*IOASIC_SLOT_SIZE) /* LANCE MAC address chip */ |
35 | #define KN05_MB_EA (21*IOASIC_SLOT_SIZE) /* MB error address? */ | 37 | #define KN4K_LANCE (3*IOASIC_SLOT_SIZE) /* LANCE Ethernet */ |
36 | #define KN05_MB_EC (22*IOASIC_SLOT_SIZE) /* MB error ??? */ | 38 | #define KN4K_MB_INT (4*IOASIC_SLOT_SIZE) /* MB interrupt register */ |
37 | #define KN05_MB_CSR (23*IOASIC_SLOT_SIZE) /* MB control & status */ | 39 | #define KN4K_MB_EA (5*IOASIC_SLOT_SIZE) /* MB error address? */ |
38 | #define KN05_RES_24 (24*IOASIC_SLOT_SIZE) /* unused? */ | 40 | #define KN4K_MB_EC (6*IOASIC_SLOT_SIZE) /* MB error ??? */ |
39 | #define KN05_RES_25 (25*IOASIC_SLOT_SIZE) /* unused? */ | 41 | #define KN4K_MB_CSR (7*IOASIC_SLOT_SIZE) /* MB control & status */ |
40 | #define KN05_RES_26 (26*IOASIC_SLOT_SIZE) /* unused? */ | 42 | #define KN4K_RES_08 (8*IOASIC_SLOT_SIZE) /* unused? */ |
41 | #define KN05_RES_27 (27*IOASIC_SLOT_SIZE) /* unused? */ | 43 | #define KN4K_RES_09 (9*IOASIC_SLOT_SIZE) /* unused? */ |
42 | #define KN05_SCSI (28*IOASIC_SLOT_SIZE) /* ASC SCSI */ | 44 | #define KN4K_RES_10 (10*IOASIC_SLOT_SIZE) /* unused? */ |
43 | #define KN05_RES_29 (29*IOASIC_SLOT_SIZE) /* unused? */ | 45 | #define KN4K_RES_11 (11*IOASIC_SLOT_SIZE) /* unused? */ |
44 | #define KN05_RES_30 (30*IOASIC_SLOT_SIZE) /* unused? */ | 46 | #define KN4K_SCSI (12*IOASIC_SLOT_SIZE) /* ASC SCSI */ |
45 | #define KN05_RES_31 (31*IOASIC_SLOT_SIZE) /* unused? */ | 47 | #define KN4K_RES_13 (13*IOASIC_SLOT_SIZE) /* unused? */ |
48 | #define KN4K_RES_14 (14*IOASIC_SLOT_SIZE) /* unused? */ | ||
49 | #define KN4K_RES_15 (15*IOASIC_SLOT_SIZE) /* unused? */ | ||
46 | 50 | ||
47 | /* | 51 | /* |
48 | * Bits for the MB interrupt register. | 52 | * Bits for the MB interrupt register. |
49 | * The register appears read-only. | 53 | * The register appears read-only. |
50 | */ | 54 | */ |
51 | #define KN05_MB_INT_TC (1<<0) /* TURBOchannel? */ | 55 | #define KN4K_MB_INT_TC (1<<0) /* TURBOchannel? */ |
52 | #define KN05_MB_INT_RTC (1<<1) /* RTC? */ | 56 | #define KN4K_MB_INT_RTC (1<<1) /* RTC? */ |
53 | #define KN05_MB_INT_MT (1<<3) /* ??? */ | 57 | #define KN4K_MB_INT_MT (1<<3) /* ??? */ |
54 | 58 | ||
55 | /* | 59 | /* |
56 | * Bits for the MB control & status register. | 60 | * Bits for the MB control & status register. |
57 | * Set to 0x00bf8001 on my system by the ROM. | 61 | * Set to 0x00bf8001 on my system by the ROM. |
58 | */ | 62 | */ |
59 | #define KN05_MB_CSR_PF (1<<0) /* PreFetching enable? */ | 63 | #define KN4K_MB_CSR_PF (1<<0) /* PreFetching enable? */ |
60 | #define KN05_MB_CSR_F (1<<1) /* ??? */ | 64 | #define KN4K_MB_CSR_F (1<<1) /* ??? */ |
61 | #define KN05_MB_CSR_ECC (0xff<<2) /* ??? */ | 65 | #define KN4K_MB_CSR_ECC (0xff<<2) /* ??? */ |
62 | #define KN05_MB_CSR_OD (1<<10) /* ??? */ | 66 | #define KN4K_MB_CSR_OD (1<<10) /* ??? */ |
63 | #define KN05_MB_CSR_CP (1<<11) /* ??? */ | 67 | #define KN4K_MB_CSR_CP (1<<11) /* ??? */ |
64 | #define KN05_MB_CSR_UNC (1<<12) /* ??? */ | 68 | #define KN4K_MB_CSR_UNC (1<<12) /* ??? */ |
65 | #define KN05_MB_CSR_IM (1<<13) /* ??? */ | 69 | #define KN4K_MB_CSR_IM (1<<13) /* ??? */ |
66 | #define KN05_MB_CSR_NC (1<<14) /* ??? */ | 70 | #define KN4K_MB_CSR_NC (1<<14) /* ??? */ |
67 | #define KN05_MB_CSR_EE (1<<15) /* (bus) Exception Enable? */ | 71 | #define KN4K_MB_CSR_EE (1<<15) /* (bus) Exception Enable? */ |
68 | #define KN05_MB_CSR_MSK (0x1f<<16) /* ??? */ | 72 | #define KN4K_MB_CSR_MSK (0x1f<<16) /* ??? */ |
69 | #define KN05_MB_CSR_FW (1<<21) /* ??? */ | 73 | #define KN4K_MB_CSR_FW (1<<21) /* ??? */ |
70 | 74 | ||
71 | #endif /* __ASM_MIPS_DEC_KN05_H */ | 75 | #endif /* __ASM_MIPS_DEC_KN05_H */ |