Module Name:    src
Committed By:   thorpej
Date:           Fri Jun 25 13:32:39 UTC 2021

Modified Files:
        src/sys/arch/alpha/pci: sioreg.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/alpha/pci/sioreg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/pci/sioreg.h
diff -u src/sys/arch/alpha/pci/sioreg.h:1.2 src/sys/arch/alpha/pci/sioreg.h:1.3
--- src/sys/arch/alpha/pci/sioreg.h:1.2	Mon Apr  7 02:00:07 1997
+++ src/sys/arch/alpha/pci/sioreg.h	Fri Jun 25 13:32:39 2021
@@ -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)
  */

Reply via email to