Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm26/include Provide friendly names for the IRQs a...



details:   https://anonhg.NetBSD.org/src/rev/325ad7013b7c
branches:  trunk
changeset: 500295:325ad7013b7c
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Dec 09 15:16:01 2000 +0000

description:
Provide friendly names for the IRQs as they're wired in normal machines.

diffstat:

 sys/arch/arm26/include/irq.h |  30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diffs (54 lines):

diff -r a607db198b76 -r 325ad7013b7c sys/arch/arm26/include/irq.h
--- a/sys/arch/arm26/include/irq.h      Sat Dec 09 13:30:25 2000 +0000
+++ b/sys/arch/arm26/include/irq.h      Sat Dec 09 15:16:01 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irq.h,v 1.2 2000/08/22 21:27:22 bjh21 Exp $ */
+/* $NetBSD: irq.h,v 1.3 2000/12/09 15:16:01 bjh21 Exp $ */
 /*-
  * Copyright (c) 2000 Ben Harris
  * All rights reserved.
@@ -27,12 +27,39 @@
  */
 /* This file is part of NetBSD/arm26 -- a port of NetBSD to ARM2/3 machines. */
 
+#ifndef _ARM26_IRQ_H
+#define _ARM26_IRQ_H
+#include <arch/arm26/iobus/iocreg.h>
+
 /* return values from interrupt handlers */
 /* These are the same as arm32 uses */
 #define IRQ_HANDLED            1
 #define IRQ_NOT_HANDLED                0
 #define IRQ_MAYBE_HANDLED      -1
 
+/*
+ * These definitions specify how the devices are wired to the IOC
+ * interrupt lines.
+ */
+/* All systems */
+#define IRQ_PFIQ       IOC_IRQ_IL0     /* Podule FIQ request */
+#define        IRQ_SIRQ        IOC_IRQ_IL1     /* Sound buffer pointer used */
+#define IRQ_PIRQ       IOC_IRQ_IL5     /* Podule IRQ request */
+#define IRQ_VFLYBK     IOC_IRQ_IR      /* Start of display vertical flyback */
+/* Archimedes systems */
+#define IRQ_SLCI       IOC_IRQ_IL2     /* Serial line controller interrupt */
+#define IRQ_WIRQ       IOC_IRQ_IL3     /* Winchester interrupt request */
+#define IRQ_DCIRQ      IOC_IRQ_IL4     /* Disc change interrupt request */
+#define IRQ_PBSY       IOC_IRQ_IL6     /* Printer Busy Input */
+#define IRQ_RII                IOC_IRQ_IL7     /* Serial line ring indicator input */
+#define IRQ_PACK       IOC_IRQ_IF      /* Printer acknowledge input */
+/* IOEB systems */
+#define IRQ_SINTR      IOC_IRQ_IL2     /* Serial line interrupt */
+#define IRQ_IDEINTR    IOC_IRQ_IL3     /* IDE interrupt */
+#define IRQ_FINTR      IOC_IRQ_IL4     /* Floppy disc interrupt */
+#define IRQ_LPINTR     IOC_IRQ_IL6     /* Parallel port latched interrupt */
+#define IRQ_INDEX      IOC_IRQ_IF      /* Start of floppy disc index pulse */
+
 struct irq_handler;
 
 extern void irq_init __P((void));
@@ -44,3 +71,4 @@
 extern void irq_enable __P((struct irq_handler *h));
 extern void irq_disable __P((struct irq_handler *h));
 extern void irq_genmasks __P((void));
+#endif



Home | Main Index | Thread Index | Old Index