From 71c8e398938b113f0a190da52d5e877252326109 Mon Sep 17 00:00:00 2001 From: Kevin Lo Date: Fri, 17 Jun 2011 07:16:43 +0000 Subject: Enable MSI support; tested by krw@, Mark Peoples, and Abel Abraham Camarillo Ojeda. From Brad --- sys/dev/pci/if_alc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/pci/if_alc.c b/sys/dev/pci/if_alc.c index 7ec19fd9962..75447886762 100644 --- a/sys/dev/pci/if_alc.c +++ b/sys/dev/pci/if_alc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_alc.c,v 1.14 2011/05/27 07:45:44 kevlo Exp $ */ +/* $OpenBSD: if_alc.c,v 1.15 2011/06/17 07:16:42 kevlo Exp $ */ /*- * Copyright (c) 2009, Pyun YongHyeon * All rights reserved. @@ -653,7 +653,7 @@ alc_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