Go to the documentation of this file.
13 #ifndef __PLAT_SAMSUNG_IRQS_H
14 #define __PLAT_SAMSUNG_IRQS_H __FILE__
25 #define S5P_IRQ_OFFSET (32)
27 #define S5P_IRQ(x) ((x) + S5P_IRQ_OFFSET)
29 #define S5P_VIC0_BASE S5P_IRQ(0)
30 #define S5P_VIC1_BASE S5P_IRQ(32)
31 #define S5P_VIC2_BASE S5P_IRQ(64)
32 #define S5P_VIC3_BASE S5P_IRQ(96)
34 #define VIC_BASE(x) (S5P_VIC0_BASE + ((x)*32))
36 #define IRQ_VIC0_BASE S5P_VIC0_BASE
37 #define IRQ_VIC1_BASE S5P_VIC1_BASE
38 #define IRQ_VIC2_BASE S5P_VIC2_BASE
42 #define S5P_IRQ_VIC0(x) (S5P_VIC0_BASE + (x))
43 #define S5P_IRQ_VIC1(x) (S5P_VIC1_BASE + (x))
44 #define S5P_IRQ_VIC2(x) (S5P_VIC2_BASE + (x))
45 #define S5P_IRQ_VIC3(x) (S5P_VIC3_BASE + (x))
47 #define S5P_TIMER_IRQ(x) (IRQ_TIMER_BASE + (x))
49 #define IRQ_TIMER0 S5P_TIMER_IRQ(0)
50 #define IRQ_TIMER1 S5P_TIMER_IRQ(1)
51 #define IRQ_TIMER2 S5P_TIMER_IRQ(2)
52 #define IRQ_TIMER3 S5P_TIMER_IRQ(3)
53 #define IRQ_TIMER4 S5P_TIMER_IRQ(4)
54 #define IRQ_TIMER_COUNT (5)
56 #define IRQ_EINT(x) ((x) < 16 ? ((x) + S5P_EINT_BASE1) \
57 : ((x) - 16 + S5P_EINT_BASE2))
59 #define EINT_OFFSET(irq) ((irq) < S5P_EINT_BASE2 ? \
60 ((irq) - S5P_EINT_BASE1) : \
61 ((irq) + 16 - S5P_EINT_BASE2))
63 #define IRQ_EINT_BIT(x) EINT_OFFSET(x)
70 #define S5P_GPIOINT_GROUP_COUNT 4
71 #define S5P_GPIOINT_GROUP_SIZE 8
72 #define S5P_GPIOINT_COUNT (S5P_GPIOINT_GROUP_COUNT * S5P_GPIOINT_GROUP_SIZE)
75 #define S5P_IRQ_TYPE_LEVEL_LOW (0x00)
76 #define S5P_IRQ_TYPE_LEVEL_HIGH (0x01)
77 #define S5P_IRQ_TYPE_EDGE_FALLING (0x02)
78 #define S5P_IRQ_TYPE_EDGE_RISING (0x03)
79 #define S5P_IRQ_TYPE_EDGE_BOTH (0x04)