Lines Matching full:irq
70 * IRQ 1
73 * IRQ 1
245 * Only use the current value if there's one IRQ. Some in link_add_crs()
250 if (res->Data.Irq.InterruptCount == 1) in link_add_crs()
251 link->l_irq = res->Data.Irq.Interrupts[0]; in link_add_crs()
256 * An IRQ of zero means that the link isn't routed. in link_add_crs()
343 bcopy(res, tmp, ACPI_RS_SIZE(tmp->Data.Irq)); in link_add_prs()
344 link->l_num_irqs = res->Data.Irq.InterruptCount; in link_add_prs()
345 irqs = res->Data.Irq.Interrupts; in link_add_prs()
371 * If this is not an ISA IRQ but _CRS used a non-extended in link_add_prs()
372 * IRQ descriptor, don't use _CRS as a template for _SRS. in link_add_prs()
391 link_valid_irq(struct link *link, int irq) in link_valid_irq() argument
398 if (!PCI_INTERRUPT_VALID(irq)) in link_valid_irq()
403 if (link->l_irqs[i] == irq) in link_valid_irq()
408 * an ISA interrupt, the SCI is always treated as a valid IRQ. in link_valid_irq()
410 if (link->l_isa_irq && AcpiGbl_FADT.SciInterrupt == irq && in link_valid_irq()
411 irq < NUM_ISA_INTERRUPTS) in link_valid_irq()
429 printf("%-16.16s Index IRQ Rtd Ref IRQs\n", buf); in acpi_pci_link_dump()
546 * Try to disable this link. If successful, set the current IRQ to in acpi_pci_link_attach()
549 * IRQ was routed by the BIOS. in acpi_pci_link_attach()
674 * (8259As). Thus, if this link is routed via an ISA IRQ, go in acpi_pci_link_add_reference()
675 * look to see if the BIOS routed an IRQ for this link at the in acpi_pci_link_add_reference()
676 * indicated (domain, bus, slot, pin). If so, we prefer that IRQ for in acpi_pci_link_add_reference()
677 * this link and add that IRQ to our list of known-good IRQs. in acpi_pci_link_add_reference()
680 * returned by _CRS if we can't find a valid IRQ via this method in acpi_pci_link_add_reference()
683 * If this link is not routed via an ISA IRQ (because we are using in acpi_pci_link_add_reference()
684 * APIC for example), then don't bother looking up the BIOS IRQ in acpi_pci_link_add_reference()
692 /* Try to find a BIOS IRQ setting from any matching devices. */ in acpi_pci_link_add_reference()
699 /* Validate the BIOS IRQ. */ in acpi_pci_link_add_reference()
701 device_printf(dev, "BIOS IRQ %u for %d.%d.INT%c is invalid\n", in acpi_pci_link_add_reference()
710 "BIOS IRQ %u does not match initial IRQ %u\n", in acpi_pci_link_add_reference()
714 "BIOS IRQ %u for %d.%d.INT%c does not match previous BIOS IRQ %u\n", in acpi_pci_link_add_reference()
743 /* Fill in IRQ resources via link structures. */ in acpi_pci_link_srs_from_crs()
773 res->Data.Irq.InterruptCount = 1; in acpi_pci_link_srs_from_crs()
776 ("%s: can't put non-ISA IRQ %d in legacy IRQ resource type", in acpi_pci_link_srs_from_crs()
778 res->Data.Irq.Interrupts[0] = link->l_irq; in acpi_pci_link_srs_from_crs()
780 res->Data.Irq.Interrupts[0] = 0; in acpi_pci_link_srs_from_crs()
818 /* Add a new IRQ resource from each link. */ in acpi_pci_link_srs_from_links()
821 /* Build an IRQ resource. */ in acpi_pci_link_srs_from_links()
823 ACPI_RS_SIZE(newres.Data.Irq)); in acpi_pci_link_srs_from_links()
824 newres.Data.Irq.InterruptCount = 1; in acpi_pci_link_srs_from_links()
827 ("%s: can't put non-ISA IRQ %d in legacy IRQ resource type", in acpi_pci_link_srs_from_links()
829 newres.Data.Irq.Interrupts[0] = link->l_irq; in acpi_pci_link_srs_from_links()
831 newres.Data.Irq.Interrupts[0] = 0; in acpi_pci_link_srs_from_links()
889 * Perform acpi_config_intr() on each IRQ resource if it was just in acpi_pci_link_route_irqs()
906 * weights if this link has a valid IRQ and was in acpi_pci_link_route_irqs()
959 * Pick an IRQ to use for this unrouted link.
970 ("%s: link already has an IRQ", __func__)); in acpi_pci_link_choose_irq()
976 "hw.pci.link.%s.%d.irq", link_name, link->l_res_index); in acpi_pci_link_choose_irq()
980 "Warning, IRQ %d is not listed as valid\n", in acpi_pci_link_choose_irq()
985 "hw.pci.link.%s.irq", link_name); in acpi_pci_link_choose_irq()
989 "Warning, IRQ %d is not listed as valid\n", in acpi_pci_link_choose_irq()
996 * If we have a valid BIOS IRQ, use that. We trust what the BIOS in acpi_pci_link_choose_irq()
1003 * If we don't have a BIOS IRQ but do have a valid IRQ from _CRS, in acpi_pci_link_choose_irq()
1029 * If this is an ISA IRQ, try using the SCI if it is also an ISA in acpi_pci_link_choose_irq()
1043 device_printf(dev, "Picked IRQ %u with weight %d\n", in acpi_pci_link_choose_irq()
1046 device_printf(dev, "Unable to choose an IRQ\n"); in acpi_pci_link_choose_irq()
1069 ("%s: link is routed but has an invalid IRQ", __func__)); in acpi_pci_link_route_interrupt()
1074 /* Choose an IRQ if we need one. */ in acpi_pci_link_route_interrupt()
1102 * If the SCI is an ISA IRQ, add it to the bitmask of known good in acpi_pci_link_identify()