memoryDefinitionWaterRelatedData.h 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. /*
  2. * AVR32 OCD Interface and register definitions
  3. *
  4. * Copyright (C) 2004-2007 Atmel Corporation
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. #ifndef __ASM_AVR32_OCD_H
  11. #define __ASM_AVR32_OCD_H
  12. /* OCD Register offsets. Abbreviations used below:
  13. *
  14. * BP Breakpoint
  15. * Comm Communication
  16. * DT Data Trace
  17. * PC Program Counter
  18. * PID Process ID
  19. * R/W Read/Write
  20. * WP Watchpoint
  21. */
  22. #define OCD_DID 0x0000 /* Device ID */
  23. #define OCD_DC 0x0008 /* Development Control */
  24. #define OCD_DS 0x0010 /* Development Status */
  25. #define OCD_RWCS 0x001c /* R/W Access Control */
  26. #define OCD_RWA 0x0024 /* R/W Access Address */
  27. #define OCD_RWD 0x0028 /* R/W Access Data */
  28. #define OCD_WT 0x002c /* Watchpoint Trigger */
  29. #define OCD_DTC 0x0034 /* Data Trace Control */
  30. #define OCD_DTSA0 0x0038 /* DT Start Addr Channel 0 */
  31. #define OCD_DTSA1 0x003c /* DT Start Addr Channel 1 */
  32. #define OCD_DTEA0 0x0048 /* DT End Addr Channel 0 */
  33. #define OCD_DTEA1 0x004c /* DT End Addr Channel 1 */
  34. #define OCD_BWC0A 0x0058 /* PC BP/WP Control 0A */
  35. #define OCD_BWC0B 0x005c /* PC BP/WP Control 0B */
  36. #define OCD_BWC1A 0x0060 /* PC BP/WP Control 1A */
  37. #define OCD_BWC1B 0x0064 /* PC BP/WP Control 1B */
  38. #define OCD_BWC2A 0x0068 /* PC BP/WP Control 2A */
  39. #define OCD_BWC2B 0x006c /* PC BP/WP Control 2B */
  40. #define OCD_BWC3A 0x0070 /* Data BP/WP Control 3A */
  41. #define OCD_BWC3B 0x0074 /* Data BP/WP Control 3B */
  42. #define OCD_BWA0A 0x0078 /* PC BP/WP Address 0A */
  43. #define OCD_BWA0B 0x007c /* PC BP/WP Address 0B */
  44. #define OCD_BWA1A 0x0080 /* PC BP/WP Address 1A */
  45. #define OCD_BWA1B 0x0084 /* PC BP/WP Address 1B */
  46. #define OCD_BWA2A 0x0088 /* PC BP/WP Address 2A */
  47. #define OCD_BWA2B 0x008c /* PC BP/WP Address 2B */
  48. #define OCD_BWA3A 0x0090 /* Data BP/WP Address 3A */
  49. #define OCD_BWA3B 0x0094 /* Data BP/WP Address 3B */
  50. #define OCD_NXCFG 0x0100 /* Nexus Configuration */
  51. #define OCD_DINST 0x0104 /* Debug Instruction */
  52. #define OCD_DPC 0x0108 /* Debug Program Counter */
  53. #define OCD_CPUCM 0x010c /* CPU Control Mask */
  54. #define OCD_DCCPU 0x0110 /* Debug Comm CPU */
  55. #define OCD_DCEMU 0x0114 /* Debug Comm Emulator */
  56. #define OCD_DCSR 0x0118 /* Debug Comm Status */
  57. #define OCD_PID 0x011c /* Ownership Trace PID */
  58. #define OCD_EPC0 0x0120 /* Event Pair Control 0 */
  59. #define OCD_EPC1 0x0124 /* Event Pair Control 1 */
  60. #define OCD_EPC2 0x0128 /* Event Pair Control 2 */
  61. #define OCD_EPC3 0x012c /* Event Pair Control 3 */
  62. #define OCD_AXC 0x0130 /* AUX port Control */
  63. /* Bits in DID */
  64. #define OCD_DID_MID_START 1
  65. #define OCD_DID_MID_SIZE 11
  66. #define OCD_DID_PN_START 12
  67. #define OCD_DID_PN_SIZE 16
  68. #define OCD_DID_RN_START 28
  69. #define OCD_DID_RN_SIZE 4
  70. /* Bits in DC */
  71. #define OCD_DC_TM_START 0
  72. #define OCD_DC_TM_SIZE 2
  73. #define OCD_DC_EIC_START 3
  74. #define OCD_DC_EIC_SIZE 2
  75. #define OCD_DC_OVC_START 5
  76. #define OCD_DC_OVC_SIZE 3
  77. #define OCD_DC_SS_BIT 8
  78. #define OCD_DC_DBR_BIT 12
  79. #define OCD_DC_DBE_BIT 13
  80. #define OCD_DC_EOS_START 20
  81. #define OCD_DC_EOS_SIZE 2
  82. #define OCD_DC_SQA_BIT 22
  83. #define OCD_DC_IRP_BIT 23
  84. #define OCD_DC_IFM_BIT 24
  85. #define OCD_DC_TOZ_BIT 25
  86. #define OCD_DC_TSR_BIT 26
  87. #define OCD_DC_RID_BIT 27
  88. #define OCD_DC_ORP_BIT 28
  89. #define OCD_DC_MM_BIT 29
  90. #define OCD_DC_RES_BIT 30
  91. #define OCD_DC_ABORT_BIT 31
  92. /* Bits in DS */
  93. #define OCD_DS_SSS_BIT 0
  94. #define OCD_DS_SWB_BIT 1
  95. #define OCD_DS_HWB_BIT 2
  96. #define OCD_DS_HWE_BIT 3
  97. #define OCD_DS_STP_BIT 4
  98. #define OCD_DS_DBS_BIT 5
  99. #define OCD_DS_BP_START 8
  100. #define OCD_DS_BP_SIZE 8
  101. #define OCD_DS_INC_BIT 24
  102. #define OCD_DS_BOZ_BIT 25
  103. #define OCD_DS_DBA_BIT 26
  104. #define OCD_DS_EXB_BIT 27
  105. #define OCD_DS_NTBF_BIT 28
  106. /* Bits in RWCS */
  107. #define OCD_RWCS_DV_BIT 0
  108. #define OCD_RWCS_ERR_BIT 1
  109. #define OCD_RWCS_CNT_START 2
  110. #define OCD_RWCS_CNT_SIZE 14
  111. #define OCD_RWCS_CRC_BIT 19
  112. #define OCD_RWCS_NTBC_START 20
  113. #define OCD_RWCS_NTBC_SIZE 2
  114. #define OCD_RWCS_NTE_BIT 22
  115. #define OCD_RWCS_NTAP_BIT 23
  116. #define OCD_RWCS_WRAPPED_BIT 24
  117. #define OCD_RWCS_CCTRL_START 25
  118. #define OCD_RWCS_CCTRL_SIZE 2
  119. #define OCD_RWCS_SZ_START 27
  120. #define OCD_RWCS_SZ_SIZE 3
  121. #define OCD_RWCS_RW_BIT 30
  122. #define OCD_RWCS_AC_BIT 31
  123. /* Bits in RWA */
  124. #define OCD_RWA_RWA_START 0
  125. #define OCD_RWA_RWA_SIZE 32
  126. /* Bits in RWD */
  127. #define OCD_RWD_RWD_START 0
  128. #define OCD_RWD_RWD_SIZE 32