Make interrupts shareable with RF_SHAREABLE. This is untested, but
it compiles and should just work.
This commit is contained in:
parent
c3c2c94e00
commit
a832055165
@ -623,7 +623,7 @@ au_pci_attach(device_t dev)
|
|||||||
|
|
||||||
irqid = 0;
|
irqid = 0;
|
||||||
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
|
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
|
||||||
0, ~0, 1, RF_ACTIVE);
|
0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
|
||||||
if (!irq
|
if (!irq
|
||||||
|| bus_setup_intr(dev, irq, INTR_TYPE_TTY, au_intr, au, &ih)) {
|
|| bus_setup_intr(dev, irq, INTR_TYPE_TTY, au_intr, au, &ih)) {
|
||||||
device_printf(dev, "unable to map interrupt\n");
|
device_printf(dev, "unable to map interrupt\n");
|
||||||
|
@ -623,7 +623,7 @@ au_pci_attach(device_t dev)
|
|||||||
|
|
||||||
irqid = 0;
|
irqid = 0;
|
||||||
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
|
irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
|
||||||
0, ~0, 1, RF_ACTIVE);
|
0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
|
||||||
if (!irq
|
if (!irq
|
||||||
|| bus_setup_intr(dev, irq, INTR_TYPE_TTY, au_intr, au, &ih)) {
|
|| bus_setup_intr(dev, irq, INTR_TYPE_TTY, au_intr, au, &ih)) {
|
||||||
device_printf(dev, "unable to map interrupt\n");
|
device_printf(dev, "unable to map interrupt\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user