From fa17bf1d80dcc74dedd99042457d147f1a4c6a7c Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Fri, 25 Jun 2004 08:57:11 +0000 Subject: Provide information about the raw (unswizzled) intrrupt pin in pci_attach_args. drahn@ deraadt@ ok --- sys/dev/pci/pci.c | 3 ++- sys/dev/pci/pcivar.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 */ }; /* -- cgit v1.2.3