summaryrefslogtreecommitdiff
path: root/sys/arch/i386/pci/pci_machdep.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-27 04:59:41 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-01-27 04:59:41 +0000
commit5c57fe9fedb6369715d919d0344f713e6fb24bbb (patch)
treee0c60f0edcd71325f7e72c710edff8dad38ee6d0 /sys/arch/i386/pci/pci_machdep.h
parent3c7b4c90f16918cee171cdce87a4fd2caba5078b (diff)
change interrupt routing strategy from simple
run through the devices and programming the icu and pci headers before real pci bus autoconf starts and include all devices present on all pci busses, to a per attached device routing in pci_intr_map(). this solves several cases of premature interrupts hanging system due to absent interrupt handlers during autoconf. 10x for testing: millert@ krw@ aaron@ chris@ tholo@ brad@ jason@ deraadt@
Diffstat (limited to 'sys/arch/i386/pci/pci_machdep.h')
-rw-r--r--sys/arch/i386/pci/pci_machdep.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pci_machdep.h b/sys/arch/i386/pci/pci_machdep.h
index 166c959cb40..a3769766052 100644
--- a/sys/arch/i386/pci/pci_machdep.h
+++ b/sys/arch/i386/pci/pci_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci_machdep.h,v 1.6 2000/08/08 19:12:48 mickey Exp $ */
+/* $OpenBSD: pci_machdep.h,v 1.7 2001/01/27 04:59:40 mickey Exp $ */
/* $NetBSD: pci_machdep.h,v 1.7 1997/06/06 23:29:18 thorpej Exp $ */
/*
@@ -62,7 +62,13 @@ extern struct i386_bus_dma_tag pci_bus_dma_tag;
*/
typedef void *pci_chipset_tag_t;
typedef union i386_pci_tag_u pcitag_t;
-typedef int pci_intr_handle_t;
+
+typedef
+struct {
+ pcitag_t tag;
+ int line, pin;
+ void *link;
+} pci_intr_handle_t;
/*
* i386-specific PCI variables and functions.