mcchip.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:19k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* mcchip.h - Memory Controller ASIC (MCchip) */
  2. /* Copyright 1984-1997 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01d,29sep98,fle  doc : made it refgen parsable
  7. 01c,10feb97,dat  added VERSION_REG_MC68060
  8. 01b,30sep96,db   fixed timeout constants(spr #7228)
  9. 01a,06jan93,ccc  written.
  10. */
  11. #ifdef DOC
  12. #define INCmcchiph
  13. #endif /* DOC */
  14. #ifndef __INCmccchiph
  15. #define __INCmccchiph
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19. /*
  20.  * This file contains constants for the Memory Controller ASIC (MCchip).
  21.  * The macro MCC_BASE_ADRS must be defined when including this header.
  22.  */
  23. #ifdef _ASMLANGUAGE
  24. #define CAST
  25. #define CASTINT
  26. #else
  27. #define CAST (char *)
  28. #define CASTINT (int *)
  29. #endif /* _ASMLANGUAGE */
  30. /* on-board access, register definitions */
  31. #define MCC_REG_INTERVAL 1
  32. #ifndef MCC_ADRS /* to permit alternative board addressing */
  33. #define MCC_ADRS(reg)   (CAST (MCC_BASE_ADRS + (reg * MCC_REG_INTERVAL)))
  34. #define MCC_ADRS_INT(reg)  (CASTINT (MCC_BASE_ADRS + 
  35.    (reg * MCC_REG_INTERVAL)))
  36. #endif /* MCC_ADRS */
  37. #define MCC_ID MCC_ADRS(0x00) /* Chip ID        */
  38. #define MCC_REVISION MCC_ADRS(0x01) /* Chip Revision        */
  39. #define MCC_GCR MCC_ADRS(0x02) /* General Control Register   */
  40. #define MCC_VBR MCC_ADRS(0x03) /* Vector Base Register       */
  41. #define MCC_TIMER1_CMP MCC_ADRS_INT(0x04) /* Tick Timer 1 Comp Reg  */
  42. #define MCC_TIMER1_CMP_UU MCC_ADRS(0x04) /* Tick Timer 1 Comp Reg - UU */
  43. #define MCC_TIMER1_CMP_UL MCC_ADRS(0x05) /*  - UL */
  44. #define MCC_TIMER1_CMP_LU MCC_ADRS(0x06) /*  - LU */
  45. #define MCC_TIMER1_CMP_LL MCC_ADRS(0x07) /*  - LL */
  46. #define MCC_TIMER1_CNT MCC_ADRS_INT(0x08) /* Tick Timer 1 Count Reg */
  47. #define MCC_TIMER1_CNT_UU MCC_ADRS(0x08) /* Tick Timer 1 Cnt Reg - UU  */
  48. #define MCC_TIMER1_CNT_UL MCC_ADRS(0x09) /* - UL  */
  49. #define MCC_TIMER1_CNT_LU MCC_ADRS(0x0a) /* - LU  */
  50. #define MCC_TIMER1_CNT_LL MCC_ADRS(0x0b) /* - LL  */
  51. #define MCC_TIMER2_CMP MCC_ADRS_INT(0x0c) /* Tick Timer 2 Comp Reg  */
  52. #define MCC_TIMER2_CMP_UU MCC_ADRS(0x0c) /* Tick Timer 2 Comp Reg - UU */
  53. #define MCC_TIMER2_CMP_UL MCC_ADRS(0x0d) /*  - UL */
  54. #define MCC_TIMER2_CMP_LU MCC_ADRS(0x0e) /*  - LU */
  55. #define MCC_TIMER2_CMP_LL MCC_ADRS(0x0f) /*  - LL */
  56. #define MCC_TIMER2_CNT MCC_ADRS_INT(0x10) /* Tick Timer 2 Count Reg */
  57. #define MCC_TIMER2_CNT_UU MCC_ADRS(0x10) /* Tick Timer 2 Cnt Reg - UU  */
  58. #define MCC_TIMER2_CNT_UL MCC_ADRS(0x11) /* - UL  */
  59. #define MCC_TIMER2_CNT_LU MCC_ADRS(0x12) /* - LU  */
  60. #define MCC_TIMER2_CNT_LL MCC_ADRS(0x13) /* - LL  */
  61. #define MCC_PRESCALE MCC_ADRS(0x14) /* Prescaler Count Register   */
  62. #define MCC_PRESCALE_CLK_ADJ MCC_ADRS(0x15) /* Prescaler Clock Adjust     */
  63. #define MCC_TIMER2_CR MCC_ADRS(0x16) /* Tick Timer 2 Ctrl Reg      */
  64. #define MCC_TIMER1_CR MCC_ADRS(0x17) /* Tick Timer 1 Ctrl Reg      */
  65. #define MCC_T4_IRQ_CR MCC_ADRS(0x18) /* Tick Timer 4 Inter CR      */
  66. #define MCC_T3_IRQ_CR MCC_ADRS(0x19) /* Tick Timer 3 Inter CR      */
  67. #define MCC_T2_IRQ_CR MCC_ADRS(0x1a) /* Tick Timer 2 Inter CR      */
  68. #define MCC_T1_IRQ_CR MCC_ADRS(0x1b) /* Tick Timer 1 Inter CR      */
  69. #define MCC_PARITY_ICR MCC_ADRS(0x1c) /* DRAM Parity Int Ctrl Reg   */
  70. #define MCC_SCC_ICR MCC_ADRS(0x1d) /* SCC Inter Ctrl Reg         */
  71. #define MCC_TIMER4_CR MCC_ADRS(0x1e) /* Tick Timer 4 Ctrl Reg      */
  72. #define MCC_TIMER3_CR MCC_ADRS(0x1f) /* Tick Timer 3 Ctrl Reg      */
  73. #define MCC_DRAM_BASE_AR_HIGH MCC_ADRS(0x20) /* DRAM Space Base Addr (hi)  */
  74. #define MCC_DRAM_BASE_AR_LOW MCC_ADRS(0x21) /* DRAM Space Base Addr (low) */
  75. #define MCC_SRAM_BASE_AR_HIGH MCC_ADRS(0x22) /* SRAM Space Base Addr (hi)  */
  76. #define MCC_SRAM_BASE_AR_LOW MCC_ADRS(0x23) /* SRAM Space Base Adrs (low) */
  77. #define MCC_DRAM_SPACE_SIZE MCC_ADRS(0x24) /* DRAM Space Size            */
  78. #define MCC_DRAM_SRAM_OPTIONS MCC_ADRS(0x25) /* DRAM/SRAM Options          */
  79. #define MCC_SRAM_SPACE_SIZE MCC_ADRS(0x26) /* SRAM Space Size            */
  80. #define MCC_LANC_ERR_SR MCC_ADRS(0x28) /* LANC Error Status Register */
  81. #define MCC_LANC_IRQ_CR MCC_ADRS(0x2a) /* LANC Inter Ctrl Reg       */
  82. #define MCC_LANC_BEICR MCC_ADRS(0x2b) /* LANC Bus Error Inter CR    */
  83. #define MCC_SCSI_ERR_SR MCC_ADRS(0x2c) /* SCSI Error Status Register */
  84. #define MCC_GENERAL_INPUT MCC_ADRS(0x2d) /* General Purpose Input Reg  */
  85. #define MCC_VERSION_REG MCC_ADRS(0x2e) /* Board Version              */
  86. #define MCC_SCSI_IRQ_CR MCC_ADRS(0x2f) /* SCSI Inter Control Reg     */
  87. #define MCC_TIMER3_CMP MCC_ADRS_INT(0x30) /* Tick Timer 3 Cmp Reg    */
  88. #define MCC_TIMER3_CMP_UU MCC_ADRS(0x30) /* Tick Timer 3 Cmp Reg - UU  */
  89. #define MCC_TIMER3_CMP_UL MCC_ADRS(0x31) /*                      - UL  */
  90. #define MCC_TIMER3_CMP_LU MCC_ADRS(0x32) /*                      - LU  */
  91. #define MCC_TIMER3_CMP_LL MCC_ADRS(0x33) /*                      - LL  */
  92. #define MCC_TIMER3_CNT MCC_ADRS_INT(0x34) /* Tick Timer 3 Count Reg  */
  93. #define MCC_TIMER3_CNT_UU MCC_ADRS(0x34) /* Tick Timer 3 Cnt Reg - UU  */
  94. #define MCC_TIMER3_CNT_UL MCC_ADRS(0x35) /*                      - UL  */
  95. #define MCC_TIMER3_CNT_LU MCC_ADRS(0x36) /*                      - LU  */
  96. #define MCC_TIMER3_CNT_LL MCC_ADRS(0x37) /*                      - LL  */
  97. #define MCC_TIMER4_CMP MCC_ADRS_INT(0x38) /* Tick Timer 4 Cmp Reg    */
  98. #define MCC_TIMER4_CMP_UU       MCC_ADRS(0x38)  /* Tick Timer 4 Cmp Reg - UU  */
  99. #define MCC_TIMER4_CMP_UL       MCC_ADRS(0x39)  /*                      - UL  */
  100. #define MCC_TIMER4_CMP_LU       MCC_ADRS(0x3a)  /*                      - LU  */
  101. #define MCC_TIMER4_CMP_LL       MCC_ADRS(0x3b)  /*                      - LL  */
  102. #define MCC_TIMER4_CNT          MCC_ADRS_INT(0x3c) /* Tick Timer 4 Count Reg  */
  103. #define MCC_TIMER4_CNT_UU       MCC_ADRS(0x3c)  /* Tick Timer 4 Cnt Reg - UU  */
  104. #define MCC_TIMER4_CNT_UL       MCC_ADRS(0x3d)  /*                      - UL  */
  105. #define MCC_TIMER4_CNT_LU       MCC_ADRS(0x3e)  /*                      - LU  */
  106. #define MCC_TIMER4_CNT_LL       MCC_ADRS(0x3f)  /*                      - LL  */
  107. #define MCC_BUS_CLK_REG MCC_ADRS(0x40) /* Bus Clock Register         */
  108. #define MCC_PROM_ACCESS_TIME MCC_ADRS(0x41) /* PROM access time register  */
  109. #define MCC_FLASH_ACCESS_TIME MCC_ADRS(0x42) /* FLASH access time register */
  110. #define MCC_ABORT_ICR MCC_ADRS(0x43) /* ABORT switch int cont reg  */
  111. #define MCC_RESET_CR MCC_ADRS(0x44) /* RESET switch control reg   */
  112. #define MCC_WD_TIMER_CR MCC_ADRS(0x45) /* Watchdog timer control reg */
  113. #define MCC_WD_TIMEOUT_REG MCC_ADRS(0x46) /* Access and watchdog times  */
  114. #define MCC_DRAM_CONTROL_REG MCC_ADRS(0x48) /* DRAM control register      */
  115. #define MCC_MPU_STATUS_REG MCC_ADRS(0x4a) /* MPU status register        */
  116. #define MCC_PRESCALE_COUNT MCC_ADRS_INT(0x4c) /* 32-bit prescale count   */
  117. /* GCR 0x02 General Control Register */
  118. #define GCR_FAST_ON 0x01 /* Enable fast access for BBRAM 0 */
  119. #define GCR_FAST_OFF 0x00 /* Disable fast access for BBRAM 0 */
  120. #define GCR_MIEN_ON 0x02 /* Master Interrupt Enable 1 */
  121. #define GCR_MIEN_OFF 0x00 /* Master Interrupt Enable OFF 1 */
  122. /* VBR 0x03 Vector Base Register */
  123. #define MCC_INT_TT4 0x3 /* Tick Timer 4 IRQ */
  124. #define MCC_INT_TT3 0x4 /* Tick Timer 3 IRQ */
  125. #define MCC_INT_SCSI 0x5 /* SCSI IRQ */
  126. #define MCC_INT_LANC_ERR 0x6 /* LANC ERR */
  127. #define MCC_INT_LANC 0x7 /* LANC IRQ */
  128. #define MCC_INT_TT2 0x8 /* Tick Timer 2 IRQ */
  129. #define MCC_INT_TT1 0x9 /* Tick Timer 1 IRQ */
  130. #define MCC_INT_PARITY_ERROR 0xb /* Parity Error IRQ */
  131. #define MCC_INT_ABORT 0xe /* ABORT switch IRQ */
  132. /* TIMER2_CR 0x16 Tick Timer 2 Control Register */
  133. #define TIMER2_CR_CEN 0x01 /* Counter Enable 0 */
  134. #define TIMER2_CR_DIS 0x00 /* Counter Disable 0 */
  135. #define TIMER2_CR_COC 0x02 /* Clear On Compare 1 */
  136. #define TIMER2_CR_COVF 0x04 /* Clear Overflow Counter 2 */
  137. /* TIMER1_CR 0x17 Tick Timer 1 Control Register */
  138. #define TIMER1_CR_CEN 0x01 /* Counter Enable 0 */
  139. #define TIMER1_CR_DIS 0x00 /* Counter Disable 0 */
  140. #define TIMER1_CR_COC 0x02 /* Clear On Compare 1 */
  141. #define TIMER1_CR_COVF 0x04 /* Clear Overflow Counter 2 */
  142. /* T4_IRQ_CR            0x18    Tick Timer 4 Interrupt Control Register */
  143.  
  144. #define T4_IRQ_CR_ICLR  0x08    /* Clear IRQ                            3 */
  145. #define T4_IRQ_CR_IEN   0x10    /* Interrupt Enable                     4 */
  146. #define T4_IRQ_CR_DIS   0x00    /* Interrupt Disable                    4 */
  147. #define T4_IRQ_CR_INT   0x20    /* Interrupt Status                     5 */
  148.  
  149. /* T3_IRQ_CR            0x19    Tick Timer 3 Interrupt Control Register */
  150.  
  151. #define T3_IRQ_CR_ICLR  0x08    /* Clear IRQ                            3 */
  152. #define T3_IRQ_CR_IEN   0x10    /* Interrupt Enable                     4 */
  153. #define T3_IRQ_CR_DIS   0x00    /* Interrupt Disable                    4 */
  154. #define T3_IRQ_CR_INT   0x20    /* Interrupt Status                     5 */
  155. /* T2_IRQ_CR 0x1a Tick Timer 2 Interrupt Control Register */
  156. #define T2_IRQ_CR_ICLR 0x08 /* Clear IRQ 3 */
  157. #define T2_IRQ_CR_IEN 0x10 /* Interrupt Enable 4 */
  158. #define T2_IRQ_CR_DIS 0x00 /* Interrupt Disable 4 */
  159. #define T2_IRQ_CR_INT 0x20 /* Interrupt Status 5 */
  160. /* T1_IRQ_CR 0x1b Tick Timer 1 Interrupt Control Register */
  161. #define T1_IRQ_CR_ICLR 0x08 /* Clear IRQ 3 */
  162. #define T1_IRQ_CR_IEN 0x10 /* Interrupt Enable 4 */
  163. #define T1_IRQ_CR_DIS 0x00 /* Interrupt Disable 4 */
  164. #define T1_IRQ_CR_INT 0x20 /* Interrupt Status 5 */
  165. /* PARITY_ICR 0x1c DRAM Parity Error Interrupt Control Register */
  166. #define PARITY_ICR_ICLR 0x08 /* Clear IRQ 3 */
  167. #define PARITY_ICR_IEN 0x10 /* Interrupt Enable 4 */
  168. #define PARITY_ICR_DIS 0x00 /* Interrupt Disable 4 */
  169. #define PARITY_ICR_INT 0x20 /* Interrupt Status 5 */
  170. /* SCC_ICR 0x1d SCC Interrupt Control Register */
  171. #define SCC_ICR_IEN 0x10 /* Interrupt Enable 4 */
  172. #define SCC_ICR_DIS 0x00 /* Interrupt Disable 4 */
  173. #define SCC_ICR_IRQ 0x20 /* An Interrupt has occured 5 */
  174. /* TIMER4_CR            0x1e    Tick Timer 4 Control Register   */
  175.  
  176. #define TIMER4_CR_CEN   0x01    /* Counter Enable                       0 */
  177. #define TIMER4_CR_DIS   0x00    /* Counter Disable                      0 */
  178. #define TIMER4_CR_COC   0x02    /* Clear On Compare                     1 */
  179. #define TIMER4_CR_COVF  0x04    /* Clear Overflow Counter               2 */
  180.  
  181. /* TIMER3_CR            0x1f    Tick Timer 3 Control Register   */
  182.  
  183. #define TIMER3_CR_CEN   0x01    /* Counter Enable                       0 */
  184. #define TIMER3_CR_DIS   0x00    /* Counter Disable                      0 */
  185. #define TIMER3_CR_COC   0x02    /* Clear On Compare                     1 */
  186. #define TIMER3_CR_COVF  0x04    /* Clear Overflow Counter               2 */
  187. /* DRAM_SPACE_SIZE 0x24 DRAM Space Size Register */
  188. #define DRAM_SPACE_SIZE_1MB 0x00 /* 1 MB with 4 Mbit DRAMs        2-0 */
  189. #define DRAM_SPACE_SIZE_2MB 0x01 /* 2 MB with 4 Mbit DRAMs            */
  190. #define DRAM_SPACE_SIZE_4MB4 0x03 /* 4 MB with 4 Mbit DRAMs interleave */
  191. #define DRAM_SPACE_SIZE_4MB16 0x04 /* 4 MB with 16 Mbit DRAMs           */
  192. #define DRAM_SPACE_SIZE_8MB 0x05 /* 8 MB with 16 Mbit DRAMs           */
  193. #define DRAM_SPACE_SIZE_NONE 0x06 /* DRAM mezzanine is not present     */
  194. #define DRAM_SPACE_SIZE_16MB 0x07 /* 16 MB with 16 Mbit DRAMs int'leve */
  195. /* DRAM_SRAM_OPTIONS 0x25 DRAM/SRAM Options Register */
  196. #define DRAM_SRAM_OPTIONS_DMASK 0x07 /* Mask for DRAM bits         2-0 */
  197. #define DRAM_SRAM_OPTIONS_SMASK 0x18 /* Mask for SRAM bits         4-3 */
  198. /* SRAM_SPACE_SIZE 0x26 SRAM Space Size Register */
  199. #define SRAM_SPACE_512K 0x01 /* 512 KB */
  200. #define SRAM_SPACE_1MB 0x02 /* 1MB */
  201. #define SRAM_SPACE_2MB 0x03 /* 2MB */
  202. #define SRAM_SPACE_ENABLE 0x04 /* SRAM enable */
  203. /* LANC_ERR_SR 0x28 LANC Error Status Register */
  204. #define LANC_ERR_SR_SCLR 0x01 /* Clear Error Status Bits 0 */
  205. #define LANC_ERR_SR_LTO 0x02 /* Local Time out error 1 */
  206. #define LANC_ERR_SR_EXT 0x04 /* VMEbus error 2 */
  207. #define LANC_ERR_SR_PRTY 0x08 /* DRAM Parity Error 3 */
  208. /* LANC_IRQ_CR 0x2a LANC Interrupt Control Register */
  209. #define LANC_IRQ_CR_ICLR 0x08 /* Clear IRQ in edge mode 3 */
  210. #define LANC_IRQ_CR_IEN 0x10 /* Interrupt Enable 4 */
  211. #define LANC_IRQ_CR_DIS 0x00 /* Interrupt Disable 4 */
  212. #define LANC_IRQ_CR_INT 0x20 /* Interrupt Status 5 */
  213. #define LANC_IRQ_CR_EDGE 0x40 /* Edge sensitive IRQ 6 */
  214. #define LANC_IRQ_CR_LEVEL 0x00 /* Level sensitive IRQ 6 */
  215. #define LANC_IRQ_CR_HIGH_LOW 0x00 /* IRQ on RISING or HIGH 7 */
  216. #define LANC_IRQ_CR_LOW_HIGH 0x80 /* IRQ on FALLING or LOW 7 */
  217. /* LANC_BEICR 0x2b LANC Bus Error Interrupt Control Register */
  218. #define LANC_BEICR_ICLR 0x08 /* Clear IRQ 3 */
  219. #define LANC_BEICR_IEN 0x10 /* Interrupt Enable 4 */
  220. #define LANC_BEICR_DIS 0x00 /* Interrupt Disable 4 */
  221. #define LANC_BEICR_IRQ 0x20 /* Interrupt Status 5 */
  222. #define LANC_BEICR_NO_SNOOP 0x00 /* Inhibit Snoop 7-6 */
  223. #define LANC_BEICR_SINK_DATA 0x40 /* Sink Data 7-6 */
  224. #define LANC_BEICR_INVALIDATE 0x80 /* Invalidate Line 7-6 */
  225. /* SCSI_ERR_SR 0x2c SCSI Error Status Register */
  226. #define SCSI_ERR_SR_SCLR 0x01 /* Clear Error Status Bits 0 */
  227. #define SCSI_ERR_SR_LTO 0x02 /* Local Time out error 1 */
  228. #define SCSI_ERR_SR_EXT 0x04 /* VMEbus error 2 */
  229. #define SCSI_ERR_SR_PRTY 0x08 /* DRAM Parity Error 3 */
  230. /* VERSION_REG 0x2e Version Register */
  231. #define VERSION_REG_SPEED 0x01 /* 0=25MHz, 1=33MHz             0 */
  232. #define VERSION_REG_VMECHIP 0x02 /* 0=present, 1=not installed   1 */
  233. #define VERSION_REG_SCSI 0x04 /* 0=present, 1=not installed   2 */
  234. #define VERSION_REG_ETHERNET 0x08 /* 0=present, 1=not installed   3 */
  235. #define VERSION_REG_MC68040 0x10 /* 1=MC68040, 0=MC68LC040       4 */
  236. #define VERSION_REG_MC68060     0x10    /* 1=MC68060, 0=MC68LC060       4 */
  237. #define VERSION_REG_FLASH 0x20 /* address location             5 */
  238. #define VERSION_REG_IPIC2 0x40 /* 0=present, 1=not installed   6 */
  239. #define VERSION_REG_IPIC1 0x80 /* 0=present, 1=not installed   7 */
  240. /* SCSI_IRQ_CR 0x2f SCSI Interrupt Control Register */
  241. #define SCSI_IRQ_CR_IEN 0x10 /* Interrupt Enable 4 */
  242. #define SCSI_IRQ_CR_DIS 0x00 /* Interrupt Disable 4 */
  243. #define SCSI_IRQ_CR_IRQ 0x20 /* Interrupt Status 5 */
  244. /* PROM_ACCESS_TIME 0x41 PROM Access Timer Control Register */
  245. #define PROM_ACCESS_25M_60NS 0x00 /* 25 MHz -  60 ns */
  246. #define PROM_ACCESS_25M_100NS 0x01 /*        - 100 ns */
  247. #define PROM_ACCESS_25M_140NS 0x02 /*        - 140 ns */
  248. #define PROM_ACCESS_25M_180NS 0x03 /*        - 180 ns */
  249. #define PROM_ACCESS_25M_220NS 0x04 /*        - 220 ns */
  250. #define PROM_ACCESS_25M_260NS 0x05 /*        - 260 ns */
  251. #define PROM_ACCESS_25M_300NS 0x06 /*        - 300 ns */
  252. #define PROM_ACCESS_25M_340NS 0x07 /*        - 340 ns */
  253. #define PROM_ACCESS_33M_40NS    0x00    /* 33 MHz -  40 ns */
  254. #define PROM_ACCESS_33M_70NS    0x01    /*        -  70 ns */
  255. #define PROM_ACCESS_33M_100NS   0x02    /*        - 100 ns */
  256. #define PROM_ACCESS_33M_130NS   0x03    /*        - 130 ns */
  257. #define PROM_ACCESS_33M_160NS   0x04    /*        - 160 ns */
  258. #define PROM_ACCESS_33M_190NS   0x05    /*        - 190 ns */
  259. #define PROM_ACCESS_33M_210NS   0x06    /*        - 210 ns */
  260. #define PROM_ACCESS_33M_240NS   0x07    /*        - 240 ns */
  261. /* FLASH_ACCESS_TIME     0x42    PROM Access Timer Control Register */
  262. #define FLASH_ACCESS_25M_60NS   0x00    /* 25 MHz -  60 ns */
  263. #define FLASH_ACCESS_25M_100NS  0x01    /*        - 100 ns */
  264. #define FLASH_ACCESS_25M_140NS  0x02    /*        - 140 ns */
  265. #define FLASH_ACCESS_25M_180NS  0x03    /*        - 180 ns */
  266. #define FLASH_ACCESS_25M_220NS  0x04    /*        - 220 ns */
  267. #define FLASH_ACCESS_25M_260NS  0x05    /*        - 260 ns */
  268. #define FLASH_ACCESS_25M_300NS  0x06    /*        - 300 ns */
  269. #define FLASH_ACCESS_25M_340NS  0x07    /*        - 340 ns */
  270. #define FLASH_ACCESS_33M_40NS   0x00    /* 33 MHz -  40 ns */
  271. #define FLASH_ACCESS_33M_70NS   0x01    /*        -  70 ns */
  272. #define FLASH_ACCESS_33M_100NS  0x02    /*        - 100 ns */
  273. #define FLASH_ACCESS_33M_130NS  0x03    /*        - 130 ns */
  274. #define FLASH_ACCESS_33M_160NS  0x04    /*        - 160 ns */
  275. #define FLASH_ACCESS_33M_190NS  0x05    /*        - 190 ns */
  276. #define FLASH_ACCESS_33M_210NS  0x06    /*        - 210 ns */
  277. #define FLASH_ACCESS_33M_240NS  0x07    /*        - 240 ns */
  278. /* ABORT_ICR            0x43    ABORT Switch Interrupt Control Register */
  279. #define ABORT_ICR_ICLR  0x08    /* Clear IRQ                            3 */
  280. #define ABORT_ICR_IEN   0x10    /* Interrupt Enable                     4 */
  281. #define ABORT_ICR_DIS   0x00    /* Interrupt Disable                    4 */
  282. #define ABORT_ICR_INT   0x20    /* Interrupt Status                     5 */
  283. /* RESET_CR 0x44 RESET Switch Control Register */
  284. #define RESET_CR_BRFLI 0x10 /* Board Fail Status                    4 */
  285. #define RESET_CR_PURS 0x08 /* Power-up Reset Status                3 */
  286. #define RESET_CR_CPURS 0x04 /* Clear Power-up Reset                 2 */
  287. #define RESET_CR_BDFLO 0x02 /* Board Fail Assert                    1 */
  288. #define RESET_CR_RSWE 0x01 /* RESET Switch Enable                  0 */
  289. /* WD_TIMER_CR 0x45 Watchdog Timer Control Register */
  290. #define WD_TIMER_CR_WDCS  0x40 /* Clear Watchdog Timeout Status        6 */
  291. #define WD_TIMER_CR_WDCC  0x20 /* Clear Watchdog Counter               5 */
  292. #define WD_TIMER_CR_WDTO  0x10 /* Watchdog Timer Status Bit            4 */
  293. #define WD_TIMER_CR_WDBFE 0x08 /* Watchdog Timeout Asserts Fail        3 */
  294. #define WD_TIMER_CR_WDRSE 0x02 /* Watchdog Timeout Asserts LRESET      1 */
  295. #define WD_TIMER_CR_WDEN  0x01 /* Watchdog Timer Enable                0 */
  296. #define WD_TIMER_CR_DIS   0x00  /* Watchdog Timer Disable                 */
  297. /* WD_TIMEOUT_REG 0x46 Access and Watchdog Time Base Select Reg */
  298. #define WD_TIMEOUT_REG_WD_512US 0x00 /* Watchdog Timeout:  512us    3-0 */
  299. #define WD_TIMEOUT_REG_WD_1MS 0x01 /*                      1ms        */
  300. #define WD_TIMEOUT_REG_WD_2MS 0x02 /*                      2ms        */
  301. #define WD_TIMEOUT_REG_WD_4MS   0x03    /*                      4ms        */
  302. #define WD_TIMEOUT_REG_WD_8MS   0x04    /*                      8ms        */
  303. #define WD_TIMEOUT_REG_WD_16MS  0x05    /*                     16ms        */
  304. #define WD_TIMEOUT_REG_WD_32MS  0x06    /*                     32ms        */
  305. #define WD_TIMEOUT_REG_WD_64MS  0x07    /*                     64ms        */
  306. #define WD_TIMEOUT_REG_WD_128MS 0x08    /*                    128ms        */
  307. #define WD_TIMEOUT_REG_WD_256MS 0x09    /*                    256ms        */
  308. #define WD_TIMEOUT_REG_WD_512MS 0x0a    /*                    512ms        */
  309. #define WD_TIMEOUT_REG_WD_1S    0x0b    /*                      1s         */
  310. #define WD_TIMEOUT_REG_WD_4S    0x0c    /*                      4s         */
  311. #define WD_TIMEOUT_REG_WD_16S   0x0d    /*                     16s         */
  312. #define WD_TIMEOUT_REG_WD_32S   0x0e    /*                     32s         */
  313. #define WD_TIMEOUT_REG_WD_64S   0x0f    /*                     64s         */
  314. #define WD_TIMEOUT_REG_LB_8US   0x00    /* Local Bus Timeout:   8us    5-4 */
  315. #define WD_TIMEOUT_REG_LB_64US  0x10    /*                     64us        */
  316. #define WD_TIMEOUT_REG_LB_256US 0x20    /*                    256us        */
  317. #define WD_TIMEOUT_REG_LB_NONE  0x30    /*                     none        */
  318. /* DRAM_CONTROL_REG 0x48 DRAM Control Register */
  319. #define DRAM_CONTROL_REG_RAM_EN 0x01 /* DRAM Enable                   0 */
  320. #define DRAM_CONTROL_REG_PAR_EN 0x02 /* DRAM Parity Check Enable      1 */
  321. #define DRAM_CONTROL_REG_PAR_IN 0x04 /* DRAM Parity Error -> IRQ      2 */
  322. /* MPU_STATUS_REG 0x4a MPU Status Register */
  323. #define MPU_STATUS_REG_MLTO 0x01 /* MPU received Local Bus Timeout 0 */
  324. #define MPU_STATUS_REG_MLPE 0x02 /* MPU received Parity Error      1 */
  325. #define MPU_STATUS_REG_MLBE 0x04 /* MPU received TEA               2 */
  326. #define MPU_STATUS_REG_MCLR 0x08 /* Clear MPU status bits          3 */
  327. #ifdef __cplusplus
  328. }
  329. #endif
  330. #endif /* __INCmccchiph */