The esp8266 portion of the project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
2.3 KiB

  1. /*
  2. * Xtensa Special Register symbolic names
  3. */
  4. /* $Id: //depot/rel/Boreal/Xtensa/SWConfig/hal/specreg.h.tpp#2 $ */
  5. /* Customer ID=7011; Build=0x2b6f6; Copyright (c) 1998-2002 Tensilica Inc.
  6. Permission is hereby granted, free of charge, to any person obtaining
  7. a copy of this software and associated documentation files (the
  8. "Software"), to deal in the Software without restriction, including
  9. without limitation the rights to use, copy, modify, merge, publish,
  10. distribute, sublicense, and/or sell copies of the Software, and to
  11. permit persons to whom the Software is furnished to do so, subject to
  12. the following conditions:
  13. The above copyright notice and this permission notice shall be included
  14. in all copies or substantial portions of the Software.
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  17. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  18. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  19. CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  20. TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  21. SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
  22. #ifndef XTENSA_SPECREG_H
  23. #define XTENSA_SPECREG_H
  24. /* Include these special register bitfield definitions, for historical reasons: */
  25. #include <xtensa/corebits.h>
  26. /* Special registers: */
  27. #define SAR 3
  28. #define LITBASE 5
  29. #define IBREAKENABLE 96
  30. #define DDR 104
  31. #define IBREAKA_0 128
  32. #define DBREAKA_0 144
  33. #define DBREAKC_0 160
  34. #define EPC_1 177
  35. #define EPC_2 178
  36. #define EPC_3 179
  37. #define DEPC 192
  38. #define EPS_2 194
  39. #define EPS_3 195
  40. #define EXCSAVE_1 209
  41. #define EXCSAVE_2 210
  42. #define EXCSAVE_3 211
  43. #define INTERRUPT 226
  44. #define INTENABLE 228
  45. #define PS 230
  46. #define VECBASE 231
  47. #define EXCCAUSE 232
  48. #define DEBUGCAUSE 233
  49. #define CCOUNT 234
  50. #define PRID 235
  51. #define ICOUNT 236
  52. #define ICOUNTLEVEL 237
  53. #define EXCVADDR 238
  54. #define CCOMPARE_0 240
  55. /* Special cases (bases of special register series): */
  56. #define IBREAKA 128
  57. #define DBREAKA 144
  58. #define DBREAKC 160
  59. #define EPC 176
  60. #define EPS 192
  61. #define EXCSAVE 208
  62. #define CCOMPARE 240
  63. /* Special names for read-only and write-only interrupt registers: */
  64. #define INTREAD 226
  65. #define INTSET 226
  66. #define INTCLEAR 227
  67. #endif /* XTENSA_SPECREG_H */