summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci/piixreg.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-28 23:12:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-03-28 23:12:34 +0000
commitda4cffdbc5629fbedc62a02d5a625dc617384492 (patch)
treef65423b9e747e71dfcd5eafe4142a9b2e5dd0087 /sys/arch/i386/pci/piixreg.h
parent5356e6c9c88ca480ae5d62d11d090dcb5ef65775 (diff)
add support for the i830 that has 8 pci irq lines configure by the extra 0x68 pci config reg. does not change the behaviour for the other chipsets; ho@ testing
Diffstat (limited to 'sys/arch/i386/pci/piixreg.h')
-rw-r--r--sys/arch/i386/pci/piixreg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/pci/piixreg.h b/sys/arch/i386/pci/piixreg.h
index 25ec3a22c8b..8e60d3d8fb0 100644
--- a/sys/arch/i386/pci/piixreg.h
+++ b/sys/arch/i386/pci/piixreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: piixreg.h,v 1.3 2000/03/28 03:37:59 mickey Exp $ */
+/* $OpenBSD: piixreg.h,v 1.4 2003/03/28 23:12:33 mickey Exp $ */
/* $NetBSD: piixreg.h,v 1.1 1999/11/17 01:21:21 thorpej Exp $ */
/*
@@ -33,16 +33,17 @@
/*
* PIRQ[3:0]# - PIRQ ROUTE CONTROL REGISTERS
*
- * PCI Configuration registers 0x60, 0x61, 0x62, 0x63
+ * PCI Configuration registers 0x60-0x63, 0x68-0x6b
*/
-#define PIIX_LEGAL_LINK(link) ((link) >= 0 && (link) <= 3)
+#define PIIX_LEGAL_LINK(link) ((link) >= 0 && (link) <= 7)
#define PIIX_PIRQ_MASK 0xdef8
#define PIIX_LEGAL_IRQ(irq) ((irq) >= 0 && (irq) <= 15 && \
((1 << (irq)) & PIIX_PIRQ_MASK) != 0)
#define PIIX_CFG_PIRQ 0x60 /* PCI configuration space */
+#define PIIX_CFG_PIRQH 0x68
#define PIIX_CFG_PIRQ_NONE 0x80
#define PIIX_CFG_PIRQ_MASK 0x0f
#define PIIX_PIRQ(reg, x) (((reg) >> ((x) << 3)) & 0xff)