diff --git a/arch/arm/src/armv7-r/gic.h b/arch/arm/src/armv7-r/gic.h index da694bc089..6eda8e83fa 100644 --- a/arch/arm/src/armv7-r/gic.h +++ b/arch/arm/src/armv7-r/gic.h @@ -267,9 +267,9 @@ * levels. As a result, PMR settings make sense. */ -#define GIC_ICCPMR_SHIFT (0) /* Bits 0-7: Priority mask */ +#define GIC_ICCPMR_SHIFT (0) /* Bits 0-7: Priority mask */ #define GIC_ICCPMR_MASK (0xff << GIC_ICCPMR_SHIFT) -#define GIC_ICCPMR_VALUE(n) ((uint32_t)(n) << GIC_ICCPMR_SHIFT) +#define GIC_ICCPMR_VALUE(n) ((uint32_t)(n) << GIC_ICCPMR_SHIFT) /* Bits 8-31: Reserved */ @@ -296,10 +296,10 @@ #define GIC_ICCIAR_INTID_SHIFT (0) /* Bits 0-9: Interrupt ID */ #define GIC_ICCIAR_INTID_MASK (0x3ff << GIC_ICCIAR_INTID_SHIFT) -#define GIC_ICCIAR_INTID(n) ((uint32_t)(n) << GIC_ICCIAR_INTID_SHIFT) +#define GIC_ICCIAR_INTID(n) ((uint32_t)(n) << GIC_ICCIAR_INTID_SHIFT) #define GIC_ICCIAR_CPUSRC_SHIFT (10) /* Bits 10-12: CPU source ID */ #define GIC_ICCIAR_CPUSRC_MASK (7 << GIC_ICCIAR_CPUSRC_SHIFT) -#define GIC_ICCIAR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCIAR_CPUSRC_SHIFT) +#define GIC_ICCIAR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCIAR_CPUSRC_SHIFT) /* Bits 13-31: Reserved */ @@ -309,10 +309,10 @@ #define GIC_ICCEOIR_INTID_SHIFT (0) /* Bits 0-9: Interrupt ID */ #define GIC_ICCEOIR_INTID_MASK (0x3ff << GIC_ICCEOIR_INTID_SHIFT) -#define GIC_ICCEOIR_INTID(n) ((uint32_t)(n) << GIC_ICCEOIR_INTID_SHIFT) +#define GIC_ICCEOIR_INTID(n) ((uint32_t)(n) << GIC_ICCEOIR_INTID_SHIFT) #define GIC_ICCEOIR_CPUSRC_SHIFT (10) /* Bits 10-12: CPU source ID */ #define GIC_ICCEOIR_CPUSRC_MASK (7 << GIC_ICCEOIR_CPUSRC_SHIFT) -#define GIC_ICCEOIR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCEOIR_CPUSRC_SHIFT) +#define GIC_ICCEOIR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCEOIR_CPUSRC_SHIFT) /* Bits 13-31: Reserved */ @@ -322,7 +322,7 @@ #define GIC_ICCRPR_PRIO_SHIFT (4) /* Bits 4-7: Priority mask */ #define GIC_ICCRPR_PRIO_MASK (15 << GIC_ICCRPR_PRIO_SHIFT) -#define GIC_ICCRPR_PRIO_VALUE(n) ((uint32_t)(n) << GIC_ICCRPR_PRIO_SHIFT) +#define GIC_ICCRPR_PRIO_VALUE(n) ((uint32_t)(n) << GIC_ICCRPR_PRIO_SHIFT) /* Bits 8-31: Reserved */ @@ -330,10 +330,10 @@ #define GIC_ICCHPIR_INTID_SHIFT (0) /* Bits 0-9: Interrupt ID */ #define GIC_ICCHPIR_INTID_MASK (0x3ff << GIC_ICCHPIR_INTID_SHIFT) -#define GIC_ICCHPIR_INTID(n) ((uint32_t)(n) << GIC_ICCHPIR_INTID_SHIFT) +#define GIC_ICCHPIR_INTID(n) ((uint32_t)(n) << GIC_ICCHPIR_INTID_SHIFT) #define GIC_ICCHPIR_CPUSRC_SHIFT (10) /* Bits 10-12: CPU source ID */ #define GIC_ICCHPIR_CPUSRC_MASK (7 << GIC_ICCHPIR_CPUSRC_SHIFT) -#define GIC_ICCHPIR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCHPIR_CPUSRC_SHIFT) +#define GIC_ICCHPIR_CPUSRC(n) ((uint32_t)(n) << GIC_ICCHPIR_CPUSRC_SHIFT) /* Bits 13-31: Reserved */ @@ -391,7 +391,7 @@ * The corresponding bits in the ICDISERn are read as one, write ignored */ -#define GIC_ICDISER_INT(n) GIC_MASK32(n) +#define GIC_ICDISER_INT(n) GIC_MASK32(n) /* Interrupt Clear-Enable. * @@ -399,25 +399,25 @@ * The corresponding bits in the ICDICERn are read as one, write ignored */ -#define GIC_ICDICER_INT(n) GIC_MASK32(n) +#define GIC_ICDICER_INT(n) GIC_MASK32(n) /* Interrupt Set-Pending */ -#define GIC_ICDISPR_INT(n) GIC_MASK32(n) +#define GIC_ICDISPR_INT(n) GIC_MASK32(n) /* Interrupt Clear-Pending */ -#define GIC_ICDICPR_INT(n) GIC_MASK32(n) +#define GIC_ICDICPR_INT(n) GIC_MASK32(n) /* Interrupt Active Bit */ -#define GIC_ICDABR_INT(n) GIC_MASK32(n) +#define GIC_ICDABR_INT(n) GIC_MASK32(n) /* Interrupt Priority Registers */ -#define GIC_ICDIPR_ID_SHIFT(n) GIC_SHIFT4(n) -#define GIC_ICDIPR_ID_MASK(n) GIC_MASK4(n) -#define GIC_ICDIPR_ID(n, p) ((uint32_t)(p) << GIC_SHIFT4(n)) +#define GIC_ICDIPR_ID_SHIFT(n) GIC_SHIFT4(n) +#define GIC_ICDIPR_ID_MASK(n) GIC_MASK4(n) +#define GIC_ICDIPR_ID(n, p) ((uint32_t)(p) << GIC_SHIFT4(n)) /* Interrupt Processor Target Registers */ @@ -428,7 +428,7 @@ #define GIC_ICDIPTR_ID_SHIFT(n) GIC_SHIFT4(n) #define GIC_ICDIPTR_ID_MASK(n) GIC_MASK4(n) -#define GIC_ICDIPTR_ID(n, t) ((uint32_t)(t) <