Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/evbarm/iq80310 Add macros to convert an "IRQ" numbe...



details:   https://anonhg.NetBSD.org/src/rev/479bd682aa9a
branches:  trunk
changeset: 537627:479bd682aa9a
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Oct 03 20:11:42 2002 +0000

description:
Add macros to convert an "IRQ" number to its respective XINT3/XINT0 bit.

diffstat:

 sys/arch/evbarm/iq80310/iq80310var.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r eee045ba4909 -r 479bd682aa9a sys/arch/evbarm/iq80310/iq80310var.h
--- a/sys/arch/evbarm/iq80310/iq80310var.h      Thu Oct 03 20:10:40 2002 +0000
+++ b/sys/arch/evbarm/iq80310/iq80310var.h      Thu Oct 03 20:11:42 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: iq80310var.h,v 1.5 2002/02/07 21:34:24 thorpej Exp $   */
+/*     $NetBSD: iq80310var.h,v 1.6 2002/10/03 20:11:42 thorpej Exp $   */
 
 /*
  * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@@ -79,7 +79,12 @@
  * XINT3 bits 0-4 are "IRQ 0-4".  XINT0 bits 0-2 are "IRQ 5-7".
  */
 #define        XINT3_IRQ(x)    (x)
+#define        IRQ_IS_XINT3(x) ((x) >= 0 && (x) <= 4)
+#deifne        IRQ_XINT3(x)    (x)
+
 #define        XINT0_IRQ(x)    ((x) + 5)
+#define        IRQ_IS_XINT0(x) ((x) >= 5 && (x) <= 7)
+#define        IRQ_XINT0(x)    ((x) - 5)
 
 void   iq80310_calibrate_delay(void);
 



Home | Main Index | Thread Index | Old Index