Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic add INT_PENDING macro



details:   https://anonhg.NetBSD.org/src/rev/eca1a21eb27e
branches:  trunk
changeset: 477227:eca1a21eb27e
user:      mjacob <mjacob%NetBSD.org@localhost>
date:      Sun Oct 17 01:37:12 1999 +0000

description:
add INT_PENDING macro

diffstat:

 sys/dev/ic/ispreg.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 6a019be40d41 -r eca1a21eb27e sys/dev/ic/ispreg.h
--- a/sys/dev/ic/ispreg.h       Sun Oct 17 01:23:21 1999 +0000
+++ b/sys/dev/ic/ispreg.h       Sun Oct 17 01:37:12 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ispreg.h,v 1.16 1999/07/05 20:31:36 mjacob Exp $ */
+/* $NetBSD: ispreg.h,v 1.17 1999/10/17 01:37:12 mjacob Exp $ */
 /* release_6_5_99 */
 /*
  * Copyright (C) 1997, 1998, 1999 National Aeronautics & Space Administration
@@ -223,6 +223,8 @@
 #define        BIU2100_ISR_RXDMA_INT_PENDING   0x0002  /* Global interrupt pending */
 #define        BIU2100_ISR_TXDMA_INT_PENDING   0x0001  /* Global interrupt pending */
 
+#define        INT_PENDING(isp, isr)   (IS_FC(isp)? \
+       ((isr & BIU2100_ISR_RISC_INT) != 0) : ((isr & BIU_ISR_RISC_INT) != 0))
 
 /* BUS SEMAPHORE REGISTER */
 #define        BIU_SEMA_STATUS         0x0002  /* Semaphore Status Bit */



Home | Main Index | Thread Index | Old Index