vexpress_a9.h 783 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2018-03-22 quanzhao first version
  9. */
  10. #ifndef __VEXPRESS_A9_H__
  11. #define __VEXPRESS_A9_H__
  12. /* for 'rt_inline' */
  13. #include <rtdef.h>
  14. /* SOC-relative definitions */
  15. #include "realview.h"
  16. /* the maximum entries of the exception table */
  17. #define MAX_HANDLERS NR_IRQS_PBA8
  18. /* the basic constants and interfaces needed by gic */
  19. rt_inline rt_uint32_t platform_get_gic_dist_base(void)
  20. {
  21. return REALVIEW_GIC_DIST_BASE;
  22. }
  23. rt_inline rt_uint32_t platform_get_gic_cpu_base(void)
  24. {
  25. return REALVIEW_GIC_CPU_BASE;
  26. }
  27. #define GIC_IRQ_START 0
  28. #define GIC_ACK_INTID_MASK 0x000003ff
  29. #endif /* __VEXPRESS_A9_H__ */