diff options
author | 2011-05-30 22:16:29 +0000 | |
---|---|---|
committer | 2011-05-30 22:16:29 +0000 | |
commit | 74a3ff936676210bf94770b41c910d9fb99132df (patch) | |
tree | 685217a00a25e501455ec16fefe2ace042dba830 | |
parent | Add mmuagp. a driver for the agp chipsets on early amd64 machines. (diff) | |
download | wireguard-openbsd-74a3ff936676210bf94770b41c910d9fb99132df.tar.xz wireguard-openbsd-74a3ff936676210bf94770b41c910d9fb99132df.zip |
Enable MSI.
tested by weerd@
-rw-r--r-- | sys/dev/pci/ppb.c | 5 |
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 & 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); |