1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #undef PCI_DEV_PIRQ_ROUTES
4 #undef ACPI_DEV_APIC_IRQ
5 #undef PCI_DEV_PIRQ_ROUTE
11 #define ACPI_DEV_APIC_IRQ(dev_, pin_, pin_name_) \
12 Package() { ## dev_ ## ffff, pin_, \_SB.PCI0.LPCB.LNK ## pin_name_, 0 }
14 #else /* defined(PIC_MODE) */
16 #define ACPI_DEV_APIC_IRQ(dev_, pin_, pin_name_) \
17 Package() { ## dev_ ## ffff, pin_, 0, PIRQ ## pin_name_ ## _APIC_IRQ }
21 #define PCI_DEV_PIRQ_ROUTE(dev_, a_, b_, c_, d_) \
22 ACPI_DEV_APIC_IRQ(dev_, 0, a_), \
23 ACPI_DEV_APIC_IRQ(dev_, 1, b_), \
24 ACPI_DEV_APIC_IRQ(dev_, 2, c_), \
25 ACPI_DEV_APIC_IRQ(dev_, 3, d_)
27 /* Empty PIRQ_PIC definition. */
28 #define PIRQ_PIC(pirq_, pic_irq_)
30 /* Include the mainboard irq route definition. */