summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorKevin Lo <kevlo@cvs.openbsd.org>2011-06-17 07:14:36 +0000
committerKevin Lo <kevlo@cvs.openbsd.org>2011-06-17 07:14:36 +0000
commita6a6e0bba831d8310672ec709c9efdfd9ee7eaef (patch)
tree63c55dbb76ab7bd50f279bdbe47a3e1c7b571af6 /sys/dev/pci
parent588580a3636f1d2f89071c40a24811393a93accc (diff)
Enable MSI support; tested by Thomas Pfaff
From Brad
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_age.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_age.c b/sys/dev/pci/if_age.c
index cca30843fd2..812e9abe56b 100644
--- a/sys/dev/pci/if_age.c
+++ b/sys/dev/pci/if_age.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_age.c,v 1.14 2011/05/28 08:28:41 kevlo Exp $ */
+/* $OpenBSD: if_age.c,v 1.15 2011/06/17 07:14:35 kevlo Exp $ */
/*-
* Copyright (c) 2008, Pyun YongHyeon <yongari@FreeBSD.org>
@@ -163,7 +163,7 @@ age_attach(struct device *parent, struct device *self, void *aux)
return;
}
- 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");
goto fail;
}