interrupt_props.h 644 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. #ifndef INTERRUPT_PROPS_H
  7. #define INTERRUPT_PROPS_H
  8. #ifndef __ASSEMBLER__
  9. /* Create an interrupt property descriptor from various interrupt properties */
  10. #define INTR_PROP_DESC(num, pri, grp, cfg) \
  11. { \
  12. .intr_num = (num), \
  13. .intr_pri = (pri), \
  14. .intr_grp = (grp), \
  15. .intr_cfg = (cfg), \
  16. }
  17. typedef struct interrupt_prop {
  18. unsigned int intr_num:13;
  19. unsigned int intr_pri:8;
  20. unsigned int intr_grp:2;
  21. unsigned int intr_cfg:2;
  22. } interrupt_prop_t;
  23. #endif /* __ASSEMBLER__ */
  24. #endif /* INTERRUPT_PROPS_H */