1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 3 #ifndef _INTERRUPT_H_ 4 #define _INTERRUPT_H_ 5 6 /* Number of all PCH devices */ 7 #define PCH_MAX_DEV_INT_CONFIG 64 8 9 /* Number of PxRC register in ITSS */ 10 #define PCH_PARC 0 11 #define PCH_PBRC 1 12 #define PCH_PCRC 2 13 #define PCH_PDRC 3 14 #define PCH_PERC 4 15 #define PCH_PFRC 5 16 #define PCH_PGRC 6 17 #define PCH_PHRC 7 18 #define PCH_MAX_IRQ_CONFIG 8 19 20 #define DEVICE_INT_CONFIG(devfn, line, irqno) {\ 21 .Device = PCI_SLOT(devfn), \ 22 .Function = PCI_FUNC(devfn), \ 23 .IntX = (line), \ 24 .Irq = (irqno) } 25 26 #define no_int 0 27 #define int_A 1 28 #define int_B 2 29 #define int_C 3 30 #define int_D 4 31 32 #endif /* _INTERRUPT_H_ */ 33