atlasint.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /*
  2. * Carsten Langgaard, carstenl@mips.com
  3. * Copyright (C) 1999 MIPS Technologies, Inc. All rights reserved.
  4. *
  5. * ########################################################################
  6. *
  7. * This program is free software; you can distribute it and/or modify it
  8. * under the terms of the GNU General Public License (Version 2) as
  9. * published by the Free Software Foundation.
  10. *
  11. * This program is distributed in the hope it will be useful, but WITHOUT
  12. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  14. * for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License along
  17. * with this program; if not, write to the Free Software Foundation, Inc.,
  18. * 59 Temple Place - Suite 330, Boston MA 02111-1307, USA.
  19. *
  20. * ########################################################################
  21. *
  22. * Defines for the Atlas interrupt controller.
  23. *
  24. */
  25. #ifndef _MIPS_ATLASINT_H
  26. #define _MIPS_ATLASINT_H
  27. #define ATLASINT_BASE 1
  28. #define ATLASINT_UART (ATLASINT_BASE+0)
  29. #define ATLASINT_TIM0 (ATLASINT_BASE+1)
  30. #define ATLASINT_RES2 (ATLASINT_BASE+2)
  31. #define ATLASINT_RES3 (ATLASINT_BASE+3)
  32. #define ATLASINT_RTC (ATLASINT_BASE+4)
  33. #define ATLASINT_COREHI (ATLASINT_BASE+5)
  34. #define ATLASINT_CORELO (ATLASINT_BASE+6)
  35. #define ATLASINT_RES7 (ATLASINT_BASE+7)
  36. #define ATLASINT_PCIA (ATLASINT_BASE+8)
  37. #define ATLASINT_PCIB (ATLASINT_BASE+9)
  38. #define ATLASINT_PCIC (ATLASINT_BASE+10)
  39. #define ATLASINT_PCID (ATLASINT_BASE+11)
  40. #define ATLASINT_ENUM (ATLASINT_BASE+12)
  41. #define ATLASINT_DEG (ATLASINT_BASE+13)
  42. #define ATLASINT_ATXFAIL (ATLASINT_BASE+14)
  43. #define ATLASINT_INTA (ATLASINT_BASE+15)
  44. #define ATLASINT_INTB (ATLASINT_BASE+16)
  45. #define ATLASINT_ETH ATLASINT_INTB
  46. #define ATLASINT_INTC (ATLASINT_BASE+17)
  47. #define ATLASINT_SCSI ATLASINT_INTC
  48. #define ATLASINT_INTD (ATLASINT_BASE+18)
  49. #define ATLASINT_SERR (ATLASINT_BASE+19)
  50. #define ATLASINT_RES20 (ATLASINT_BASE+20)
  51. #define ATLASINT_RES21 (ATLASINT_BASE+21)
  52. #define ATLASINT_RES22 (ATLASINT_BASE+22)
  53. #define ATLASINT_RES23 (ATLASINT_BASE+23)
  54. #define ATLASINT_RES24 (ATLASINT_BASE+24)
  55. #define ATLASINT_RES25 (ATLASINT_BASE+25)
  56. #define ATLASINT_RES26 (ATLASINT_BASE+26)
  57. #define ATLASINT_RES27 (ATLASINT_BASE+27)
  58. #define ATLASINT_RES28 (ATLASINT_BASE+28)
  59. #define ATLASINT_RES29 (ATLASINT_BASE+29)
  60. #define ATLASINT_RES30 (ATLASINT_BASE+30)
  61. #define ATLASINT_RES31 (ATLASINT_BASE+31)
  62. #define ATLASINT_END (ATLASINT_BASE+31)
  63. /*
  64. * Atlas registers are memory mapped on 64-bit aligned boundaries and
  65. * only word access are allowed.
  66. */
  67. struct atlas_ictrl_regs {
  68. volatile unsigned int intraw;
  69. int dummy1;
  70. volatile unsigned int intseten;
  71. int dummy2;
  72. volatile unsigned int intrsten;
  73. int dummy3;
  74. volatile unsigned int intenable;
  75. int dummy4;
  76. volatile unsigned int intstatus;
  77. int dummy5;
  78. };
  79. extern void atlasint_init(void);
  80. #endif /* !(_MIPS_ATLASINT_H) */