Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/walnut/walnut Set up irq16 (FPGA interrupt) and irq...



details:   https://anonhg.NetBSD.org/src/rev/c9ffaaf9d111
branches:  trunk
changeset: 516738:c9ffaaf9d111
user:      simonb <simonb%NetBSD.org@localhost>
date:      Mon Oct 29 01:32:59 2001 +0000

description:
Set up irq16 (FPGA interrupt) and irq17 (SMI interrupt) for the keyboard
and mouse.

diffstat:

 sys/arch/walnut/walnut/extintr.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r de95716df5cb -r c9ffaaf9d111 sys/arch/walnut/walnut/extintr.c
--- a/sys/arch/walnut/walnut/extintr.c  Mon Oct 29 01:31:11 2001 +0000
+++ b/sys/arch/walnut/walnut/extintr.c  Mon Oct 29 01:32:59 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extintr.c,v 1.1 2001/06/13 06:02:01 simonb Exp $       */
+/*     $NetBSD: extintr.c,v 1.2 2001/10/29 01:32:59 simonb Exp $       */
 /*      $OpenBSD: isabus.c,v 1.1 1997/10/11 11:53:00 pefo Exp $ */
 
 /*
@@ -171,6 +171,8 @@
        GALAXY_INTR_MTXD,
        GALAXY_INTR_MRXD,
        GALAXY_INTR_ETH,
+       WALNUT_INTR_FPGA,       /* keyboard irq16 */
+       WALNUT_INTR_SMI         /* mouse irq17 */
 };
 #define        GALAXY_INTR_SIZE        (sizeof (galaxy_intr_map) / sizeof (galaxy_intr_map[0]))
 #define HWIRQ_MASK     0xfefe  /* Mask sw interrupts in use */
@@ -178,7 +180,7 @@
 /* map MSR bit into sw irq#. */
 static int hw2swirq[32] =
 {
-        1,  2,  3,  4, -1, -1, -1, -1,
+        1,  2,  3,  4, 17, 16, -1, -1,
        -1, -1, -1, -1, -1, -1, -1, -1,
        15, 14, 13, 12, 11, 10,  9, -1,
        -1, -1, -1, -1, -1,  7,  6,  5



Home | Main Index | Thread Index | Old Index