From a6a6e0bba831d8310672ec709c9efdfd9ee7eaef Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 17 Jun 2011 07:14:36 +0000 Subject: Enable MSI support; tested by Thomas Pfaff From Brad --- sys/dev/pci/if_age.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/pci') 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 @@ -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; } -- cgit v1.2.3