diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2014-09-23 21:16:43 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2014-09-23 21:16:43 +0000 |
commit | 7765166403e6680b36e8f340204bb4fcdb196605 (patch) | |
tree | 971e3bfb4980b6694bdc805ee24886dd1cae9944 | |
parent | c30bb742cbf396d18d880936820ec09e66116934 (diff) |
Enable MSI support.
Tested with a number of chipsets.
-rw-r--r-- | sys/dev/pci/if_msk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c index 78e8b9b998d..218cc082eb9 100644 --- a/sys/dev/pci/if_msk.c +++ b/sys/dev/pci/if_msk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_msk.c,v 1.106 2014/07/22 13:12:11 mpi Exp $ */ +/* $OpenBSD: if_msk.c,v 1.107 2014/09/23 21:16:42 brad Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1131,7 +1131,7 @@ mskc_attach(struct device *parent, struct device *self, void *aux) DPRINTFN(2, ("mskc_attach: allocate interrupt\n")); /* Allocate interrupt */ - if (pci_intr_map(pa, &ih)) { + if (pci_intr_map_msi(pa, &ih) != 0 && pci_intr_map(pa, &ih) != 0) { printf(": couldn't map interrupt\n"); goto fail_1; } |