Go to the documentation of this file.
11 #ifndef _ASM_INTCTL_REGS_H
12 #define _ASM_INTCTL_REGS_H
23 __SYSREG(0xd4000000 + (X) * 4 + \
24 (((X) >= 64) && ((X) < 192)) * 0xf00, u16)
27 __SYSREG(0xd4000000 + (X) * 4 + \
28 (((X) >= 64) && ((X) < 192)) * 0xf00, u8)
30 #include <proc/intctl-regs.h>
32 #define XIRQ_TRIGGER_LOWLEVEL 0
33 #define XIRQ_TRIGGER_HILEVEL 1
34 #define XIRQ_TRIGGER_NEGEDGE 2
35 #define XIRQ_TRIGGER_POSEDGE 3
39 #define NMICR GxICR(NMIIRQ)
40 #define NMICR_NMIF 0x0001
41 #define NMICR_WDIF 0x0002
42 #define NMICR_ABUSERR 0x0008
45 #define GxICR_DETECT 0x0001
46 #define GxICR_REQUEST 0x0010
47 #define GxICR_ENABLE 0x0100
48 #define GxICR_LEVEL 0x7000
49 #define GxICR_LEVEL_0 0x0000
50 #define GxICR_LEVEL_1 0x1000
51 #define GxICR_LEVEL_2 0x2000
52 #define GxICR_LEVEL_3 0x3000
53 #define GxICR_LEVEL_4 0x4000
54 #define GxICR_LEVEL_5 0x5000
55 #define GxICR_LEVEL_6 0x6000
56 #define GxICR_LEVEL_SHIFT 12
57 #define GxICR_NMI 0x8000
59 #define NUM2GxICR_LEVEL(num) ((num) << GxICR_LEVEL_SHIFT)
67 #define XIRQxICR(X) GxICR((X))