diff options
author | 2011-06-09 04:55:44 +0000 | |
---|---|---|
committer | 2011-06-09 04:55:44 +0000 | |
commit | 69ec6bd66c909fd3338a54812808b700e1d5066e (patch) | |
tree | 53894afc8ddb7fbc6dcc56b211da60353774a91e /sys/dev/pci/mpi_pci.c | |
parent | spacing (diff) | |
download | wireguard-openbsd-69ec6bd66c909fd3338a54812808b700e1d5066e.tar.xz wireguard-openbsd-69ec6bd66c909fd3338a54812808b700e1d5066e.zip |
MSI interrupts work here, too.
Diffstat (limited to 'sys/dev/pci/mpi_pci.c')
-rw-r--r-- | sys/dev/pci/mpi_pci.c | 4 |
1 files 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 <dlg@openbsd.org> @@ -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; } |