mb/google/nissa/var/rull: Add 6W and 15W DPTF parameters
[coreboot.git] / src / soc / intel / braswell / acpi / irq_helper.h
blob4c29a85522bde79a39445c4fbfb95ab4826df506
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
6 #undef PIRQ_PIC_ROUTES
7 #undef PIRQ_PIC
9 #if defined(PIC_MODE)
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 }
19 #endif
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. */
31 #include "irqroute.h"