summaryrefslogtreecommitdiffstats
path: root/sys/dev/sound/pci
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-10-09 03:50:27 +0000
committerimp <imp@FreeBSD.org>1999-10-09 03:50:27 +0000
commite07a5548680fbf31bb4da163df25767fb92e0629 (patch)
tree966c52805bcd82a8807cbe42c6daad324a8efcce /sys/dev/sound/pci
parent117aa238f6bd0423bf34de7f62b6410ac1f8d6a7 (diff)
downloadFreeBSD-src-e07a5548680fbf31bb4da163df25767fb92e0629.zip
FreeBSD-src-e07a5548680fbf31bb4da163df25767fb92e0629.tar.gz
Allow interrupt sharing by allocating the interrupt RF_SHAREABLE.
This allows newpcm to grok my es1370 based card, which shared interrupts with the ethernet card.
Diffstat (limited to 'sys/dev/sound/pci')
-rw-r--r--sys/dev/sound/pci/es137x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sound/pci/es137x.c b/sys/dev/sound/pci/es137x.c
index 778a06b..4bd8cd6 100644
--- a/sys/dev/sound/pci/es137x.c
+++ b/sys/dev/sound/pci/es137x.c
@@ -486,7 +486,7 @@ es_pci_attach(device_t dev)
irqid = 0;
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
- 0, ~0, 1, RF_ACTIVE);
+ 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
if (!irq
|| bus_setup_intr(dev, irq, INTR_TYPE_TTY, es_intr, es, &ih)) {
device_printf(dev, "unable to map interrupt\n");
OpenPOWER on IntegriCloud