summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2004-06-25 08:57:11 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2004-06-25 08:57:11 +0000
commitfa17bf1d80dcc74dedd99042457d147f1a4c6a7c (patch)
treebc15ab06fafebb6f7e40202b3bbd85dffdb3d974 /sys/dev
parentb931374cf34889aaeeb87e3d70dd7c41e3d593bf (diff)
Provide information about the raw (unswizzled) intrrupt pin in
pci_attach_args. drahn@ deraadt@ ok
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/pci.c3
-rw-r--r--sys/dev/pci/pcivar.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index 7112fdc8f2d..b897f7b15e4 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pci.c,v 1.33 2003/04/27 11:22:53 ho Exp $ */
+/* $OpenBSD: pci.c,v 1.34 2004/06/25 08:57:10 art Exp $ */
/* $NetBSD: pci.c,v 1.31 1997/06/06 23:48:04 thorpej Exp $ */
/*
@@ -261,6 +261,7 @@ pciattach(parent, self, aux)
}
#endif
pin = PCI_INTERRUPT_PIN(intr);
+ pa.pa_rawintrpin = pin;
if (pin == PCI_INTERRUPT_PIN_NONE) {
/* no interrupt */
pa.pa_intrpin = 0;
diff --git a/sys/dev/pci/pcivar.h b/sys/dev/pci/pcivar.h
index ba13a29e04f..004cc040cab 100644
--- a/sys/dev/pci/pcivar.h
+++ b/sys/dev/pci/pcivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcivar.h,v 1.35 2004/01/31 15:22:26 drahn Exp $ */
+/* $OpenBSD: pcivar.h,v 1.36 2004/06/25 08:57:10 art Exp $ */
/* $NetBSD: pcivar.h,v 1.23 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -136,6 +136,7 @@ struct pci_attach_args {
pcitag_t pa_intrtag; /* intr. appears to come from here */
pci_intr_pin_t pa_intrpin; /* intr. appears on this pin */
pci_intr_line_t pa_intrline; /* intr. routing information */
+ pci_intr_pin_t pa_rawintrpin; /* unswizzled pin */
};
/*