From c8dbea30fae8127e6e60637f53c5c0aaf21710a8 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 9 Jun 2011 04:55:45 +0000 Subject: MSI interrupts work here, too. --- sys/dev/pci/mpi_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/mpi_pci.c b/sys/dev/pci/mpi_pci.c index 844f7ee63c9..a92a15eac8e 100644 --- a/sys/dev/pci/mpi_pci.c +++ b/sys/dev/pci/mpi_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi_pci.c,v 1.23 2008/11/23 12:45:11 dlg Exp $ */ +/* $OpenBSD: mpi_pci.c,v 1.24 2011/06/09 04:55:44 deraadt Exp $ */ /* * Copyright (c) 2005 David Gwynne @@ -137,7 +137,7 @@ mpi_pci_attach(struct device *parent, struct device *self, void *aux) PWRITE(psc, PCI_ROM_REG, PREAD(psc, PCI_ROM_REG) & ~PCI_ROM_ENABLE); /* hook up the interrupt */ - if (pci_intr_map(pa, &ih)) { + if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) { printf(": unable to map interrupt\n"); goto unmap; } -- cgit v1.2.3