summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2011-05-30 22:16:29 +0000
committerkettenis <kettenis@openbsd.org>2011-05-30 22:16:29 +0000
commit74a3ff936676210bf94770b41c910d9fb99132df (patch)
tree685217a00a25e501455ec16fefe2ace042dba830
parentAdd mmuagp. a driver for the agp chipsets on early amd64 machines. (diff)
downloadwireguard-openbsd-74a3ff936676210bf94770b41c910d9fb99132df.tar.xz
wireguard-openbsd-74a3ff936676210bf94770b41c910d9fb99132df.zip
Enable MSI.
tested by weerd@
-rw-r--r--sys/dev/pci/ppb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c
index 3e671c6515d..805966a98b9 100644
--- a/sys/dev/pci/ppb.c
+++ b/sys/dev/pci/ppb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppb.c,v 1.49 2011/05/14 13:23:38 kettenis Exp $ */
+/* $OpenBSD: ppb.c,v 1.50 2011/05/30 22:16:29 kettenis Exp $ */
/* $NetBSD: ppb.c,v 1.16 1997/06/06 23:48:05 thorpej Exp $ */
/*
@@ -169,7 +169,8 @@ ppbattach(struct device *parent, struct device *self, void *aux)
/* Check for PCI Express capabilities and setup hotplug support. */
if (pci_get_capability(pc, pa->pa_tag, PCI_CAP_PCIEXPRESS,
&sc->sc_cap_off, &reg) && (reg & PCI_PCIE_XCAP_SI)) {
- if (pci_intr_map(pa, &ih) == 0)
+ if (pci_intr_map_msi(pa, &ih) == 0 ||
+ pci_intr_map(pa, &ih) == 0)
sc->sc_intrhand = pci_intr_establish(pc, ih, IPL_BIO,
ppb_intr, sc, self->dv_xname);