Allow routing to the SCI even if it's not in the list of valid IRQs.

MFC if:		no problems
This commit is contained in:
Nate Lawson 2004-09-25 06:15:56 +00:00
parent 5dc9afc584
commit 6e1151b6ab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135785

View File

@ -563,6 +563,16 @@ acpi_pci_link_is_valid_irq(struct acpi_pci_link_entry *link, UINT8 irq)
if (irq == 0)
return (FALSE);
/*
* Some systems have the initial irq set to the SCI but don't list
* it in the valid IRQs. Add a special case to allow routing to the
* SCI if the system really wants to. This is similar to how
* Windows often stacks all PCI IRQs on the SCI (and this is vital
* on some systems.)
*/
if (irq == AcpiGbl_FADT->SciInt)
return (TRUE);
for (i = 0; i < link->number_of_interrupts; i++) {
if (link->interrupts[i] == irq)
return (TRUE);