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.
This commit is contained in:
imp 1999-10-09 03:50:27 +00:00
parent 117aa238f6
commit e07a554868
3 changed files with 3 additions and 3 deletions

View File

@ -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");

View File

@ -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");

View File

@ -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");