From 8414aaec0d0ad28a0f55f69f744c41176f577bdc Mon Sep 17 00:00:00 2001 From: dfr Date: Wed, 22 Jul 1998 08:40:46 +0000 Subject: [PATCH] Add a call to a platform-specific irq remapping function for alpha platforms which don't record the correct irqs in PCI config space. Submitted by: Andrew Gallatin --- sys/dev/pci/pci.c | 5 ++++- sys/pci/pci.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index a88ee896de8f..daa235a85d33 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.82 1998/04/01 21:07:36 tegge Exp $ + * $Id: pci.c,v 1.83 1998/06/07 17:12:42 dfr Exp $ * */ @@ -335,6 +335,9 @@ pci_readcfg(pcicfgregs *probe) cfg->lattimer = pci_cfgread(cfg, PCIR_LATTIMER, 1); cfg->intpin = pci_cfgread(cfg, PCIR_INTPIN, 1); cfg->intline = pci_cfgread(cfg, PCIR_INTLINE, 1); +#ifdef __alpha__ + alpha_platform_assign_pciintr(cfg); +#endif #ifdef APIC_IO if (cfg->intpin != 0) { diff --git a/sys/pci/pci.c b/sys/pci/pci.c index a88ee896de8f..daa235a85d33 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci.c,v 1.82 1998/04/01 21:07:36 tegge Exp $ + * $Id: pci.c,v 1.83 1998/06/07 17:12:42 dfr Exp $ * */ @@ -335,6 +335,9 @@ pci_readcfg(pcicfgregs *probe) cfg->lattimer = pci_cfgread(cfg, PCIR_LATTIMER, 1); cfg->intpin = pci_cfgread(cfg, PCIR_INTPIN, 1); cfg->intline = pci_cfgread(cfg, PCIR_INTLINE, 1); +#ifdef __alpha__ + alpha_platform_assign_pciintr(cfg); +#endif #ifdef APIC_IO if (cfg->intpin != 0) {