arm-gic.h 536 B

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