Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mediatek/mtk_intr_gic.c
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
| #define MTK_INTSTAT 0x0480 | #define MTK_INTSTAT 0x0480 | ||||
| #define MTK_MAPPIN(_i) (0x0500 + (4 * (_i))) | #define MTK_MAPPIN(_i) (0x0500 + (4 * (_i))) | ||||
| #define MTK_MAPVPE(_i, _v) (0x2000 + (32 * (_i)) + (((_v) / 32) * 4)) | #define MTK_MAPVPE(_i, _v) (0x2000 + (32 * (_i)) + (((_v) / 32) * 4)) | ||||
| #define MTK_INTPOL_POS 1 | #define MTK_INTPOL_POS 1 | ||||
| #define MTK_INTPOL_NEG 0 | #define MTK_INTPOL_NEG 0 | ||||
| #define MTK_INTTRIG_EDGE 1 | #define MTK_INTTRIG_EDGE 1 | ||||
| #define MTK_INTTRIG_LEVEL 0 | #define MTK_INTTRIG_LEVEL 0 | ||||
| #define MTK_PIN_BITS(_i) ((1 << 31) | (_i)) | #define MTK_PIN_BITS(_i) ((1U << 31) | (_i)) | ||||
| #define MTK_VPE_BITS(_v) (1 << ((_v) % 32)) | #define MTK_VPE_BITS(_v) (1 << ((_v) % 32)) | ||||
| static int mtk_gic_intr(void *); | static int mtk_gic_intr(void *); | ||||
| struct mtk_gic_irqsrc { | struct mtk_gic_irqsrc { | ||||
| struct intr_irqsrc isrc; | struct intr_irqsrc isrc; | ||||
| u_int irq; | u_int irq; | ||||
| }; | }; | ||||
| ▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines | |||||