diff options
author | 2011-06-02 18:36:53 +0000 | |
---|---|---|
committer | 2011-06-02 18:36:53 +0000 | |
commit | b7f13f217aaae4fc19139ee67a60f5b0d2235c12 (patch) | |
tree | 0ea1babdcb636005fd180beb9a50e806254b31d1 /sys/dev | |
parent | Enable MSI. (diff) | |
download | wireguard-openbsd-b7f13f217aaae4fc19139ee67a60f5b0d2235c12.tar.xz wireguard-openbsd-b7f13f217aaae4fc19139ee67a60f5b0d2235c12.zip |
MSI for wpi(4).
``Reasonably confident that will work on all hardware, go ahead and
commit.'' kettenis (worst jinx ever)
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_wpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 1b3017313a7..f4f93b357b2 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_wpi.c,v 1.109 2010/09/07 16:21:45 deraadt Exp $ */ +/* $OpenBSD: if_wpi.c,v 1.110 2011/06/02 18:36:53 mk Exp $ */ /*- * Copyright (c) 2006-2008 @@ -215,7 +215,7 @@ wpi_attach(struct device *parent, struct device *self, void *aux) } /* Install interrupt handler. */ - if (pci_intr_map(pa, &ih) != 0) { + if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) { printf(": can't map interrupt\n"); return; } |