Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/pci Define macros to desribe the PIRQ_RTCTRL ...



details:   https://anonhg.NetBSD.org/src/rev/8fc71c604c69
branches:  trunk
changeset: 984164:8fc71c604c69
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jun 25 13:32:39 2021 +0000

description:
Define macros to desribe the PIRQ_RTCTRL register(s).

diffstat:

 sys/arch/alpha/pci/sioreg.h |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r b9e4ca2a093f -r 8fc71c604c69 sys/arch/alpha/pci/sioreg.h
--- a/sys/arch/alpha/pci/sioreg.h       Fri Jun 25 08:41:09 2021 +0000
+++ b/sys/arch/alpha/pci/sioreg.h       Fri Jun 25 13:32:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sioreg.h,v 1.2 1997/04/07 02:00:07 cgd Exp $ */
+/* $NetBSD: sioreg.h,v 1.3 2021/06/25 13:32:39 thorpej Exp $ */
 
 /*
  * Copyright (c) 1996 BBN Corporation.
@@ -83,6 +83,13 @@
 #define        SIO_PCIREG_PIRQ3        0x63    /* PIRQ3 Route Control */
 #define        SIO_PCIREG_PIRQ_RTCTRL  SIO_PCIREG_PIRQ0
 
+       /* extract the PIRQx field from 32-bit reg */
+#define        PIRQ_RTCTRL_PIRQx(r, p) (((r) >> ((p) * 8)) & 0xff)
+
+       /* bits within each PIRQx field */
+#define        PIRQ_RTCTRL_NOT_ROUTED  __BIT(7)    /* 0 == interrupt routed */
+#define        PIRQ_RTCTRL_IRQ         __BITS(0,3) /* PIRQ routed to this ISA IRQ */
+
 /*
  * System Management Interrupt (SMI)
  */



Home | Main Index | Thread Index | Old Index