diff options
Diffstat (limited to 'include/linux/irqchip/arm-gic-v3.h')
-rw-r--r-- | include/linux/irqchip/arm-gic-v3.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/irqchip/arm-gic-v3.h b/include/linux/irqchip/arm-gic-v3.h index 800544bc7bfd..ffbc034c8810 100644 --- a/include/linux/irqchip/arm-gic-v3.h +++ b/include/linux/irqchip/arm-gic-v3.h | |||
@@ -126,8 +126,23 @@ | |||
126 | #define GICR_PROPBASER_WaWb (5U << 7) | 126 | #define GICR_PROPBASER_WaWb (5U << 7) |
127 | #define GICR_PROPBASER_RaWaWt (6U << 7) | 127 | #define GICR_PROPBASER_RaWaWt (6U << 7) |
128 | #define GICR_PROPBASER_RaWaWb (7U << 7) | 128 | #define GICR_PROPBASER_RaWaWb (7U << 7) |
129 | #define GICR_PROPBASER_CACHEABILITY_MASK (7U << 7) | ||
129 | #define GICR_PROPBASER_IDBITS_MASK (0x1f) | 130 | #define GICR_PROPBASER_IDBITS_MASK (0x1f) |
130 | 131 | ||
132 | #define GICR_PENDBASER_NonShareable (0U << 10) | ||
133 | #define GICR_PENDBASER_InnerShareable (1U << 10) | ||
134 | #define GICR_PENDBASER_OuterShareable (2U << 10) | ||
135 | #define GICR_PENDBASER_SHAREABILITY_MASK (3UL << 10) | ||
136 | #define GICR_PENDBASER_nCnB (0U << 7) | ||
137 | #define GICR_PENDBASER_nC (1U << 7) | ||
138 | #define GICR_PENDBASER_RaWt (2U << 7) | ||
139 | #define GICR_PENDBASER_RaWb (3U << 7) | ||
140 | #define GICR_PENDBASER_WaWt (4U << 7) | ||
141 | #define GICR_PENDBASER_WaWb (5U << 7) | ||
142 | #define GICR_PENDBASER_RaWaWt (6U << 7) | ||
143 | #define GICR_PENDBASER_RaWaWb (7U << 7) | ||
144 | #define GICR_PENDBASER_CACHEABILITY_MASK (7U << 7) | ||
145 | |||
131 | /* | 146 | /* |
132 | * Re-Distributor registers, offsets from SGI_base | 147 | * Re-Distributor registers, offsets from SGI_base |
133 | */ | 148 | */ |
@@ -166,6 +181,11 @@ | |||
166 | 181 | ||
167 | #define GITS_TRANSLATER 0x10040 | 182 | #define GITS_TRANSLATER 0x10040 |
168 | 183 | ||
184 | #define GITS_CTLR_ENABLE (1U << 0) | ||
185 | #define GITS_CTLR_QUIESCENT (1U << 31) | ||
186 | |||
187 | #define GITS_TYPER_DEVBITS_SHIFT 13 | ||
188 | #define GITS_TYPER_DEVBITS(r) ((((r) >> GITS_TYPER_DEVBITS_SHIFT) & 0x1f) + 1) | ||
169 | #define GITS_TYPER_PTA (1UL << 19) | 189 | #define GITS_TYPER_PTA (1UL << 19) |
170 | 190 | ||
171 | #define GITS_CBASER_VALID (1UL << 63) | 191 | #define GITS_CBASER_VALID (1UL << 63) |
@@ -177,6 +197,7 @@ | |||
177 | #define GITS_CBASER_WaWb (5UL << 59) | 197 | #define GITS_CBASER_WaWb (5UL << 59) |
178 | #define GITS_CBASER_RaWaWt (6UL << 59) | 198 | #define GITS_CBASER_RaWaWt (6UL << 59) |
179 | #define GITS_CBASER_RaWaWb (7UL << 59) | 199 | #define GITS_CBASER_RaWaWb (7UL << 59) |
200 | #define GITS_CBASER_CACHEABILITY_MASK (7UL << 59) | ||
180 | #define GITS_CBASER_NonShareable (0UL << 10) | 201 | #define GITS_CBASER_NonShareable (0UL << 10) |
181 | #define GITS_CBASER_InnerShareable (1UL << 10) | 202 | #define GITS_CBASER_InnerShareable (1UL << 10) |
182 | #define GITS_CBASER_OuterShareable (2UL << 10) | 203 | #define GITS_CBASER_OuterShareable (2UL << 10) |
@@ -193,6 +214,7 @@ | |||
193 | #define GITS_BASER_WaWb (5UL << 59) | 214 | #define GITS_BASER_WaWb (5UL << 59) |
194 | #define GITS_BASER_RaWaWt (6UL << 59) | 215 | #define GITS_BASER_RaWaWt (6UL << 59) |
195 | #define GITS_BASER_RaWaWb (7UL << 59) | 216 | #define GITS_BASER_RaWaWb (7UL << 59) |
217 | #define GITS_BASER_CACHEABILITY_MASK (7UL << 59) | ||
196 | #define GITS_BASER_TYPE_SHIFT (56) | 218 | #define GITS_BASER_TYPE_SHIFT (56) |
197 | #define GITS_BASER_TYPE(r) (((r) >> GITS_BASER_TYPE_SHIFT) & 7) | 219 | #define GITS_BASER_TYPE(r) (((r) >> GITS_BASER_TYPE_SHIFT) & 7) |
198 | #define GITS_BASER_ENTRY_SIZE_SHIFT (48) | 220 | #define GITS_BASER_ENTRY_SIZE_SHIFT (48) |