Home | History | Annotate | Download | only in acpi

Lines Matching refs:Irq

75  * IRQ			1
78 * IRQ 1
224 * Only use the current value if there's one IRQ. Some
229 if (res->Data.Irq.InterruptCount == 1) {
230 link->l_irq = res->Data.Irq.Interrupts[0];
231 link->l_trig = res->Data.Irq.Triggering;
232 link->l_pol = res->Data.Irq.Polarity;
241 * An IRQ of zero means that the link isn't routed.
326 memcpy(tmp, res, ACPI_RS_SIZE(tmp->Data.Irq));
327 link->l_num_irqs = res->Data.Irq.InterruptCount;
328 link->l_trig = res->Data.Irq.Triggering;
329 link->l_pol = res->Data.Irq.Polarity;
330 irqs = res->Data.Irq.Interrupts;
368 link_valid_irq(struct link *link, int irq)
373 if (!PCI_INTERRUPT_VALID(irq))
378 if (link->l_irqs[i] == irq)
383 * an ISA interrupt, the SCI is always treated as a valid IRQ.
385 if (link->l_isa_irq && AcpiGbl_FADT.SciInterrupt == irq &&
386 irq < NUM_ISA_INTERRUPTS)
410 printf("Index IRQ Rtd Ref IRQs\n");
528 * Try to disable this link. If successful, set the current IRQ to
531 * IRQ was routed by the BIOS.
688 * (8259As). Thus, if this link is routed via an ISA IRQ, go
689 * look to see if the BIOS routed an IRQ for this link at the
690 * indicated (bus, slot, pin). If so, we prefer that IRQ for
691 * this link and add that IRQ to our list of known-good IRQs.
694 * returned by _CRS if we can't find a valid IRQ via this method
697 * If this link is not routed via an ISA IRQ (because we are using
698 * APIC for example), then don't bother looking up the BIOS IRQ
706 /* Try to find a BIOS IRQ setting from any matching devices. */
713 /* Validate the BIOS IRQ. */
715 printf("%s: BIOS IRQ %u for %d.%d.INT%c is invalid\n",
724 "%s: BIOS IRQ %u does not match initial IRQ %u\n",
728 "%s: BIOS IRQ %u for %d.%d.INT%c does not match "
729 "previous BIOS IRQ %u\n",
755 /* Fill in IRQ resources via link structures. */
783 res->Data.Irq.InterruptCount = 1;
786 res->Data.Irq.Interrupts[0] = link->l_irq;
787 res->Data.Irq.Triggering = link->l_trig;
788 res->Data.Irq.Polarity = link->l_pol;
790 res->Data.Irq.Interrupts[0] = 0;
831 /* Add a new IRQ resource from each link. */
835 /* Build an IRQ resource. */
837 ACPI_RS_SIZE(newres.Data.Irq));
838 newres.Data.Irq.InterruptCount = 1;
841 newres.Data.Irq.Interrupts[0] = link->l_irq;
842 newres.Data.Irq.Triggering = link->l_trig;
843 newres.Data.Irq.Polarity = link->l_pol;
845 newres.Data.Irq.Interrupts[0] = 0;
896 acpi_pci_link_route_irqs(struct acpi_pci_link_softc *sc, int *irq, int *pol,
912 * Perform acpi_config_intr() on each IRQ resource if it was just
929 * weights if this link has a valid IRQ and was
936 resource->Data.Irq.Triggering;
939 resource->Data.Irq.Polarity;
940 *irq = is_ext ?
942 resource->Data.Irq.Interrupts[0];
960 * Pick an IRQ to use for this unrouted link.
972 * If we have a valid BIOS IRQ, use that. We trust what the BIOS
979 * If we don't have a BIOS IRQ but do have a valid IRQ from _CRS,
1005 * If this is an ISA IRQ, try using the SCI if it is also an ISA
1018 aprint_verbose("%s: Picked IRQ %u with weight %d\n",
1021 printf("%s: Unable to choose an IRQ\n", sc->pl_name);
1027 int *irq, int *pol, int *trig)
1046 *irq = link->l_irq;
1053 *irq = link->l_irq;
1068 acpi_pci_link_route_irqs(sc, irq, pol, trig);
1101 * If the SCI is an ISA IRQ, add it to the bitmask of known good