Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sh3/sh3 intc_intr_priority: map DMAC and IRDA inter...
details: https://anonhg.NetBSD.org/src/rev/5a4172bc6ab5
branches: trunk
changeset: 559872:5a4172bc6ab5
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Mar 25 01:25:08 2004 +0000
description:
intc_intr_priority: map DMAC and IRDA interrupts.
diffstat:
sys/arch/sh3/sh3/interrupt.c | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diffs (55 lines):
diff -r f866d1f900d5 -r 5a4172bc6ab5 sys/arch/sh3/sh3/interrupt.c
--- a/sys/arch/sh3/sh3/interrupt.c Thu Mar 25 01:13:32 2004 +0000
+++ b/sys/arch/sh3/sh3/interrupt.c Thu Mar 25 01:25:08 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: interrupt.c,v 1.12 2003/11/20 01:22:19 uwe Exp $ */
+/* $NetBSD: interrupt.c,v 1.13 2004/03/25 01:25:08 uwe Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.12 2003/11/20 01:22:19 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: interrupt.c,v 1.13 2004/03/25 01:25:08 uwe Exp $");
#include <sys/param.h>
#include <sys/malloc.h>
@@ -175,7 +175,7 @@
/*
* int intc_intr_priority(int evtcode, int level)
- * Setup interrupt priority register. Returns old level.
+ * Setup interrupt priority register.
* SH7708, SH7708S, SH7708R, SH7750, SH7750S ... evtcode is INTEVT
* SH7709, SH7709A ... evtcode is INTEVT2
*/
@@ -251,6 +251,18 @@
case SH7709_INTEVT2_IRQ4:
SH7709_IPR(D, 0);
break;
+ case SH7709_INTEVT2_DEI0:
+ case SH7709_INTEVT2_DEI1:
+ case SH7709_INTEVT2_DEI2:
+ case SH7709_INTEVT2_DEI3:
+ SH7709_IPR(E, 12);
+ break;
+ case SH7709_INTEVT2_IRDA_ERI:
+ case SH7709_INTEVT2_IRDA_RXI:
+ case SH7709_INTEVT2_IRDA_BRI:
+ case SH7709_INTEVT2_IRDA_TXI:
+ SH7709_IPR(E, 8);
+ break;
case SH7709_INTEVT2_SCIF_ERI:
case SH7709_INTEVT2_SCIF_RXI:
case SH7709_INTEVT2_SCIF_BRI:
@@ -272,7 +284,7 @@
}
/*
- * XXX: This functions gets called even for interrupts which
+ * XXX: This function gets called even for interrupts that
* don't have their priority defined by IPR registers.
*/
if (pos < 0)
Home |
Main Index |
Thread Index |
Old Index