summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2011-05-29 22:13:11 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2011-05-29 22:13:11 +0000
commit5b370e4286848866a756e19c01414e4643cf998d (patch)
treed38e38cf92621e3ebb0031683a73451d53c3cbc2
parent9d9e910826711b47c7b14064612f5957e8598854 (diff)
Add MSI support.
ok dlg@, oga@
-rw-r--r--sys/dev/pci/if_re_pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_re_pci.c b/sys/dev/pci/if_re_pci.c
index 817da7803d7..54aa0433365 100644
--- a/sys/dev/pci/if_re_pci.c
+++ b/sys/dev/pci/if_re_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_re_pci.c,v 1.32 2011/04/03 15:36:02 jasper Exp $ */
+/* $OpenBSD: if_re_pci.c,v 1.33 2011/05/29 22:13:10 kettenis Exp $ */
/*
* Copyright (c) 2005 Peter Valchev <pvalchev@openbsd.org>
@@ -181,7 +181,7 @@ re_pci_attach(struct device *parent, struct device *self, void *aux)
}
/* Allocate interrupt */
- if (pci_intr_map(pa, &ih)) {
+ if (pci_intr_map_msi(pa, &ih) && pci_intr_map(pa, &ih)) {
printf(": couldn't map interrupt\n");
return;
}