1 /* SPDX-License-Identifier: GPL-2.0-only */
3 Field (\_SB.PCI0.LPCB.PCIC, AnyAcc, NoLock, Preserve)
5 Offset (0x60), // Interrupt Routing Registers
12 Name(IRQB, ResourceTemplate(){
13 IRQ(Level,ActiveLow,Shared){15}
16 Name(IRQP, ResourceTemplate(){
17 IRQ(Level,ActiveLow,Exclusive){3, 4, 5, 6, 7, 10, 11, 12}
20 /* adapted from ma78gm/dsdt.asl */
21 #define PCI_INTX_DEV(intx, pinx, uid) \
23 Name(_HID, EISAID("PNP0C0F")) \
42 CreateWordField(IRQB, 1, IRQN) \
43 IRQN = 1 << (pinx & 0x0f) \
48 CreateWordField(ARG0, 1, IRQM) \
50 /* Use lowest available IRQ */ \
51 FindSetRightBit(IRQM, Local0) \
59 PCI_INTX_DEV(LNKA, PRTA, 1)
60 PCI_INTX_DEV(LNKB, PRTB, 2)
61 PCI_INTX_DEV(LNKC, PRTC, 3)
62 PCI_INTX_DEV(LNKD, PRTD, 4)