arm-gic.h 490 B

12345678910111213141516171819202122
  1. /*
  2. * This header provides constants for the ARM GIC.
  3. */
  4. #ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
  5. #define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
  6. #include <dt-bindings/interrupt-controller/irq.h>
  7. /* interrupt specific cell 0 */
  8. #define GIC_SPI 0
  9. #define GIC_PPI 1
  10. /*
  11. * Interrupt specifier cell 2.
  12. * The flaggs in irq.h are valid, plus those below.
  13. */
  14. #define GIC_CPU_MASK_RAW(x) ((x) << 8)
  15. #define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
  16. #endif