hd64572.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. /*
  2. * hd64572.h Description of the Hitachi HD64572 (SCA-II), valid for
  3. * CPU modes 0 & 2.
  4. *
  5. * Author: Ivan Passos <ivan@cyclades.com>
  6. *
  7. * Copyright: (c) 2000-2001 Cyclades Corp.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version
  12. * 2 of the License, or (at your option) any later version.
  13. *
  14. * $Log: hd64572.h,v $
  15. * Revision 3.1 2001/06/15 12:41:10 regina
  16. * upping major version number
  17. *
  18. * Revision 1.1.1.1 2001/06/13 20:24:49 daniela
  19. * PC300 initial CVS version (3.4.0-pre1)
  20. *
  21. * Revision 1.0 2000/01/25 ivan
  22. * Initial version.
  23. *
  24. */
  25. #ifndef __HD64572_H
  26. #define __HD64572_H
  27. /* Illegal Access Register */
  28. #define ILAR 0x00
  29. /* Wait Controller Registers */
  30. #define PABR0L 0x20 /* Physical Addr Boundary Register 0 L */
  31. #define PABR0H 0x21 /* Physical Addr Boundary Register 0 H */
  32. #define PABR1L 0x22 /* Physical Addr Boundary Register 1 L */
  33. #define PABR1H 0x23 /* Physical Addr Boundary Register 1 H */
  34. #define WCRL 0x24 /* Wait Control Register L */
  35. #define WCRM 0x25 /* Wait Control Register M */
  36. #define WCRH 0x26 /* Wait Control Register H */
  37. /* Interrupt Registers */
  38. #define IVR 0x60 /* Interrupt Vector Register */
  39. #define IMVR 0x64 /* Interrupt Modified Vector Register */
  40. #define ITCR 0x68 /* Interrupt Control Register */
  41. #define ISR0 0x6c /* Interrupt Status Register 0 */
  42. #define ISR1 0x70 /* Interrupt Status Register 1 */
  43. #define IER0 0x74 /* Interrupt Enable Register 0 */
  44. #define IER1 0x78 /* Interrupt Enable Register 1 */
  45. /* Register Access Macros (chan is 0 or 1 in _any_ case) */
  46. #define M_REG(reg, chan) (reg + 0x80*chan) /* MSCI */
  47. #define DRX_REG(reg, chan) (reg + 0x40*chan) /* DMA Rx */
  48. #define DTX_REG(reg, chan) (reg + 0x20*(2*chan + 1)) /* DMA Tx */
  49. #define TRX_REG(reg, chan) (reg + 0x20*chan) /* Timer Rx */
  50. #define TTX_REG(reg, chan) (reg + 0x10*(2*chan + 1)) /* Timer Tx */
  51. #define ST_REG(reg, chan) (reg + 0x80*chan) /* Status Cnt */
  52. #define IR0_DRX(val, chan) ((val)<<(8*(chan))) /* Int DMA Rx */
  53. #define IR0_DTX(val, chan) ((val)<<(4*(2*chan + 1))) /* Int DMA Tx */
  54. #define IR0_M(val, chan) ((val)<<(8*(chan))) /* Int MSCI */
  55. /* MSCI Channel Registers */
  56. #define MSCI0_OFFSET 0x00
  57. #define MSCI1_OFFSET 0x80
  58. #define MD0 0x138 /* Mode reg 0 */
  59. #define MD1 0x139 /* Mode reg 1 */
  60. #define MD2 0x13a /* Mode reg 2 */
  61. #define MD3 0x13b /* Mode reg 3 */
  62. #define CTL 0x130 /* Control reg */
  63. #define RXS 0x13c /* RX clock source */
  64. #define TXS 0x13d /* TX clock source */
  65. #define EXS 0x13e /* External clock input selection */
  66. #define TMCT 0x144 /* Time constant (Tx) */
  67. #define TMCR 0x145 /* Time constant (Rx) */
  68. #define CMD 0x128 /* Command reg */
  69. #define ST0 0x118 /* Status reg 0 */
  70. #define ST1 0x119 /* Status reg 1 */
  71. #define ST2 0x11a /* Status reg 2 */
  72. #define ST3 0x11b /* Status reg 3 */
  73. #define ST4 0x11c /* Status reg 4 */
  74. #define FST 0x11d /* frame Status reg */
  75. #define IE0 0x120 /* Interrupt enable reg 0 */
  76. #define IE1 0x121 /* Interrupt enable reg 1 */
  77. #define IE2 0x122 /* Interrupt enable reg 2 */
  78. #define IE4 0x124 /* Interrupt enable reg 4 */
  79. #define FIE 0x125 /* Frame Interrupt enable reg */
  80. #define SA0 0x140 /* Syn Address reg 0 */
  81. #define SA1 0x141 /* Syn Address reg 1 */
  82. #define IDL 0x142 /* Idle register */
  83. #define TRBL 0x100 /* TX/RX buffer reg L */
  84. #define TRBK 0x101 /* TX/RX buffer reg K */
  85. #define TRBJ 0x102 /* TX/RX buffer reg J */
  86. #define TRBH 0x103 /* TX/RX buffer reg H */
  87. #define TRC0 0x148 /* TX Ready control reg 0 */
  88. #define TRC1 0x149 /* TX Ready control reg 1 */
  89. #define RRC 0x14a /* RX Ready control reg */
  90. #define CST0 0x108 /* Current Status Register 0 */
  91. #define CST1 0x109 /* Current Status Register 1 */
  92. #define CST2 0x10a /* Current Status Register 2 */
  93. #define CST3 0x10b /* Current Status Register 3 */
  94. #define GPO 0x131 /* General Purpose Output Pin Ctl Reg */
  95. #define TFS 0x14b /* Tx Start Threshold Ctl Reg */
  96. #define TFN 0x143 /* Inter-transmit-frame Time Fill Ctl Reg */
  97. #define TBN 0x110 /* Tx Buffer Number Reg */
  98. #define RBN 0x111 /* Rx Buffer Number Reg */
  99. #define TNR0 0x150 /* Tx DMA Request Ctl Reg 0 */
  100. #define TNR1 0x151 /* Tx DMA Request Ctl Reg 1 */
  101. #define TCR 0x152 /* Tx DMA Critical Request Reg */
  102. #define RNR 0x154 /* Rx DMA Request Ctl Reg */
  103. #define RCR 0x156 /* Rx DMA Critical Request Reg */
  104. /* Timer Registers */
  105. #define TIMER0RX_OFFSET 0x00
  106. #define TIMER0TX_OFFSET 0x10
  107. #define TIMER1RX_OFFSET 0x20
  108. #define TIMER1TX_OFFSET 0x30
  109. #define TCNTL 0x200 /* Timer Upcounter L */
  110. #define TCNTH 0x201 /* Timer Upcounter H */
  111. #define TCONRL 0x204 /* Timer Constant Register L */
  112. #define TCONRH 0x205 /* Timer Constant Register H */
  113. #define TCSR 0x206 /* Timer Control/Status Register */
  114. #define TEPR 0x207 /* Timer Expand Prescale Register */
  115. /* DMA registers */
  116. #define PCR 0x40 /* DMA priority control reg */
  117. #define DRR 0x44 /* DMA reset reg */
  118. #define DMER 0x07 /* DMA Master Enable reg */
  119. #define BTCR 0x08 /* Burst Tx Ctl Reg */
  120. #define BOLR 0x0c /* Back-off Length Reg */
  121. #define DSR_RX(chan) (0x48 + 2*chan) /* DMA Status Reg (Rx) */
  122. #define DSR_TX(chan) (0x49 + 2*chan) /* DMA Status Reg (Tx) */
  123. #define DIR_RX(chan) (0x4c + 2*chan) /* DMA Interrupt Enable Reg (Rx) */
  124. #define DIR_TX(chan) (0x4d + 2*chan) /* DMA Interrupt Enable Reg (Tx) */
  125. #define FCT_RX(chan) (0x50 + 2*chan) /* Frame End Interrupt Counter (Rx) */
  126. #define FCT_TX(chan) (0x51 + 2*chan) /* Frame End Interrupt Counter (Tx) */
  127. #define DMR_RX(chan) (0x54 + 2*chan) /* DMA Mode Reg (Rx) */
  128. #define DMR_TX(chan) (0x55 + 2*chan) /* DMA Mode Reg (Tx) */
  129. #define DCR_RX(chan) (0x58 + 2*chan) /* DMA Command Reg (Rx) */
  130. #define DCR_TX(chan) (0x59 + 2*chan) /* DMA Command Reg (Tx) */
  131. /* DMA Channel Registers */
  132. #define DMAC0RX_OFFSET 0x00
  133. #define DMAC0TX_OFFSET 0x20
  134. #define DMAC1RX_OFFSET 0x40
  135. #define DMAC1TX_OFFSET 0x60
  136. #define DARL 0x80 /* Dest Addr Register L (single-block, RX only) */
  137. #define DARH 0x81 /* Dest Addr Register H (single-block, RX only) */
  138. #define DARB 0x82 /* Dest Addr Register B (single-block, RX only) */
  139. #define DARBH 0x83 /* Dest Addr Register BH (single-block, RX only) */
  140. #define SARL 0x80 /* Source Addr Register L (single-block, TX only) */
  141. #define SARH 0x81 /* Source Addr Register H (single-block, TX only) */
  142. #define SARB 0x82 /* Source Addr Register B (single-block, TX only) */
  143. #define DARBH 0x83 /* Source Addr Register BH (single-block, TX only) */
  144. #define BARL 0x80 /* Buffer Addr Register L (chained-block) */
  145. #define BARH 0x81 /* Buffer Addr Register H (chained-block) */
  146. #define BARB 0x82 /* Buffer Addr Register B (chained-block) */
  147. #define BARBH 0x83 /* Buffer Addr Register BH (chained-block) */
  148. #define CDAL 0x84 /* Current Descriptor Addr Register L */
  149. #define CDAH 0x85 /* Current Descriptor Addr Register H */
  150. #define CDAB 0x86 /* Current Descriptor Addr Register B */
  151. #define CDABH 0x87 /* Current Descriptor Addr Register BH */
  152. #define EDAL 0x88 /* Error Descriptor Addr Register L */
  153. #define EDAH 0x89 /* Error Descriptor Addr Register H */
  154. #define EDAB 0x8a /* Error Descriptor Addr Register B */
  155. #define EDABH 0x8b /* Error Descriptor Addr Register BH */
  156. #define BFLL 0x90 /* RX Buffer Length L (only RX) */
  157. #define BFLH 0x91 /* RX Buffer Length H (only RX) */
  158. #define BCRL 0x8c /* Byte Count Register L */
  159. #define BCRH 0x8d /* Byte Count Register H */
  160. /* Block Descriptor Structure */
  161. typedef struct {
  162. unsigned long next; /* pointer to next block descriptor */
  163. unsigned long ptbuf; /* buffer pointer */
  164. unsigned short len; /* data length */
  165. unsigned char status; /* status */
  166. unsigned char filler[5]; /* alignment filler (16 bytes) */
  167. } pcsca_bd_t;
  168. /* Block Descriptor Structure */
  169. typedef struct {
  170. u32 cp; /* pointer to next block descriptor */
  171. u32 bp; /* buffer pointer */
  172. u16 len; /* data length */
  173. u8 stat; /* status */
  174. u8 unused; /* pads to 4-byte boundary */
  175. }pkt_desc;
  176. /*
  177. Descriptor Status definitions:
  178. Bit Transmission Reception
  179. 7 EOM EOM
  180. 6 - Short Frame
  181. 5 - Abort
  182. 4 - Residual bit
  183. 3 Underrun Overrun
  184. 2 - CRC
  185. 1 Ownership Ownership
  186. 0 EOT -
  187. */
  188. #define DST_EOT 0x01 /* End of transmit command */
  189. #define DST_OSB 0x02 /* Ownership bit */
  190. #define DST_CRC 0x04 /* CRC Error */
  191. #define DST_OVR 0x08 /* Overrun */
  192. #define DST_UDR 0x08 /* Underrun */
  193. #define DST_RBIT 0x10 /* Residual bit */
  194. #define DST_ABT 0x20 /* Abort */
  195. #define DST_SHRT 0x40 /* Short Frame */
  196. #define DST_EOM 0x80 /* End of Message */
  197. /* Packet Descriptor Status bits */
  198. #define ST_TX_EOM 0x80 /* End of frame */
  199. #define ST_TX_UNDRRUN 0x08
  200. #define ST_TX_OWNRSHP 0x02
  201. #define ST_TX_EOT 0x01 /* End of transmission */
  202. #define ST_RX_EOM 0x80 /* End of frame */
  203. #define ST_RX_SHORT 0x40 /* Short frame */
  204. #define ST_RX_ABORT 0x20 /* Abort */
  205. #define ST_RX_RESBIT 0x10 /* Residual bit */
  206. #define ST_RX_OVERRUN 0x08 /* Overrun */
  207. #define ST_RX_CRC 0x04 /* CRC */
  208. #define ST_RX_OWNRSHP 0x02
  209. #define ST_ERROR_MASK 0x7C
  210. /* Status Counter Registers */
  211. #define CMCR 0x158 /* Counter Master Ctl Reg */
  212. #define TECNTL 0x160 /* Tx EOM Counter L */
  213. #define TECNTM 0x161 /* Tx EOM Counter M */
  214. #define TECNTH 0x162 /* Tx EOM Counter H */
  215. #define TECCR 0x163 /* Tx EOM Counter Ctl Reg */
  216. #define URCNTL 0x164 /* Underrun Counter L */
  217. #define URCNTH 0x165 /* Underrun Counter H */
  218. #define URCCR 0x167 /* Underrun Counter Ctl Reg */
  219. #define RECNTL 0x168 /* Rx EOM Counter L */
  220. #define RECNTM 0x169 /* Rx EOM Counter M */
  221. #define RECNTH 0x16a /* Rx EOM Counter H */
  222. #define RECCR 0x16b /* Rx EOM Counter Ctl Reg */
  223. #define ORCNTL 0x16c /* Overrun Counter L */
  224. #define ORCNTH 0x16d /* Overrun Counter H */
  225. #define ORCCR 0x16f /* Overrun Counter Ctl Reg */
  226. #define CECNTL 0x170 /* CRC Counter L */
  227. #define CECNTH 0x171 /* CRC Counter H */
  228. #define CECCR 0x173 /* CRC Counter Ctl Reg */
  229. #define ABCNTL 0x174 /* Abort frame Counter L */
  230. #define ABCNTH 0x175 /* Abort frame Counter H */
  231. #define ABCCR 0x177 /* Abort frame Counter Ctl Reg */
  232. #define SHCNTL 0x178 /* Short frame Counter L */
  233. #define SHCNTH 0x179 /* Short frame Counter H */
  234. #define SHCCR 0x17b /* Short frame Counter Ctl Reg */
  235. #define RSCNTL 0x17c /* Residual bit Counter L */
  236. #define RSCNTH 0x17d /* Residual bit Counter H */
  237. #define RSCCR 0x17f /* Residual bit Counter Ctl Reg */
  238. /* Register Programming Constants */
  239. #define IR0_DMIC 0x00000001
  240. #define IR0_DMIB 0x00000002
  241. #define IR0_DMIA 0x00000004
  242. #define IR0_EFT 0x00000008
  243. #define IR0_DMAREQ 0x00010000
  244. #define IR0_TXINT 0x00020000
  245. #define IR0_RXINTB 0x00040000
  246. #define IR0_RXINTA 0x00080000
  247. #define IR0_TXRDY 0x00100000
  248. #define IR0_RXRDY 0x00200000
  249. #define MD0_CRC16_0 0x00
  250. #define MD0_CRC16_1 0x01
  251. #define MD0_CRC32 0x02
  252. #define MD0_CRC_CCITT 0x03
  253. #define MD0_CRCC0 0x04
  254. #define MD0_CRCC1 0x08
  255. #define MD0_AUTO_ENA 0x10
  256. #define MD0_ASYNC 0x00
  257. #define MD0_BY_MSYNC 0x20
  258. #define MD0_BY_BISYNC 0x40
  259. #define MD0_BY_EXT 0x60
  260. #define MD0_BIT_SYNC 0x80
  261. #define MD0_TRANSP 0xc0
  262. #define MD0_HDLC 0x80 /* Bit-sync HDLC mode */
  263. #define MD0_CRC_NONE 0x00
  264. #define MD0_CRC_16_0 0x04
  265. #define MD0_CRC_16 0x05
  266. #define MD0_CRC_ITU32 0x06
  267. #define MD0_CRC_ITU 0x07
  268. #define MD1_NOADDR 0x00
  269. #define MD1_SADDR1 0x40
  270. #define MD1_SADDR2 0x80
  271. #define MD1_DADDR 0xc0
  272. #define MD2_NRZI_IEEE 0x40
  273. #define MD2_MANCHESTER 0x80
  274. #define MD2_FM_MARK 0xA0
  275. #define MD2_FM_SPACE 0xC0
  276. #define MD2_LOOPBACK 0x03 /* Local data Loopback */
  277. #define MD2_F_DUPLEX 0x00
  278. #define MD2_AUTO_ECHO 0x01
  279. #define MD2_LOOP_HI_Z 0x02
  280. #define MD2_LOOP_MIR 0x03
  281. #define MD2_ADPLL_X8 0x00
  282. #define MD2_ADPLL_X16 0x08
  283. #define MD2_ADPLL_X32 0x10
  284. #define MD2_NRZ 0x00
  285. #define MD2_NRZI 0x20
  286. #define MD2_NRZ_IEEE 0x40
  287. #define MD2_MANCH 0x00
  288. #define MD2_FM1 0x20
  289. #define MD2_FM0 0x40
  290. #define MD2_FM 0x80
  291. #define CTL_RTS 0x01
  292. #define CTL_DTR 0x02
  293. #define CTL_SYN 0x04
  294. #define CTL_IDLC 0x10
  295. #define CTL_UDRNC 0x20
  296. #define CTL_URSKP 0x40
  297. #define CTL_URCT 0x80
  298. #define CTL_NORTS 0x01
  299. #define CTL_NODTR 0x02
  300. #define CTL_IDLE 0x10
  301. #define RXS_BR0 0x01
  302. #define RXS_BR1 0x02
  303. #define RXS_BR2 0x04
  304. #define RXS_BR3 0x08
  305. #define RXS_ECLK 0x00
  306. #define RXS_ECLK_NS 0x20
  307. #define RXS_IBRG 0x40
  308. #define RXS_PLL1 0x50
  309. #define RXS_PLL2 0x60
  310. #define RXS_PLL3 0x70
  311. #define RXS_DRTXC 0x80
  312. #define TXS_BR0 0x01
  313. #define TXS_BR1 0x02
  314. #define TXS_BR2 0x04
  315. #define TXS_BR3 0x08
  316. #define TXS_ECLK 0x00
  317. #define TXS_IBRG 0x40
  318. #define TXS_RCLK 0x60
  319. #define TXS_DTRXC 0x80
  320. #define EXS_RES0 0x01
  321. #define EXS_RES1 0x02
  322. #define EXS_RES2 0x04
  323. #define EXS_TES0 0x10
  324. #define EXS_TES1 0x20
  325. #define EXS_TES2 0x40
  326. #define CLK_BRG_MASK 0x0F
  327. #define CLK_PIN_OUT 0x80
  328. #define CLK_LINE 0x00 /* clock line input */
  329. #define CLK_BRG 0x40 /* internal baud rate generator */
  330. #define CLK_TX_RXCLK 0x60 /* TX clock from RX clock */
  331. #define CMD_RX_RST 0x11
  332. #define CMD_RX_ENA 0x12
  333. #define CMD_RX_DIS 0x13
  334. #define CMD_RX_CRC_INIT 0x14
  335. #define CMD_RX_MSG_REJ 0x15
  336. #define CMD_RX_MP_SRCH 0x16
  337. #define CMD_RX_CRC_EXC 0x17
  338. #define CMD_RX_CRC_FRC 0x18
  339. #define CMD_TX_RST 0x01
  340. #define CMD_TX_ENA 0x02
  341. #define CMD_TX_DISA 0x03
  342. #define CMD_TX_CRC_INIT 0x04
  343. #define CMD_TX_CRC_EXC 0x05
  344. #define CMD_TX_EOM 0x06
  345. #define CMD_TX_ABORT 0x07
  346. #define CMD_TX_MP_ON 0x08
  347. #define CMD_TX_BUF_CLR 0x09
  348. #define CMD_TX_DISB 0x0b
  349. #define CMD_CH_RST 0x21
  350. #define CMD_SRCH_MODE 0x31
  351. #define CMD_NOP 0x00
  352. #define CMD_RESET 0x21
  353. #define CMD_TX_ENABLE 0x02
  354. #define CMD_RX_ENABLE 0x12
  355. #define ST0_RXRDY 0x01
  356. #define ST0_TXRDY 0x02
  357. #define ST0_RXINTB 0x20
  358. #define ST0_RXINTA 0x40
  359. #define ST0_TXINT 0x80
  360. #define ST1_IDLE 0x01
  361. #define ST1_ABORT 0x02
  362. #define ST1_CDCD 0x04
  363. #define ST1_CCTS 0x08
  364. #define ST1_SYN_FLAG 0x10
  365. #define ST1_CLMD 0x20
  366. #define ST1_TXIDLE 0x40
  367. #define ST1_UDRN 0x80
  368. #define ST2_CRCE 0x04
  369. #define ST2_ONRN 0x08
  370. #define ST2_RBIT 0x10
  371. #define ST2_ABORT 0x20
  372. #define ST2_SHORT 0x40
  373. #define ST2_EOM 0x80
  374. #define ST3_RX_ENA 0x01
  375. #define ST3_TX_ENA 0x02
  376. #define ST3_DCD 0x04
  377. #define ST3_CTS 0x08
  378. #define ST3_SRCH_MODE 0x10
  379. #define ST3_SLOOP 0x20
  380. #define ST3_GPI 0x80
  381. #define ST4_RDNR 0x01
  382. #define ST4_RDCR 0x02
  383. #define ST4_TDNR 0x04
  384. #define ST4_TDCR 0x08
  385. #define ST4_OCLM 0x20
  386. #define ST4_CFT 0x40
  387. #define ST4_CGPI 0x80
  388. #define FST_CRCEF 0x04
  389. #define FST_OVRNF 0x08
  390. #define FST_RBIF 0x10
  391. #define FST_ABTF 0x20
  392. #define FST_SHRTF 0x40
  393. #define FST_EOMF 0x80
  394. #define IE0_RXRDY 0x01
  395. #define IE0_TXRDY 0x02
  396. #define IE0_RXINTB 0x20
  397. #define IE0_RXINTA 0x40
  398. #define IE0_TXINT 0x80
  399. #define IE0_UDRN 0x00008000 /* TX underrun MSCI interrupt enable */
  400. #define IE0_CDCD 0x00000400 /* CD level change interrupt enable */
  401. #define IE1_IDLD 0x01
  402. #define IE1_ABTD 0x02
  403. #define IE1_CDCD 0x04
  404. #define IE1_CCTS 0x08
  405. #define IE1_SYNCD 0x10
  406. #define IE1_CLMD 0x20
  407. #define IE1_IDL 0x40
  408. #define IE1_UDRN 0x80
  409. #define IE2_CRCE 0x04
  410. #define IE2_OVRN 0x08
  411. #define IE2_RBIT 0x10
  412. #define IE2_ABT 0x20
  413. #define IE2_SHRT 0x40
  414. #define IE2_EOM 0x80
  415. #define IE4_RDNR 0x01
  416. #define IE4_RDCR 0x02
  417. #define IE4_TDNR 0x04
  418. #define IE4_TDCR 0x08
  419. #define IE4_OCLM 0x20
  420. #define IE4_CFT 0x40
  421. #define IE4_CGPI 0x80
  422. #define FIE_CRCEF 0x04
  423. #define FIE_OVRNF 0x08
  424. #define FIE_RBIF 0x10
  425. #define FIE_ABTF 0x20
  426. #define FIE_SHRTF 0x40
  427. #define FIE_EOMF 0x80
  428. #define DSR_DWE 0x01
  429. #define DSR_DE 0x02
  430. #define DSR_REF 0x04
  431. #define DSR_UDRF 0x04
  432. #define DSR_COA 0x08
  433. #define DSR_COF 0x10
  434. #define DSR_BOF 0x20
  435. #define DSR_EOM 0x40
  436. #define DSR_EOT 0x80
  437. #define DIR_REF 0x04
  438. #define DIR_UDRF 0x04
  439. #define DIR_COA 0x08
  440. #define DIR_COF 0x10
  441. #define DIR_BOF 0x20
  442. #define DIR_EOM 0x40
  443. #define DIR_EOT 0x80
  444. #define DIR_REFE 0x04
  445. #define DIR_UDRFE 0x04
  446. #define DIR_COAE 0x08
  447. #define DIR_COFE 0x10
  448. #define DIR_BOFE 0x20
  449. #define DIR_EOME 0x40
  450. #define DIR_EOTE 0x80
  451. #define DMR_CNTE 0x02
  452. #define DMR_NF 0x04
  453. #define DMR_SEOME 0x08
  454. #define DMR_TMOD 0x10
  455. #define DMER_DME 0x80 /* DMA Master Enable */
  456. #define DCR_SW_ABT 0x01
  457. #define DCR_FCT_CLR 0x02
  458. #define DCR_ABORT 0x01
  459. #define DCR_CLEAR_EOF 0x02
  460. #define PCR_COTE 0x80
  461. #define PCR_PR0 0x01
  462. #define PCR_PR1 0x02
  463. #define PCR_PR2 0x04
  464. #define PCR_CCC 0x08
  465. #define PCR_BRC 0x10
  466. #define PCR_OSB 0x40
  467. #define PCR_BURST 0x80
  468. #endif /* (__HD64572_H) */