1
2
3
4
5
6
7
8
9 #ifndef __IPIC_H__
10 #define __IPIC_H__
11
12 #include <asm/ipic.h>
13
14 #define NR_IPIC_INTS 128
15
16
17 #define IPIC_IRQ_EXT0 48
18 #define IPIC_IRQ_EXT1 17
19 #define IPIC_IRQ_EXT7 23
20
21
22 #define IPIC_PRIORITY_DEFAULT 0x05309770
23
24
25 #define SICFR_IPSA 0x00010000
26 #define SICFR_IPSB 0x00020000
27 #define SICFR_IPSC 0x00040000
28 #define SICFR_IPSD 0x00080000
29 #define SICFR_MPSA 0x00200000
30 #define SICFR_MPSB 0x00400000
31
32
33 #define SEMSR_SIRQ0 0x00008000
34
35
36 #define SERCR_MCPR 0x00000001
37
38 struct ipic {
39 volatile u32 __iomem *regs;
40
41
42 struct irq_domain *irqhost;
43 };
44
45 struct ipic_info {
46 u8 ack;
47
48 u8 mask;
49 u8 prio;
50 u8 force;
51 u8 bit;
52
53 u8 prio_mask;
54 };
55
56 #endif