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:
parent
117aa238f6
commit
e07a554868
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user