Commit fd28b9ac authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by Ralf Baechle

DEC: Document the R4k MB ASIC mini interrupt controller

There's an alternative 5-line mini interrupt controller in the R4k MB ASIC
used on the KN04 and KN05 CPU daughtercards.  The controller is cascaded
from the CPU interrupt input that would be used for the Halt button on the
corresponding R3k systems.  This change documents the findings so far.
Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: http://patchwork.linux-mips.org/patch/6706/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent ebff05b9
...@@ -48,13 +48,21 @@ ...@@ -48,13 +48,21 @@
#define KN4K_RES_14 (14*IOASIC_SLOT_SIZE) /* unused? */ #define KN4K_RES_14 (14*IOASIC_SLOT_SIZE) /* unused? */
#define KN4K_RES_15 (15*IOASIC_SLOT_SIZE) /* unused? */ #define KN4K_RES_15 (15*IOASIC_SLOT_SIZE) /* unused? */
/*
* MB ASIC interrupt bits.
*/
#define KN4K_MB_INR_MB 4 /* ??? */
#define KN4K_MB_INR_MT 3 /* memory, I/O bus read/write errors */
#define KN4K_MB_INR_RES_2 2 /* unused */
#define KN4K_MB_INR_RTC 1 /* RTC */
#define KN4K_MB_INR_TC 0 /* I/O ASIC cascade */
/* /*
* Bits for the MB interrupt register. * Bits for the MB interrupt register.
* The register appears read-only. * The register appears read-only.
*/ */
#define KN4K_MB_INT_TC (1<<0) /* TURBOchannel? */ #define KN4K_MB_INT_IRQ (0x1f<<0) /* CPU Int[4:0] status. */
#define KN4K_MB_INT_RTC (1<<1) /* RTC? */ #define KN4K_MB_INT_IRQ_N(n) (1<<(n)) /* Individual status bits. */
#define KN4K_MB_INT_MT (1<<3) /* I/O ASIC cascade */
/* /*
* Bits for the MB control & status register. * Bits for the MB control & status register.
...@@ -70,6 +78,7 @@ ...@@ -70,6 +78,7 @@
#define KN4K_MB_CSR_NC (1<<14) /* ??? */ #define KN4K_MB_CSR_NC (1<<14) /* ??? */
#define KN4K_MB_CSR_EE (1<<15) /* (bus) Exception Enable? */ #define KN4K_MB_CSR_EE (1<<15) /* (bus) Exception Enable? */
#define KN4K_MB_CSR_MSK (0x1f<<16) /* CPU Int[4:0] mask */ #define KN4K_MB_CSR_MSK (0x1f<<16) /* CPU Int[4:0] mask */
#define KN4K_MB_CSR_MSK_N(n) (1<<((n)+16)) /* Individual mask bits. */
#define KN4K_MB_CSR_FW (1<<21) /* ??? */ #define KN4K_MB_CSR_FW (1<<21) /* ??? */
#define KN4K_MB_CSR_W (1<<31) /* ??? */ #define KN4K_MB_CSR_W (1<<31) /* ??? */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment