arc.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. /* ------------------------------------------
  2. * Copyright (c) 2016, Synopsys, Inc. All rights reserved.
  3. * Redistribution and use in source and binary forms, with or without modification,
  4. * are permitted provided that the following conditions are met:
  5. * 1) Redistributions of source code must retain the above copyright notice, this
  6. * list of conditions and the following disclaimer.
  7. * 2) Redistributions in binary form must reproduce the above copyright notice,
  8. * this list of conditions and the following disclaimer in the documentation and/or
  9. * other materials provided with the distribution.
  10. * 3) Neither the name of the Synopsys, Inc., nor the names of its contributors may
  11. * be used to endorse or promote products derived from this software without
  12. * specific prior written permission.
  13. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  14. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  15. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  16. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
  17. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  18. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  19. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  20. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  21. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  22. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  23. *
  24. * \version 2016.05
  25. * \date 2014-06-20
  26. * \author Wayne Ren(Wei.Ren@synopsys.com)
  27. --------------------------------------------- */
  28. /**
  29. * \file
  30. * \ingroup ARC_HAL_CORE_COMM
  31. * \brief header file including common core definitions
  32. */
  33. /**
  34. * \addtogroup ARC_HAL_CORE_COMM
  35. * @{
  36. */
  37. #ifndef _ARC_HAL_CORE_H_
  38. #define _ARC_HAL_CORE_H_
  39. #include "inc/arc/arc_feature_config.h"
  40. /**
  41. * \name exception number definitions
  42. * @{
  43. */
  44. /* ARC exception number */
  45. #define EXC_NO_RESET (0) /*!< reset vector, the entry of power up and reset */
  46. #define EXC_NO_MEM_ERR (1) /*!< external memory bus error */
  47. #define EXC_NO_INS_ERR (2) /*!< illegal instruction or illegal instruction sequence */
  48. #define EXC_NO_MAC_CHK (3) /*!< machine check error */
  49. #define EXC_NO_TLB_MISS_I (4) /*!< instruction TLB missing exception, useless without MMU */
  50. #define EXC_NO_TLB_MISS_D (5) /*!< data TLB missing exception, useless without MMU */
  51. #define EXC_NO_PRO_VIO (6) /*!< protection violation */
  52. #define EXC_NO_PRI_VIO (7) /*!< privilege violation */
  53. #define EXC_NO_SWI (8) /*!< software interrupt */
  54. #define EXC_NO_TRAP (9) /*!< trap */
  55. #define EXC_NO_EXT (10) /*!< extension exception */
  56. #define EXC_NO_DIV_ZER0 (11) /*!< divide by zero */
  57. #define EXC_NO_DC_ERR (12) /*!< data cache consistency error */
  58. #define EXC_NO_MAL_ALIGN (13) /*!< misaligned data access */
  59. #define EXC_NO_RESERVE0 (14) /*!< reserved */
  60. #define EXC_NO_RESERVE1 (15) /*!< reserved */
  61. /* extension interrupts */
  62. #define EXC_NO_16 (16) /*!< interrupt vector 16 */
  63. #define EXC_NO_17 (17) /*!< interrupt vector 17 */
  64. #define EXC_NO_18 (18) /*!< interrupt vector 18 */
  65. #define EXC_NO_19 (19) /*!< interrupt vector 19 */
  66. #define EXC_NO_20 (20) /*!< interrupt vector 20 */
  67. #define EXC_NO_21 (21) /*!< interrupt vector 21 */
  68. #define EXC_NO_22 (22) /*!< interrupt vector 22 */
  69. #define EXC_NO_23 (23) /*!< interrupt vector 23 */
  70. #define EXC_NO_24 (24) /*!< interrupt vector 24 */
  71. #define EXC_NO_25 (25) /*!< interrupt vector 25 */
  72. #define EXC_NO_26 (26) /*!< interrupt vector 26 */
  73. #define EXC_NO_27 (27) /*!< interrupt vector 27 */
  74. #define EXC_NO_28 (28) /*!< interrupt vector 28 */
  75. #define EXC_NO_29 (29) /*!< interrupt vector 29 */
  76. #define EXC_NO_30 (30) /*!< interrupt vector 30 */
  77. #define EXC_NO_31 (31) /*!< interrupt vector 31 */
  78. /* ... ARC supports 255 interrupt vectors at most */
  79. #define EXC_NO_255 (255) /*!< interrupt vector 255 */
  80. /** @} */
  81. /**
  82. * \name exception vector offset
  83. * @{
  84. */
  85. #define EXC_NO_TO_OFFSET(no) (no << 2)
  86. /* ARC exception vector offset */
  87. #define EXC_VECTOR_RESET (0x00) /*!< EXC_NO_RESET offset */
  88. #define EXC_VECTOR_MEM_ERR (0x04) /*!< EXC_NO_MEM_ERR offset */
  89. #define EXC_VECTOR_INS_ERR (0x08) /*!< EXC_NO_INS_ERR offset */
  90. #define EXC_VECTOR_MAC_CHK (0x0c) /*!< EXC_NO_MAC_CHK offset */
  91. #define EXC_VECTOR_TLB_MISS_I (0x10) /*!< EXC_NO_TLB_MISS_I offset */
  92. #define EXC_VECTOR_TLB_MISS_D (0x14) /*!< EXC_NO_TLB_MISS_D offset */
  93. #define EXC_VECTOR_PRO_VIO (0x18) /*!< EXC_NO_PRO_VIO offset */
  94. #define EXC_VECTOR_PRI_VIO (0x1c) /*!< EXC_NO_PRI_VIO offset */
  95. #define EXC_VECTOR_SWI (0x20) /*!< EXC_NO_SWI offset */
  96. #define EXC_VECTOR_TRAP (0x24) /*!< EXC_NO_TRAP offset */
  97. #define EXC_VECTOR_EXT (0x28) /*!< EXC_NO_EXT offset */
  98. #define EXC_VECTOR_DIV_ZER0 (0x2c) /*!< EXC_NO_DIV_ZER0 offset */
  99. #define EXC_VECTOR_DC_ERR (0x30) /*!< EXC_NO_DC_ERR offset */
  100. #define EXC_VECTOR_MAL_ALIGN (0x34) /*!< EXC_NO_MAL_ALIGN offset */
  101. #define EXC_VECTOR_RESERVE0 (0x38) /*!< EXC_NO_RESERVE0 offset */
  102. #define EXC_VECTOR_RESERVE1 (0x3c) /*!< EXC_NO_RESERVE1 offset */
  103. /** @} */
  104. /**
  105. * \name build configuration register
  106. * @{
  107. */
  108. #define AUX_BCR_VER (0x60) /*!< build configuration register version */
  109. #define AUX_BCR_BTA (0x63) /*!< build configuration for BTA LINK */
  110. #define AUX_BCR_VECBASE (0x68) /*!< build configuration for interrupt vector base */
  111. #define AUX_BCR_MPU (0x6d) /*!< build configuration for memory protection unit */
  112. #define AUX_BCR_RF (0x6e) /*!< build configuration for core registers */
  113. #define AUX_BCR_D_CACHE (0x72) /*!< build configuration for data cache */
  114. #define AUX_BCR_DCCM (0x74) /*!< build configuration for DCCM */
  115. #define AUX_BCR_TIMERS (0x75) /*!< build configuration for processor timers */
  116. #define AUX_BCR_AP (0x76) /*!< build configuration for actionpoints */
  117. #define AUX_BCR_I_CACHE (0x77) /*!< build configuration for instruction cache */
  118. #define AUX_BCR_ICCM (0x78) /*!< build configuration for ICCM */
  119. #define AUX_BCR_DSP (0x7a) /*!< build configuration for DSP */
  120. #define AUX_BCR_MUL (0x7b) /*!< build configuration for multiply */
  121. #define AUX_BCR_SWAP (0x7c) /*!< build configuration for swap */
  122. #define AUX_BCR_NORM (0x7d) /*!< build configuration for normalize */
  123. #define AUX_BCR_MIXMAX (0x7e) /*!< build configuration for MIN/MAX */
  124. #define AUX_BCR_BARREL (0x7f) /*!< build configuration for barrel shift */
  125. #define AUX_BCR_ISA (0xc1) /*!< build configuration for ISA configuration */
  126. #define AUX_BCR_STACK (0xc5) /*!< build configuration for stack region */
  127. #define AUX_BCR_ERP (0xc7) /*!< build configuration for error protection */
  128. #define AUX_BCR_FPU (0xc8) /*!< build configuration for floating-point unit */
  129. #define AUX_BCR_CPORT (0xc9) /*!< build configuration for code protection */
  130. #define AUX_BCR_BS (0xcb) /*!< build configuration for bitstream */
  131. #define AUX_BCR_AGU (0xcc) /*!< build configuration for address generate unit */
  132. #define AUX_BCR_DMAC (0xcd) /*!< build configuration for DMA */
  133. #define AUX_BCR_CONNECT_SYSTEM (0xd0) /*!< build configuration for arc connect */
  134. #define AUX_BCR_CONNECT_SEMA (0xd1) /*!< build configuration for inter-core semaphore */
  135. #define AUX_BCR_CONNECT_MESSAGE (0xd2) /*!< build configuration for inter-code message */
  136. #define AUX_BCR_CONNECT_PMU (0xd3) /*!< build configuration for power management unit */
  137. #define AUX_BCR_CONNECT_GFRC (0xd6) /*!< build configuration for global free running counter */
  138. #define AUX_BCR_CAL_STORE (0xd9) /*!< build configuration for calibration parameter storage */
  139. #define AUX_BCR_CONNECT_ICI (0xe0) /*!< build configuration for inter-core interrupt unit */
  140. #define AUX_BCR_CONNECT_ICD (0xe1) /*!< build configuration for inter-core debug unit */
  141. #define AUX_BCR_CONNECT_PDM (0xe3) /*!< build configuration for power domain management unit*/
  142. #define AUX_BCR_RTT (0xf2) /*!< build configuration for real-time trace */
  143. #define AUX_BCR_IRQ (0xf3) /*!< build configuration for interrupt */
  144. #define AUX_BCR_PCT (0xf5) /*!< build configuration for performance counters */
  145. #define AUX_BCR_CC (0xf6) /*!< build configuration for performance counters */
  146. #define AUX_BCR_PDM_DVFS (0xf7) /*!< build configuration for PDM and DVFS */
  147. #define AUX_BCR_SEC_BUILD (0xdb)
  148. /* from 0xF5 and 0xF6 */
  149. #define AUX_BCR_IFQUEUE (0xfe) /*!< build configuration for instruction fetch queue */
  150. #define AUX_BCR_SMART (0xff) /*!< build configuration for SmaRT debug feature */
  151. /** @} */
  152. #define AUX_SEC_STAT (0x9)
  153. #define AUX_SEC_STAT_BIT_SSC (0)
  154. #define AUX_SEC_STAT_BIT_NSRT (1)
  155. #define AUX_SEC_STAT_BIT_NSRU (2)
  156. #define AUX_SEC_STAT_BIT_IRM (3)
  157. #define AUX_SEC_STAT_BIT_SUE (4)
  158. #define AUX_SEC_STAT_BIT_NIC (5)
  159. /**
  160. * \name status register STATUS32
  161. * @{
  162. */
  163. #define AUX_STATUS32 (0xa)
  164. #define AUX_STATUS32_P0 (0xb)
  165. /* STATUS32 bit-field definition */
  166. #define AUX_STATUS_BIT_AE (5) /*!< processor is in an exception */
  167. #define AUX_STATUS_BIT_DE (6) /*!< delayed branch is pending */
  168. #define AUX_STATUS_BIT_U (7) /*!< user mode */
  169. #define AUX_STATUS_BIT_L (12) /*!< zero-overhead loop enable */
  170. #define AUX_STATUS_BIT_IE (31) /*!< interrupt enable */
  171. /* masks correspond to STATUS32 bit-field */
  172. #define AUX_STATUS_MASK_AE (1<<AUX_STATUS_BIT_AE) /*!< mask of AUX_STATUS_BIT_AE */
  173. #define AUX_STATUS_MASK_DE (1<<AUX_STATUS_BIT_DE) /*!< mask of AUX_STATUS_BIT_DE */
  174. #define AUX_STATUS_MASK_U (1<<AUX_STATUS_BIT_U) /*!< mask of AUX_STATUS_BIT_U */
  175. #define AUX_STATUS_MASK_L (1<<AUX_STATUS_BIT_L) /*!< mask of AUX_STATUS_BIT_L */
  176. #define AUX_STATUS_MASK_IE (1<<AUX_STATUS_BIT_IE) /*!< mask of AUX_STATUS_BIT_IE */
  177. /** @} */
  178. /**
  179. * \name zero overhead loop auxiliary register
  180. * @{
  181. */
  182. #define AUX_LP_START (0x2) /*!< loop start address (32-bit) */
  183. #define AUX_LP_END (0x3) /*!< loop end address (32-bit) */
  184. /** @} */
  185. #define AUX_USER_SP (0xd) /*!< user-mode stack pointer */
  186. /* added in silverstone */
  187. #define AUX_KERNEL_SP (0x38) /*!< kernel-mode stack pointer */
  188. #define AUX_SEC_U_SP (0x39) /*!< secure user-mode stack pointer */
  189. #define AUX_SEC_K_SP (0x3a) /*!< secure kernel-mode stack pointer */
  190. /* additional stack checkingh registers for secure mode */
  191. #define AUX_S_USTACK_BASE (0x263)
  192. #define AUX_S_USTACK_TOP (0x262)
  193. #define AUX_S_KSTACK_BASE (0x267)
  194. #define AUX_S_KSTACK_TOP (0x266)
  195. /**
  196. * \name auxiliary register for hardware counter 0 and 1
  197. * @{
  198. */
  199. #define AUX_TIMER0_LIMIT (0x23) /*!< timer 0 limit value */
  200. #define AUX_TIMER0_CTRL (0x22) /*!< timer 0 control value */
  201. #define AUX_TIMER0_CNT (0x21) /*!< timer 0 count value */
  202. #define AUX_TIMER1_LIMIT (0x102) /*!< timer 1 limit value */
  203. #define AUX_TIMER1_CTRL (0x101) /*!< timer 1 control value */
  204. #define AUX_TIMER1_CNT (0x100) /*!< timer 1 count value */
  205. /** @} */
  206. #define AUX_SECURE_TIMER0_CNT (0x106) /*!< secure timer 0 count value */
  207. #define AUX_SECURE_TIMER0_CTRL (0x107) /*!< secure timer 0 control value */
  208. #define AUX_SECURE_TIMER0_LIMIT (0x108) /*!< secure timer 0 limit value */
  209. #define AUX_SECURE_TIMER1_CNT (0x109) /*!< secure timer 1 count value */
  210. #define AUX_SECURE_TIMER1_CTRL (0x10a) /*!< secure timer 1 control value */
  211. #define AUX_SECURE_TIMER1_LIMIT (0x10b) /*!< secure timer 1 limit value */
  212. /**
  213. * \name auxiliary register for real-time counter
  214. * @{
  215. */
  216. #define AUX_RTC_CTRL (0x103) /*!< real-time counter control register */
  217. #define AUX_RTC_LOW (0x104) /*!< real-time counter count low register */
  218. #define AUX_RTC_HIGH (0x105) /*!< real-time counter count high register */
  219. /** @} */
  220. /**
  221. * \name indexed table auxiliary register
  222. * @{
  223. */
  224. #define AUX_JLI_BASE (0x290) /*!< jump and link indexed base address */
  225. #define AUX_LDI_BASE (0x291) /*!< load indexed base address */
  226. #define AUX_EI_BASE (0x292) /*!< execute indexed base address */
  227. /** @} */
  228. /**
  229. * \name baseline auxiliary register set
  230. * @{
  231. */
  232. /* to be added */
  233. #define AUX_ERRET (0x400) /*!< exception return address */
  234. #define AUX_ERBTA (0x401) /*!< BTA saved on exception entry */
  235. #define AUX_ERSTATUS (0x402) /*!< STATUS32 saved on exception */
  236. #define AUX_ECR (0x403) /*!< exception cause register */
  237. #define AUX_EFA (0x404) /*!< exception fault address */
  238. #define AUX_BTA (0x412) /*!< branch target address */
  239. /** @} */
  240. /* New register to control which exceptions can be handled in NS mode */
  241. #define AUX_ERSEC_STAT (0x406)
  242. #define AUX_ERSEC_STAT_BIT_ERM 31
  243. #define AUX_SEC_EXCEPT (0x407)
  244. /**
  245. * \name MPU register set
  246. * @{
  247. */
  248. #define AUX_MPU_EN (0x409) /*!< MPU enable register */
  249. #define AUX_MPU_ECR (0x420) /*!< MPU exception cause */
  250. #define AUX_MPU_RDB0 (0x422) /*!< MPU region descriptor base 0 */
  251. #define AUX_MPU_RDP0 (0x423) /*!< MPU region descriptor permission 0 */
  252. /* MPU register set in silverstone */
  253. #define AUX_MPU_INDEX (0x448)
  254. #define AUX_MPU_INDEX_BIT_D (31)
  255. #define AUX_MPU_RSTART (0x449)
  256. #define AUX_MPU_REND (0x44a)
  257. #define AUX_MPU_RPER (0x44b)
  258. #define AUX_MPU_RPER_BIT_S (15)
  259. #define AUX_MPU_PROBE (0x44c)
  260. #define AUX_MPU_ECR (0x420)
  261. #define AUX_NSC_TABLE_BASE (0x269)
  262. #define AUX_NSC_TABLE_TOP (0x268)
  263. /** @} */
  264. /**
  265. * \name exception cause register (ECR) bit-field definition
  266. * @{
  267. */
  268. #define AUX_ECR_VEC_MASK (0xff0000) /*!< [23:16] = exception vector */
  269. #define AUX_ECR_CODE_MASK (0x00ff00) /*!< [15: 8] = exception cause code */
  270. #define AUX_ECR_PARAM_MASK (0x0000ff) /*!< [ 7: 0] = exception parameters */
  271. /** @} */
  272. /**
  273. * \name exception vector number and cause code
  274. * @{
  275. */
  276. #define AUX_ECR_V_INSN_ERR (0x02) /*!< vector number of illegal instruction */
  277. #define AUX_ECR_V_MACH_CHK (0x03) /*!< vector number of machine check */
  278. #define AUX_ECR_V_ITLB_MISS (0x04) /*!< vector number of instruction TLB missing exception */
  279. #define AUX_ECR_V_DTLB_MISS (0x05) /*!< vector number of data TLB missing exception */
  280. #define AUX_ECR_V_PROTV (0x06) /*!< vector number of protection violation */
  281. #define AUX_ECR_V_TRAP (0x09) /*!< vector number of trap */
  282. #define AUX_ECR_V_MISALIG_DATA (0x0d) /*!< vector number of misaligned data access */
  283. #define AUX_ECR_C_PROTV_INST_FETCH (0x00) /*!< cause code of instruction fetch (protection violation) */
  284. #define AUX_ECR_C_PROTV_LOAD (0x01) /*!< cause code related memory read (protection violation) */
  285. #define AUX_ECR_C_PROTV_STORE (0x02) /*!< cause code related memory write (protection violation) */
  286. #define AUX_ECR_C_PROTV_XCHG (0x03) /*!< cause code related read-modify-write (protection violation) */
  287. #define AUX_ECR_C_MCHK_DUP_TLB (0x01) /*!< \todo definition is to be added. */
  288. #define AUX_ECR_C_BIT_DTLB_LD_MISS (8) /*!< \todo definition is to be added. */
  289. #define AUX_ECR_C_BIT_DTLB_ST_MISS (9) /*!< \todo definition is to be added. */
  290. /** @} */
  291. /**
  292. * \name interrupt related auxiliary register
  293. * @{
  294. */
  295. #define AUX_IRQ_CTRL (0xe) /*!< interrupt context saving control register */
  296. #define AUX_INT_VECT_BASE (0x25) /*!< interrupt vector base register */
  297. #define AUX_INT_VECT_BASE_S (0x26) /*!< secure interrupt vector based register */
  298. #define AUX_IRQ_ACT (0x43) /*!< active interrupts register */
  299. #define AUX_IRQ_CAUSE (0x40a) /*!< interrupt cause register */
  300. #define AUX_IRQ_SELECT (0x40b) /*!< interrupt select register */
  301. #define AUX_IRQ_PRIORITY (0x206) /*!< interrupt priority register */
  302. #define AUX_IRQ_PRIORITY_BIT_S (0x8) /*!< S bit offset in interrupt priority register */
  303. #define AUX_IRQ_ENABLE (0x40c) /*!< interrupt enable register */
  304. #define AUX_IRQ_TRIGGER (0x40d) /*!< interrupt trigger: level or pulse */
  305. #define AUX_IRQ_PENDING (0x416) /*!< interrupt pending register */
  306. #define AUX_IRQ_PLUSE_CLR (0x415) /*!< interrupt pulse cancel register */
  307. #define AUX_IRQ_STATUS (0x40f) /*!< interrupt status register */
  308. #define AUX_IRQ_PRI_PENDING (0x200) /*!< interrupt priority pending register */
  309. #define AUX_IRQ_HINT (0x201) /*!< software interrupt trigger */
  310. /** @} */
  311. /**
  312. * \name cache related auxiliary register
  313. * @{
  314. */
  315. #define AUX_IC_IVIC (0x10) /*!< invalidate instruction cache */
  316. #define AUX_IC_CTRL (0x11) /*!< instruction cache control register */
  317. #define AUX_IC_LIL (0x13) /*!< lock instruction cache line */
  318. #define AUX_IC_IVIL (0x19) /*!< invalidate instruction cache line */
  319. #define AUX_IC_RAM_ADDR (0x1a) /*!< instruction cache external access address */
  320. #define AUX_IC_TAG (0x1b) /*!< instruction cache tag access */
  321. #define AUX_IC_DATA (0x1d) /*!< instruction cache data access */
  322. #define AUX_DC_IVDC (0x47) /*!< invalidate data cache */
  323. #define AUX_DC_CTRL (0x48) /*!< data cache control register */
  324. #define AUX_DC_LDL (0x49) /*!< lock data cache line */
  325. #define AUX_DC_IVDL (0x4a) /*!< invalidate data cache line */
  326. #define AUX_DC_FLSH (0x4b) /*!< flush data cache */
  327. #define AUX_DC_FLDL (0x4c) /*!< flush data line */
  328. #define AUX_DC_RAM_ADDR (0x58) /*!< data cache external access address */
  329. #define AUX_DC_TAG (0x59) /*!< data cache tag access */
  330. #define AUX_DC_DATA (0x5b) /*!< data cache data access */
  331. /** @} */
  332. /**
  333. * \name dmac related auxiliary register
  334. * @{
  335. */
  336. #define AUX_DMACTRL (0x680) /*!< DMA control register */
  337. #define AUX_DMACENB (0x681) /*!< DMA channel enable register */
  338. #define AUX_DMACDSB (0x682) /*!< DMA channel disable register */
  339. #define AUX_DMACHPRI (0x683) /*!< DMA channel high priority level register */
  340. #define AUX_DMACNPRI (0x684) /*!< DMA channel normal priority level register */
  341. #define AUX_DMACREQ (0x685) /*!< DMA channel transfer request register */
  342. #define AUX_DMACSTAT0 (0x686) /*!< DMA channel status register 0 */
  343. #define AUX_DMACSTAT1 (0x687) /*!< DMA channel status register 1 */
  344. #define AUX_DMACIRQ (0x688) /*!< DMA channel interrupt request status/clear register */
  345. #define AUX_DMACBASE (0x689) /*!< DMA channel structure register base address */
  346. #define AUX_DMACRST (0x68A) /*!< DMA channel reset register base address */
  347. #define AUX_DMACTRL0 (0x690) /*!< DMA channel 0 control register when mapped in aux */
  348. #define AUX_DMASAR0 (0x691) /*!< DMA channel 0 source address register when mapped in aux */
  349. #define AUX_DMADAR0 (0x692) /*!< DMA channel 0 destination register when mapped in aux */
  350. #define AUX_DMACTRLx (AUX_DMACTRL0) /*!< DMA channel 0 control register when mapped in aux */
  351. #define AUX_DMASARx (AUX_DMASAR0) /*!< DMA channel 0 source address register when mapped in aux */
  352. #define AUX_DMADARx (AUX_DMADAR0) /*!< DMA channel 0 destination register when mapped in aux */
  353. /** @} */
  354. /**
  355. * \name other auxiliary register
  356. * @{
  357. */
  358. #define AUX_IDENTITY (0x4) /*!< identity register */
  359. #define AUX_DMP_PERIPHERAL (0x20a) /*!< peripheral memory region */
  360. #define AUX_XFLAGS (0x44f) /*!< user extension flags register */
  361. #define AUX_MCIP_CMD (0x600) /*!< \todo definition is to be added. */
  362. #define AUX_MCIP_WDATA (0x601) /*!< \todo definition is to be added. */
  363. #define AUX_MCIP_READBACK (0x602) /*!< \todo definition is to be added. */
  364. #define AUX_SMART_CONTROL (0x700) /*!< \todo definition is to be added. */
  365. #define AUX_SMART_DATA (0x701) /*!< \todo definition is to be added. */
  366. /** @} */
  367. #ifdef __cplusplus
  368. extern "C" {
  369. #endif
  370. #ifndef __ASSEMBLY__
  371. /* add type definition and function declaration here */
  372. #endif /* assembly */
  373. #ifdef __cplusplus
  374. }
  375. #endif
  376. #endif /* _ARC_HAL_CORE_H_ */
  377. /** @} */