summaryrefslogtreecommitdiffstats
path: root/src/soc/intel/skylake/include/soc/interrupt.h
blob: f3d1f6afecb2aa495e4232ae56db63e5e6a3dfad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* SPDX-License-Identifier: GPL-2.0-only */
/* This file is part of the coreboot project. */

#ifndef _INTERRUPT_H_
#define _INTERRUPT_H_

/* Number of all PCH devices */
#define PCH_MAX_DEV_INT_CONFIG 64

/* Number of PxRC register in ITSS */
#define PCH_PARC 0
#define PCH_PBRC 1
#define PCH_PCRC 2
#define PCH_PDRC 3
#define PCH_PERC 4
#define PCH_PFRC 5
#define PCH_PGRC 6
#define PCH_PHRC 7
#define PCH_MAX_IRQ_CONFIG 8

#define DEVICE_INT_CONFIG(devfn, line, irqno) {\
	.Device = PCI_SLOT(devfn), \
	.Function = PCI_FUNC(devfn), \
	.IntX = (line), \
	.Irq = (irqno) }

#define no_int 0
#define int_A 1
#define int_B 2
#define int_C 3
#define int_D 4

#endif /* _INTERRUPT_H_ */