maltaint.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 2000,2012 MIPS Technologies, Inc. All rights reserved.
  7. * Carsten Langgaard <carstenl@mips.com>
  8. * Steven J. Hill <sjhill@mips.com>
  9. */
  10. #ifndef _MIPS_MALTAINT_H
  11. #define _MIPS_MALTAINT_H
  12. /*
  13. * Interrupts 0..15 are used for Malta ISA compatible interrupts
  14. */
  15. #define MALTA_INT_BASE 0
  16. /* CPU interrupt offsets */
  17. #define MIPSCPU_INT_SW0 0
  18. #define MIPSCPU_INT_SW1 1
  19. #define MIPSCPU_INT_MB0 2
  20. #define MIPSCPU_INT_I8259A MIPSCPU_INT_MB0
  21. #define MIPSCPU_INT_GIC MIPSCPU_INT_MB0 /* GIC chained interrupt */
  22. #define MIPSCPU_INT_MB1 3
  23. #define MIPSCPU_INT_SMI MIPSCPU_INT_MB1
  24. #define MIPSCPU_INT_MB2 4
  25. #define MIPSCPU_INT_MB3 5
  26. #define MIPSCPU_INT_COREHI MIPSCPU_INT_MB3
  27. #define MIPSCPU_INT_MB4 6
  28. #define MIPSCPU_INT_CORELO MIPSCPU_INT_MB4
  29. /*
  30. * Interrupts 96..127 are used for Soc-it Classic interrupts
  31. */
  32. #define MSC01C_INT_BASE 96
  33. /* SOC-it Classic interrupt offsets */
  34. #define MSC01C_INT_TMR 0
  35. #define MSC01C_INT_PCI 1
  36. /*
  37. * Interrupts 96..127 are used for Soc-it EIC interrupts
  38. */
  39. #define MSC01E_INT_BASE 96
  40. /* SOC-it EIC interrupt offsets */
  41. #define MSC01E_INT_SW0 1
  42. #define MSC01E_INT_SW1 2
  43. #define MSC01E_INT_MB0 3
  44. #define MSC01E_INT_I8259A MSC01E_INT_MB0
  45. #define MSC01E_INT_MB1 4
  46. #define MSC01E_INT_SMI MSC01E_INT_MB1
  47. #define MSC01E_INT_MB2 5
  48. #define MSC01E_INT_MB3 6
  49. #define MSC01E_INT_COREHI MSC01E_INT_MB3
  50. #define MSC01E_INT_MB4 7
  51. #define MSC01E_INT_CORELO MSC01E_INT_MB4
  52. #define MSC01E_INT_TMR 8
  53. #define MSC01E_INT_PCI 9
  54. #define MSC01E_INT_PERFCTR 10
  55. #define MSC01E_INT_CPUCTR 11
  56. #endif /* !(_MIPS_MALTAINT_H) */