pc300-falc-lh.h 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239
  1. /*
  2. * falc.h Description of the Siemens FALC T1/E1 framer.
  3. *
  4. * Author: Ivan Passos <ivan@cyclades.com>
  5. *
  6. * Copyright: (c) 2000-2001 Cyclades Corp.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License
  10. * as published by the Free Software Foundation; either version
  11. * 2 of the License, or (at your option) any later version.
  12. *
  13. * $Log: falc-lh.h,v $
  14. * Revision 3.1 2001/06/15 12:41:10 regina
  15. * upping major version number
  16. *
  17. * Revision 1.1.1.1 2001/06/13 20:24:47 daniela
  18. * PC300 initial CVS version (3.4.0-pre1)
  19. *
  20. * Revision 1.1 2000/05/15 ivan
  21. * Included DJA bits for the LIM2 register.
  22. *
  23. * Revision 1.0 2000/02/22 ivan
  24. * Initial version.
  25. *
  26. */
  27. #ifndef _FALC_LH_H
  28. #define _FALC_LH_H
  29. #define NUM_OF_T1_CHANNELS 24
  30. #define NUM_OF_E1_CHANNELS 32
  31. /*>>>>>>>>>>>>>>>>> FALC Register Bits (Transmit Mode) <<<<<<<<<<<<<<<<<<< */
  32. /* CMDR (Command Register)
  33. ---------------- E1 & T1 ------------------------------ */
  34. #define CMDR_RMC 0x80
  35. #define CMDR_RRES 0x40
  36. #define CMDR_XREP 0x20
  37. #define CMDR_XRES 0x10
  38. #define CMDR_XHF 0x08
  39. #define CMDR_XTF 0x04
  40. #define CMDR_XME 0x02
  41. #define CMDR_SRES 0x01
  42. /* MODE (Mode Register)
  43. ----------------- E1 & T1 ----------------------------- */
  44. #define MODE_MDS2 0x80
  45. #define MODE_MDS1 0x40
  46. #define MODE_MDS0 0x20
  47. #define MODE_BRAC 0x10
  48. #define MODE_HRAC 0x08
  49. /* IPC (Interrupt Port Configuration)
  50. ----------------- E1 & T1 ----------------------------- */
  51. #define IPC_VIS 0x80
  52. #define IPC_SCI 0x04
  53. #define IPC_IC1 0x02
  54. #define IPC_IC0 0x01
  55. /* CCR1 (Common Configuration Register 1)
  56. ----------------- E1 & T1 ----------------------------- */
  57. #define CCR1_SFLG 0x80
  58. #define CCR1_XTS16RA 0x40
  59. #define CCR1_BRM 0x40
  60. #define CCR1_CASSYM 0x20
  61. #define CCR1_EDLX 0x20
  62. #define CCR1_EITS 0x10
  63. #define CCR1_ITF 0x08
  64. #define CCR1_RFT1 0x02
  65. #define CCR1_RFT0 0x01
  66. /* CCR3 (Common Configuration Register 3)
  67. ---------------- E1 & T1 ------------------------------ */
  68. #define CCR3_PRE1 0x80
  69. #define CCR3_PRE0 0x40
  70. #define CCR3_EPT 0x20
  71. #define CCR3_RADD 0x10
  72. #define CCR3_RCRC 0x04
  73. #define CCR3_XCRC 0x02
  74. /* RTR1-4 (Receive Timeslot Register 1-4)
  75. ---------------- E1 & T1 ------------------------------ */
  76. #define RTR1_TS0 0x80
  77. #define RTR1_TS1 0x40
  78. #define RTR1_TS2 0x20
  79. #define RTR1_TS3 0x10
  80. #define RTR1_TS4 0x08
  81. #define RTR1_TS5 0x04
  82. #define RTR1_TS6 0x02
  83. #define RTR1_TS7 0x01
  84. #define RTR2_TS8 0x80
  85. #define RTR2_TS9 0x40
  86. #define RTR2_TS10 0x20
  87. #define RTR2_TS11 0x10
  88. #define RTR2_TS12 0x08
  89. #define RTR2_TS13 0x04
  90. #define RTR2_TS14 0x02
  91. #define RTR2_TS15 0x01
  92. #define RTR3_TS16 0x80
  93. #define RTR3_TS17 0x40
  94. #define RTR3_TS18 0x20
  95. #define RTR3_TS19 0x10
  96. #define RTR3_TS20 0x08
  97. #define RTR3_TS21 0x04
  98. #define RTR3_TS22 0x02
  99. #define RTR3_TS23 0x01
  100. #define RTR4_TS24 0x80
  101. #define RTR4_TS25 0x40
  102. #define RTR4_TS26 0x20
  103. #define RTR4_TS27 0x10
  104. #define RTR4_TS28 0x08
  105. #define RTR4_TS29 0x04
  106. #define RTR4_TS30 0x02
  107. #define RTR4_TS31 0x01
  108. /* TTR1-4 (Transmit Timeslot Register 1-4)
  109. ---------------- E1 & T1 ------------------------------ */
  110. #define TTR1_TS0 0x80
  111. #define TTR1_TS1 0x40
  112. #define TTR1_TS2 0x20
  113. #define TTR1_TS3 0x10
  114. #define TTR1_TS4 0x08
  115. #define TTR1_TS5 0x04
  116. #define TTR1_TS6 0x02
  117. #define TTR1_TS7 0x01
  118. #define TTR2_TS8 0x80
  119. #define TTR2_TS9 0x40
  120. #define TTR2_TS10 0x20
  121. #define TTR2_TS11 0x10
  122. #define TTR2_TS12 0x08
  123. #define TTR2_TS13 0x04
  124. #define TTR2_TS14 0x02
  125. #define TTR2_TS15 0x01
  126. #define TTR3_TS16 0x80
  127. #define TTR3_TS17 0x40
  128. #define TTR3_TS18 0x20
  129. #define TTR3_TS19 0x10
  130. #define TTR3_TS20 0x08
  131. #define TTR3_TS21 0x04
  132. #define TTR3_TS22 0x02
  133. #define TTR3_TS23 0x01
  134. #define TTR4_TS24 0x80
  135. #define TTR4_TS25 0x40
  136. #define TTR4_TS26 0x20
  137. #define TTR4_TS27 0x10
  138. #define TTR4_TS28 0x08
  139. #define TTR4_TS29 0x04
  140. #define TTR4_TS30 0x02
  141. #define TTR4_TS31 0x01
  142. /* IMR0-4 (Interrupt Mask Register 0-4)
  143. ----------------- E1 & T1 ----------------------------- */
  144. #define IMR0_RME 0x80
  145. #define IMR0_RFS 0x40
  146. #define IMR0_T8MS 0x20
  147. #define IMR0_ISF 0x20
  148. #define IMR0_RMB 0x10
  149. #define IMR0_CASC 0x08
  150. #define IMR0_RSC 0x08
  151. #define IMR0_CRC6 0x04
  152. #define IMR0_CRC4 0x04
  153. #define IMR0_PDEN 0x02
  154. #define IMR0_RPF 0x01
  155. #define IMR1_CASE 0x80
  156. #define IMR1_RDO 0x40
  157. #define IMR1_ALLS 0x20
  158. #define IMR1_XDU 0x10
  159. #define IMR1_XMB 0x08
  160. #define IMR1_XLSC 0x02
  161. #define IMR1_XPR 0x01
  162. #define IMR1_LLBSC 0x80
  163. #define IMR2_FAR 0x80
  164. #define IMR2_LFA 0x40
  165. #define IMR2_MFAR 0x20
  166. #define IMR2_T400MS 0x10
  167. #define IMR2_LMFA 0x10
  168. #define IMR2_AIS 0x08
  169. #define IMR2_LOS 0x04
  170. #define IMR2_RAR 0x02
  171. #define IMR2_RA 0x01
  172. #define IMR3_ES 0x80
  173. #define IMR3_SEC 0x40
  174. #define IMR3_LMFA16 0x20
  175. #define IMR3_AIS16 0x10
  176. #define IMR3_RA16 0x08
  177. #define IMR3_API 0x04
  178. #define IMR3_XSLP 0x20
  179. #define IMR3_XSLN 0x10
  180. #define IMR3_LLBSC 0x08
  181. #define IMR3_XRS 0x04
  182. #define IMR3_SLN 0x02
  183. #define IMR3_SLP 0x01
  184. #define IMR4_LFA 0x80
  185. #define IMR4_FER 0x40
  186. #define IMR4_CER 0x20
  187. #define IMR4_AIS 0x10
  188. #define IMR4_LOS 0x08
  189. #define IMR4_CVE 0x04
  190. #define IMR4_SLIP 0x02
  191. #define IMR4_EBE 0x01
  192. /* FMR0-5 for E1 and T1 (Framer Mode Register ) */
  193. #define FMR0_XC1 0x80
  194. #define FMR0_XC0 0x40
  195. #define FMR0_RC1 0x20
  196. #define FMR0_RC0 0x10
  197. #define FMR0_EXTD 0x08
  198. #define FMR0_ALM 0x04
  199. #define E1_FMR0_FRS 0x02
  200. #define T1_FMR0_FRS 0x08
  201. #define FMR0_SRAF 0x04
  202. #define FMR0_EXLS 0x02
  203. #define FMR0_SIM 0x01
  204. #define FMR1_MFCS 0x80
  205. #define FMR1_AFR 0x40
  206. #define FMR1_ENSA 0x20
  207. #define FMR1_CTM 0x80
  208. #define FMR1_SIGM 0x40
  209. #define FMR1_EDL 0x20
  210. #define FMR1_PMOD 0x10
  211. #define FMR1_XFS 0x08
  212. #define FMR1_CRC 0x08
  213. #define FMR1_ECM 0x04
  214. #define FMR1_IMOD 0x02
  215. #define FMR1_XAIS 0x01
  216. #define FMR2_RFS1 0x80
  217. #define FMR2_RFS0 0x40
  218. #define FMR2_MCSP 0x40
  219. #define FMR2_RTM 0x20
  220. #define FMR2_SSP 0x20
  221. #define FMR2_DAIS 0x10
  222. #define FMR2_SAIS 0x08
  223. #define FMR2_PLB 0x04
  224. #define FMR2_AXRA 0x02
  225. #define FMR2_ALMF 0x01
  226. #define FMR2_EXZE 0x01
  227. #define LOOP_RTM 0x40
  228. #define LOOP_SFM 0x40
  229. #define LOOP_ECLB 0x20
  230. #define LOOP_CLA 0x1f
  231. /*--------------------- E1 ----------------------------*/
  232. #define FMR3_XLD 0x20
  233. #define FMR3_XLU 0x10
  234. /*--------------------- T1 ----------------------------*/
  235. #define FMR4_AIS3 0x80
  236. #define FMR4_TM 0x40
  237. #define FMR4_XRA 0x20
  238. #define FMR4_SSC1 0x10
  239. #define FMR4_SSC0 0x08
  240. #define FMR4_AUTO 0x04
  241. #define FMR4_FM1 0x02
  242. #define FMR4_FM0 0x01
  243. #define FMR5_SRS 0x80
  244. #define FMR5_EIBR 0x40
  245. #define FMR5_XLD 0x20
  246. #define FMR5_XLU 0x10
  247. /* LOOP (Channel Loop Back)
  248. ------------------ E1 & T1 ---------------------------- */
  249. #define LOOP_SFM 0x40
  250. #define LOOP_ECLB 0x20
  251. #define LOOP_CLA4 0x10
  252. #define LOOP_CLA3 0x08
  253. #define LOOP_CLA2 0x04
  254. #define LOOP_CLA1 0x02
  255. #define LOOP_CLA0 0x01
  256. /* XSW (Transmit Service Word Pulseframe)
  257. ------------------- E1 --------------------------- */
  258. #define XSW_XSIS 0x80
  259. #define XSW_XTM 0x40
  260. #define XSW_XRA 0x20
  261. #define XSW_XY0 0x10
  262. #define XSW_XY1 0x08
  263. #define XSW_XY2 0x04
  264. #define XSW_XY3 0x02
  265. #define XSW_XY4 0x01
  266. /* XSP (Transmit Spare Bits)
  267. ------------------- E1 --------------------------- */
  268. #define XSP_XAP 0x80
  269. #define XSP_CASEN 0x40
  270. #define XSP_TT0 0x20
  271. #define XSP_EBP 0x10
  272. #define XSP_AXS 0x08
  273. #define XSP_XSIF 0x04
  274. #define XSP_XS13 0x02
  275. #define XSP_XS15 0x01
  276. /* XC0/1 (Transmit Control 0/1)
  277. ------------------ E1 & T1 ---------------------------- */
  278. #define XC0_SA8E 0x80
  279. #define XC0_SA7E 0x40
  280. #define XC0_SA6E 0x20
  281. #define XC0_SA5E 0x10
  282. #define XC0_SA4E 0x08
  283. #define XC0_BRM 0x80
  284. #define XC0_MFBS 0x40
  285. #define XC0_SFRZ 0x10
  286. #define XC0_XCO2 0x04
  287. #define XC0_XCO1 0x02
  288. #define XC0_XCO0 0x01
  289. #define XC1_XTO5 0x20
  290. #define XC1_XTO4 0x10
  291. #define XC1_XTO3 0x08
  292. #define XC1_XTO2 0x04
  293. #define XC1_XTO1 0x02
  294. #define XC1_XTO0 0x01
  295. /* RC0/1 (Receive Control 0/1)
  296. ------------------ E1 & T1 ---------------------------- */
  297. #define RC0_SICS 0x40
  298. #define RC0_CRCI 0x20
  299. #define RC0_XCRCI 0x10
  300. #define RC0_RDIS 0x08
  301. #define RC0_RCO2 0x04
  302. #define RC0_RCO1 0x02
  303. #define RC0_RCO0 0x01
  304. #define RC1_SWD 0x80
  305. #define RC1_ASY4 0x40
  306. #define RC1_RRAM 0x40
  307. #define RC1_RTO5 0x20
  308. #define RC1_RTO4 0x10
  309. #define RC1_RTO3 0x08
  310. #define RC1_RTO2 0x04
  311. #define RC1_RTO1 0x02
  312. #define RC1_RTO0 0x01
  313. /* XPM0-2 (Transmit Pulse Mask 0-2)
  314. --------------------- E1 & T1 ------------------------- */
  315. #define XPM0_XP12 0x80
  316. #define XPM0_XP11 0x40
  317. #define XPM0_XP10 0x20
  318. #define XPM0_XP04 0x10
  319. #define XPM0_XP03 0x08
  320. #define XPM0_XP02 0x04
  321. #define XPM0_XP01 0x02
  322. #define XPM0_XP00 0x01
  323. #define XPM1_XP30 0x80
  324. #define XPM1_XP24 0x40
  325. #define XPM1_XP23 0x20
  326. #define XPM1_XP22 0x10
  327. #define XPM1_XP21 0x08
  328. #define XPM1_XP20 0x04
  329. #define XPM1_XP14 0x02
  330. #define XPM1_XP13 0x01
  331. #define XPM2_XLHP 0x80
  332. #define XPM2_XLT 0x40
  333. #define XPM2_DAXLT 0x20
  334. #define XPM2_XP34 0x08
  335. #define XPM2_XP33 0x04
  336. #define XPM2_XP32 0x02
  337. #define XPM2_XP31 0x01
  338. /* TSWM (Transparent Service Word Mask)
  339. ------------------ E1 ---------------------------- */
  340. #define TSWM_TSIS 0x80
  341. #define TSWM_TSIF 0x40
  342. #define TSWM_TRA 0x20
  343. #define TSWM_TSA4 0x10
  344. #define TSWM_TSA5 0x08
  345. #define TSWM_TSA6 0x04
  346. #define TSWM_TSA7 0x02
  347. #define TSWM_TSA8 0x01
  348. /* IDLE <Idle Channel Code Register>
  349. ------------------ E1 & T1 ----------------------- */
  350. #define IDLE_IDL7 0x80
  351. #define IDLE_IDL6 0x40
  352. #define IDLE_IDL5 0x20
  353. #define IDLE_IDL4 0x10
  354. #define IDLE_IDL3 0x08
  355. #define IDLE_IDL2 0x04
  356. #define IDLE_IDL1 0x02
  357. #define IDLE_IDL0 0x01
  358. /* XSA4-8 <Transmit SA4-8 Register(Read/Write) >
  359. -------------------E1 ----------------------------- */
  360. #define XSA4_XS47 0x80
  361. #define XSA4_XS46 0x40
  362. #define XSA4_XS45 0x20
  363. #define XSA4_XS44 0x10
  364. #define XSA4_XS43 0x08
  365. #define XSA4_XS42 0x04
  366. #define XSA4_XS41 0x02
  367. #define XSA4_XS40 0x01
  368. #define XSA5_XS57 0x80
  369. #define XSA5_XS56 0x40
  370. #define XSA5_XS55 0x20
  371. #define XSA5_XS54 0x10
  372. #define XSA5_XS53 0x08
  373. #define XSA5_XS52 0x04
  374. #define XSA5_XS51 0x02
  375. #define XSA5_XS50 0x01
  376. #define XSA6_XS67 0x80
  377. #define XSA6_XS66 0x40
  378. #define XSA6_XS65 0x20
  379. #define XSA6_XS64 0x10
  380. #define XSA6_XS63 0x08
  381. #define XSA6_XS62 0x04
  382. #define XSA6_XS61 0x02
  383. #define XSA6_XS60 0x01
  384. #define XSA7_XS77 0x80
  385. #define XSA7_XS76 0x40
  386. #define XSA7_XS75 0x20
  387. #define XSA7_XS74 0x10
  388. #define XSA7_XS73 0x08
  389. #define XSA7_XS72 0x04
  390. #define XSA7_XS71 0x02
  391. #define XSA7_XS70 0x01
  392. #define XSA8_XS87 0x80
  393. #define XSA8_XS86 0x40
  394. #define XSA8_XS85 0x20
  395. #define XSA8_XS84 0x10
  396. #define XSA8_XS83 0x08
  397. #define XSA8_XS82 0x04
  398. #define XSA8_XS81 0x02
  399. #define XSA8_XS80 0x01
  400. /* XDL1-3 (Transmit DL-Bit Register1-3 (read/write))
  401. ----------------------- T1 --------------------- */
  402. #define XDL1_XDL17 0x80
  403. #define XDL1_XDL16 0x40
  404. #define XDL1_XDL15 0x20
  405. #define XDL1_XDL14 0x10
  406. #define XDL1_XDL13 0x08
  407. #define XDL1_XDL12 0x04
  408. #define XDL1_XDL11 0x02
  409. #define XDL1_XDL10 0x01
  410. #define XDL2_XDL27 0x80
  411. #define XDL2_XDL26 0x40
  412. #define XDL2_XDL25 0x20
  413. #define XDL2_XDL24 0x10
  414. #define XDL2_XDL23 0x08
  415. #define XDL2_XDL22 0x04
  416. #define XDL2_XDL21 0x02
  417. #define XDL2_XDL20 0x01
  418. #define XDL3_XDL37 0x80
  419. #define XDL3_XDL36 0x40
  420. #define XDL3_XDL35 0x20
  421. #define XDL3_XDL34 0x10
  422. #define XDL3_XDL33 0x08
  423. #define XDL3_XDL32 0x04
  424. #define XDL3_XDL31 0x02
  425. #define XDL3_XDL30 0x01
  426. /* ICB1-4 (Idle Channel Register 1-4)
  427. ------------------ E1 ---------------------------- */
  428. #define E1_ICB1_IC0 0x80
  429. #define E1_ICB1_IC1 0x40
  430. #define E1_ICB1_IC2 0x20
  431. #define E1_ICB1_IC3 0x10
  432. #define E1_ICB1_IC4 0x08
  433. #define E1_ICB1_IC5 0x04
  434. #define E1_ICB1_IC6 0x02
  435. #define E1_ICB1_IC7 0x01
  436. #define E1_ICB2_IC8 0x80
  437. #define E1_ICB2_IC9 0x40
  438. #define E1_ICB2_IC10 0x20
  439. #define E1_ICB2_IC11 0x10
  440. #define E1_ICB2_IC12 0x08
  441. #define E1_ICB2_IC13 0x04
  442. #define E1_ICB2_IC14 0x02
  443. #define E1_ICB2_IC15 0x01
  444. #define E1_ICB3_IC16 0x80
  445. #define E1_ICB3_IC17 0x40
  446. #define E1_ICB3_IC18 0x20
  447. #define E1_ICB3_IC19 0x10
  448. #define E1_ICB3_IC20 0x08
  449. #define E1_ICB3_IC21 0x04
  450. #define E1_ICB3_IC22 0x02
  451. #define E1_ICB3_IC23 0x01
  452. #define E1_ICB4_IC24 0x80
  453. #define E1_ICB4_IC25 0x40
  454. #define E1_ICB4_IC26 0x20
  455. #define E1_ICB4_IC27 0x10
  456. #define E1_ICB4_IC28 0x08
  457. #define E1_ICB4_IC29 0x04
  458. #define E1_ICB4_IC30 0x02
  459. #define E1_ICB4_IC31 0x01
  460. /* ICB1-4 (Idle Channel Register 1-4)
  461. ------------------ T1 ---------------------------- */
  462. #define T1_ICB1_IC1 0x80
  463. #define T1_ICB1_IC2 0x40
  464. #define T1_ICB1_IC3 0x20
  465. #define T1_ICB1_IC4 0x10
  466. #define T1_ICB1_IC5 0x08
  467. #define T1_ICB1_IC6 0x04
  468. #define T1_ICB1_IC7 0x02
  469. #define T1_ICB1_IC8 0x01
  470. #define T1_ICB2_IC9 0x80
  471. #define T1_ICB2_IC10 0x40
  472. #define T1_ICB2_IC11 0x20
  473. #define T1_ICB2_IC12 0x10
  474. #define T1_ICB2_IC13 0x08
  475. #define T1_ICB2_IC14 0x04
  476. #define T1_ICB2_IC15 0x02
  477. #define T1_ICB2_IC16 0x01
  478. #define T1_ICB3_IC17 0x80
  479. #define T1_ICB3_IC18 0x40
  480. #define T1_ICB3_IC19 0x20
  481. #define T1_ICB3_IC20 0x10
  482. #define T1_ICB3_IC21 0x08
  483. #define T1_ICB3_IC22 0x04
  484. #define T1_ICB3_IC23 0x02
  485. #define T1_ICB3_IC24 0x01
  486. /* FMR3 (Framer Mode Register 3)
  487. --------------------E1------------------------ */
  488. #define FMR3_CMI 0x08
  489. #define FMR3_SYNSA 0x04
  490. #define FMR3_CFRZ 0x02
  491. #define FMR3_EXTIW 0x01
  492. /* CCB1-3 (Clear Channel Register)
  493. ------------------- T1 ----------------------- */
  494. #define CCB1_CH1 0x80
  495. #define CCB1_CH2 0x40
  496. #define CCB1_CH3 0x20
  497. #define CCB1_CH4 0x10
  498. #define CCB1_CH5 0x08
  499. #define CCB1_CH6 0x04
  500. #define CCB1_CH7 0x02
  501. #define CCB1_CH8 0x01
  502. #define CCB2_CH9 0x80
  503. #define CCB2_CH10 0x40
  504. #define CCB2_CH11 0x20
  505. #define CCB2_CH12 0x10
  506. #define CCB2_CH13 0x08
  507. #define CCB2_CH14 0x04
  508. #define CCB2_CH15 0x02
  509. #define CCB2_CH16 0x01
  510. #define CCB3_CH17 0x80
  511. #define CCB3_CH18 0x40
  512. #define CCB3_CH19 0x20
  513. #define CCB3_CH20 0x10
  514. #define CCB3_CH21 0x08
  515. #define CCB3_CH22 0x04
  516. #define CCB3_CH23 0x02
  517. #define CCB3_CH24 0x01
  518. /* LIM0/1 (Line Interface Mode 0/1)
  519. ------------------- E1 & T1 --------------------------- */
  520. #define LIM0_XFB 0x80
  521. #define LIM0_XDOS 0x40
  522. #define LIM0_SCL1 0x20
  523. #define LIM0_SCL0 0x10
  524. #define LIM0_EQON 0x08
  525. #define LIM0_ELOS 0x04
  526. #define LIM0_LL 0x02
  527. #define LIM0_MAS 0x01
  528. #define LIM1_EFSC 0x80
  529. #define LIM1_RIL2 0x40
  530. #define LIM1_RIL1 0x20
  531. #define LIM1_RIL0 0x10
  532. #define LIM1_DCOC 0x08
  533. #define LIM1_JATT 0x04
  534. #define LIM1_RL 0x02
  535. #define LIM1_DRS 0x01
  536. /* PCDR (Pulse Count Detection Register(Read/Write))
  537. ------------------ E1 & T1 ------------------------- */
  538. #define PCDR_PCD7 0x80
  539. #define PCDR_PCD6 0x40
  540. #define PCDR_PCD5 0x20
  541. #define PCDR_PCD4 0x10
  542. #define PCDR_PCD3 0x08
  543. #define PCDR_PCD2 0x04
  544. #define PCDR_PCD1 0x02
  545. #define PCDR_PCD0 0x01
  546. #define PCRR_PCR7 0x80
  547. #define PCRR_PCR6 0x40
  548. #define PCRR_PCR5 0x20
  549. #define PCRR_PCR4 0x10
  550. #define PCRR_PCR3 0x08
  551. #define PCRR_PCR2 0x04
  552. #define PCRR_PCR1 0x02
  553. #define PCRR_PCR0 0x01
  554. /* LIM2 (Line Interface Mode 2)
  555. ------------------ E1 & T1 ---------------------------- */
  556. #define LIM2_DJA2 0x20
  557. #define LIM2_DJA1 0x10
  558. #define LIM2_LOS2 0x02
  559. #define LIM2_LOS1 0x01
  560. /* LCR1 (Loop Code Register 1) */
  561. #define LCR1_EPRM 0x80
  562. #define LCR1_XPRBS 0x40
  563. /* SIC1 (System Interface Control 1) */
  564. #define SIC1_SRSC 0x80
  565. #define SIC1_RBS1 0x20
  566. #define SIC1_RBS0 0x10
  567. #define SIC1_SXSC 0x08
  568. #define SIC1_XBS1 0x02
  569. #define SIC1_XBS0 0x01
  570. /* DEC (Disable Error Counter)
  571. ------------------ E1 & T1 ---------------------------- */
  572. #define DEC_DCEC3 0x20
  573. #define DEC_DBEC 0x10
  574. #define DEC_DCEC1 0x08
  575. #define DEC_DCEC 0x08
  576. #define DEC_DEBC 0x04
  577. #define DEC_DCVC 0x02
  578. #define DEC_DFEC 0x01
  579. /* FALC Register Bits (Receive Mode)
  580. ---------------------------------------------------------------------------- */
  581. /* FRS0/1 (Framer Receive Status Register 0/1)
  582. ----------------- E1 & T1 ---------------------------------- */
  583. #define FRS0_LOS 0x80
  584. #define FRS0_AIS 0x40
  585. #define FRS0_LFA 0x20
  586. #define FRS0_RRA 0x10
  587. #define FRS0_API 0x08
  588. #define FRS0_NMF 0x04
  589. #define FRS0_LMFA 0x02
  590. #define FRS0_FSRF 0x01
  591. #define FRS1_TS16RA 0x40
  592. #define FRS1_TS16LOS 0x20
  593. #define FRS1_TS16AIS 0x10
  594. #define FRS1_TS16LFA 0x08
  595. #define FRS1_EXZD 0x80
  596. #define FRS1_LLBDD 0x10
  597. #define FRS1_LLBAD 0x08
  598. #define FRS1_XLS 0x02
  599. #define FRS1_XLO 0x01
  600. #define FRS1_PDEN 0x40
  601. /* FRS2/3 (Framer Receive Status Register 2/3)
  602. ----------------- T1 ---------------------------------- */
  603. #define FRS2_ESC2 0x80
  604. #define FRS2_ESC1 0x40
  605. #define FRS2_ESC0 0x20
  606. #define FRS3_FEH5 0x20
  607. #define FRS3_FEH4 0x10
  608. #define FRS3_FEH3 0x08
  609. #define FRS3_FEH2 0x04
  610. #define FRS3_FEH1 0x02
  611. #define FRS3_FEH0 0x01
  612. /* RSW (Receive Service Word Pulseframe)
  613. ----------------- E1 ------------------------------ */
  614. #define RSW_RSI 0x80
  615. #define RSW_RRA 0x20
  616. #define RSW_RYO 0x10
  617. #define RSW_RY1 0x08
  618. #define RSW_RY2 0x04
  619. #define RSW_RY3 0x02
  620. #define RSW_RY4 0x01
  621. /* RSP (Receive Spare Bits / Additional Status)
  622. ---------------- E1 ------------------------------- */
  623. #define RSP_SI1 0x80
  624. #define RSP_SI2 0x40
  625. #define RSP_LLBDD 0x10
  626. #define RSP_LLBAD 0x08
  627. #define RSP_RSIF 0x04
  628. #define RSP_RS13 0x02
  629. #define RSP_RS15 0x01
  630. /* FECL (Framing Error Counter)
  631. ---------------- E1 & T1 -------------------------- */
  632. #define FECL_FE7 0x80
  633. #define FECL_FE6 0x40
  634. #define FECL_FE5 0x20
  635. #define FECL_FE4 0x10
  636. #define FECL_FE3 0x08
  637. #define FECL_FE2 0x04
  638. #define FECL_FE1 0x02
  639. #define FECL_FE0 0x01
  640. #define FECH_FE15 0x80
  641. #define FECH_FE14 0x40
  642. #define FECH_FE13 0x20
  643. #define FECH_FE12 0x10
  644. #define FECH_FE11 0x08
  645. #define FECH_FE10 0x04
  646. #define FECH_FE9 0x02
  647. #define FECH_FE8 0x01
  648. /* CVCl (Code Violation Counter)
  649. ----------------- E1 ------------------------- */
  650. #define CVCL_CV7 0x80
  651. #define CVCL_CV6 0x40
  652. #define CVCL_CV5 0x20
  653. #define CVCL_CV4 0x10
  654. #define CVCL_CV3 0x08
  655. #define CVCL_CV2 0x04
  656. #define CVCL_CV1 0x02
  657. #define CVCL_CV0 0x01
  658. #define CVCH_CV15 0x80
  659. #define CVCH_CV14 0x40
  660. #define CVCH_CV13 0x20
  661. #define CVCH_CV12 0x10
  662. #define CVCH_CV11 0x08
  663. #define CVCH_CV10 0x04
  664. #define CVCH_CV9 0x02
  665. #define CVCH_CV8 0x01
  666. /* CEC1-3L (CRC Error Counter)
  667. ------------------ E1 ----------------------------- */
  668. #define CEC1L_CR7 0x80
  669. #define CEC1L_CR6 0x40
  670. #define CEC1L_CR5 0x20
  671. #define CEC1L_CR4 0x10
  672. #define CEC1L_CR3 0x08
  673. #define CEC1L_CR2 0x04
  674. #define CEC1L_CR1 0x02
  675. #define CEC1L_CR0 0x01
  676. #define CEC1H_CR15 0x80
  677. #define CEC1H_CR14 0x40
  678. #define CEC1H_CR13 0x20
  679. #define CEC1H_CR12 0x10
  680. #define CEC1H_CR11 0x08
  681. #define CEC1H_CR10 0x04
  682. #define CEC1H_CR9 0x02
  683. #define CEC1H_CR8 0x01
  684. #define CEC2L_CR7 0x80
  685. #define CEC2L_CR6 0x40
  686. #define CEC2L_CR5 0x20
  687. #define CEC2L_CR4 0x10
  688. #define CEC2L_CR3 0x08
  689. #define CEC2L_CR2 0x04
  690. #define CEC2L_CR1 0x02
  691. #define CEC2L_CR0 0x01
  692. #define CEC2H_CR15 0x80
  693. #define CEC2H_CR14 0x40
  694. #define CEC2H_CR13 0x20
  695. #define CEC2H_CR12 0x10
  696. #define CEC2H_CR11 0x08
  697. #define CEC2H_CR10 0x04
  698. #define CEC2H_CR9 0x02
  699. #define CEC2H_CR8 0x01
  700. #define CEC3L_CR7 0x80
  701. #define CEC3L_CR6 0x40
  702. #define CEC3L_CR5 0x20
  703. #define CEC3L_CR4 0x10
  704. #define CEC3L_CR3 0x08
  705. #define CEC3L_CR2 0x04
  706. #define CEC3L_CR1 0x02
  707. #define CEC3L_CR0 0x01
  708. #define CEC3H_CR15 0x80
  709. #define CEC3H_CR14 0x40
  710. #define CEC3H_CR13 0x20
  711. #define CEC3H_CR12 0x10
  712. #define CEC3H_CR11 0x08
  713. #define CEC3H_CR10 0x04
  714. #define CEC3H_CR9 0x02
  715. #define CEC3H_CR8 0x01
  716. /* CECL (CRC Error Counter)
  717. ------------------ T1 ----------------------------- */
  718. #define CECL_CR7 0x80
  719. #define CECL_CR6 0x40
  720. #define CECL_CR5 0x20
  721. #define CECL_CR4 0x10
  722. #define CECL_CR3 0x08
  723. #define CECL_CR2 0x04
  724. #define CECL_CR1 0x02
  725. #define CECL_CR0 0x01
  726. #define CECH_CR15 0x80
  727. #define CECH_CR14 0x40
  728. #define CECH_CR13 0x20
  729. #define CECH_CR12 0x10
  730. #define CECH_CR11 0x08
  731. #define CECH_CR10 0x04
  732. #define CECH_CR9 0x02
  733. #define CECH_CR8 0x01
  734. /* EBCL (E Bit Error Counter)
  735. ------------------- E1 & T1 ------------------------- */
  736. #define EBCL_EB7 0x80
  737. #define EBCL_EB6 0x40
  738. #define EBCL_EB5 0x20
  739. #define EBCL_EB4 0x10
  740. #define EBCL_EB3 0x08
  741. #define EBCL_EB2 0x04
  742. #define EBCL_EB1 0x02
  743. #define EBCL_EB0 0x01
  744. #define EBCH_EB15 0x80
  745. #define EBCH_EB14 0x40
  746. #define EBCH_EB13 0x20
  747. #define EBCH_EB12 0x10
  748. #define EBCH_EB11 0x08
  749. #define EBCH_EB10 0x04
  750. #define EBCH_EB9 0x02
  751. #define EBCH_EB8 0x01
  752. /* RSA4-8 (Receive Sa4-8-Bit Register)
  753. -------------------- E1 --------------------------- */
  754. #define RSA4_RS47 0x80
  755. #define RSA4_RS46 0x40
  756. #define RSA4_RS45 0x20
  757. #define RSA4_RS44 0x10
  758. #define RSA4_RS43 0x08
  759. #define RSA4_RS42 0x04
  760. #define RSA4_RS41 0x02
  761. #define RSA4_RS40 0x01
  762. #define RSA5_RS57 0x80
  763. #define RSA5_RS56 0x40
  764. #define RSA5_RS55 0x20
  765. #define RSA5_RS54 0x10
  766. #define RSA5_RS53 0x08
  767. #define RSA5_RS52 0x04
  768. #define RSA5_RS51 0x02
  769. #define RSA5_RS50 0x01
  770. #define RSA6_RS67 0x80
  771. #define RSA6_RS66 0x40
  772. #define RSA6_RS65 0x20
  773. #define RSA6_RS64 0x10
  774. #define RSA6_RS63 0x08
  775. #define RSA6_RS62 0x04
  776. #define RSA6_RS61 0x02
  777. #define RSA6_RS60 0x01
  778. #define RSA7_RS77 0x80
  779. #define RSA7_RS76 0x40
  780. #define RSA7_RS75 0x20
  781. #define RSA7_RS74 0x10
  782. #define RSA7_RS73 0x08
  783. #define RSA7_RS72 0x04
  784. #define RSA7_RS71 0x02
  785. #define RSA7_RS70 0x01
  786. #define RSA8_RS87 0x80
  787. #define RSA8_RS86 0x40
  788. #define RSA8_RS85 0x20
  789. #define RSA8_RS84 0x10
  790. #define RSA8_RS83 0x08
  791. #define RSA8_RS82 0x04
  792. #define RSA8_RS81 0x02
  793. #define RSA8_RS80 0x01
  794. /* RSA6S (Receive Sa6 Bit Status Register)
  795. ------------------------ T1 ------------------------- */
  796. #define RSA6S_SX 0x20
  797. #define RSA6S_SF 0x10
  798. #define RSA6S_SE 0x08
  799. #define RSA6S_SC 0x04
  800. #define RSA6S_SA 0x02
  801. #define RSA6S_S8 0x01
  802. /* RDL1-3 Receive DL-Bit Register1-3)
  803. ------------------------ T1 ------------------------- */
  804. #define RDL1_RDL17 0x80
  805. #define RDL1_RDL16 0x40
  806. #define RDL1_RDL15 0x20
  807. #define RDL1_RDL14 0x10
  808. #define RDL1_RDL13 0x08
  809. #define RDL1_RDL12 0x04
  810. #define RDL1_RDL11 0x02
  811. #define RDL1_RDL10 0x01
  812. #define RDL2_RDL27 0x80
  813. #define RDL2_RDL26 0x40
  814. #define RDL2_RDL25 0x20
  815. #define RDL2_RDL24 0x10
  816. #define RDL2_RDL23 0x08
  817. #define RDL2_RDL22 0x04
  818. #define RDL2_RDL21 0x02
  819. #define RDL2_RDL20 0x01
  820. #define RDL3_RDL37 0x80
  821. #define RDL3_RDL36 0x40
  822. #define RDL3_RDL35 0x20
  823. #define RDL3_RDL34 0x10
  824. #define RDL3_RDL33 0x08
  825. #define RDL3_RDL32 0x04
  826. #define RDL3_RDL31 0x02
  827. #define RDL3_RDL30 0x01
  828. /* SIS (Signaling Status Register)
  829. -------------------- E1 & T1 -------------------------- */
  830. #define SIS_XDOV 0x80
  831. #define SIS_XFW 0x40
  832. #define SIS_XREP 0x20
  833. #define SIS_RLI 0x08
  834. #define SIS_CEC 0x04
  835. #define SIS_BOM 0x01
  836. /* RSIS (Receive Signaling Status Register)
  837. -------------------- E1 & T1 --------------------------- */
  838. #define RSIS_VFR 0x80
  839. #define RSIS_RDO 0x40
  840. #define RSIS_CRC16 0x20
  841. #define RSIS_RAB 0x10
  842. #define RSIS_HA1 0x08
  843. #define RSIS_HA0 0x04
  844. #define RSIS_HFR 0x02
  845. #define RSIS_LA 0x01
  846. /* RBCL/H (Receive Byte Count Low/High)
  847. ------------------- E1 & T1 ----------------------- */
  848. #define RBCL_RBC7 0x80
  849. #define RBCL_RBC6 0x40
  850. #define RBCL_RBC5 0x20
  851. #define RBCL_RBC4 0x10
  852. #define RBCL_RBC3 0x08
  853. #define RBCL_RBC2 0x04
  854. #define RBCL_RBC1 0x02
  855. #define RBCL_RBC0 0x01
  856. #define RBCH_OV 0x10
  857. #define RBCH_RBC11 0x08
  858. #define RBCH_RBC10 0x04
  859. #define RBCH_RBC9 0x02
  860. #define RBCH_RBC8 0x01
  861. /* ISR1-3 (Interrupt Status Register 1-3)
  862. ------------------ E1 & T1 ------------------------------ */
  863. #define FISR0_RME 0x80
  864. #define FISR0_RFS 0x40
  865. #define FISR0_T8MS 0x20
  866. #define FISR0_ISF 0x20
  867. #define FISR0_RMB 0x10
  868. #define FISR0_CASC 0x08
  869. #define FISR0_RSC 0x08
  870. #define FISR0_CRC6 0x04
  871. #define FISR0_CRC4 0x04
  872. #define FISR0_PDEN 0x02
  873. #define FISR0_RPF 0x01
  874. #define FISR1_CASE 0x80
  875. #define FISR1_LLBSC 0x80
  876. #define FISR1_RDO 0x40
  877. #define FISR1_ALLS 0x20
  878. #define FISR1_XDU 0x10
  879. #define FISR1_XMB 0x08
  880. #define FISR1_XLSC 0x02
  881. #define FISR1_XPR 0x01
  882. #define FISR2_FAR 0x80
  883. #define FISR2_LFA 0x40
  884. #define FISR2_MFAR 0x20
  885. #define FISR2_T400MS 0x10
  886. #define FISR2_LMFA 0x10
  887. #define FISR2_AIS 0x08
  888. #define FISR2_LOS 0x04
  889. #define FISR2_RAR 0x02
  890. #define FISR2_RA 0x01
  891. #define FISR3_ES 0x80
  892. #define FISR3_SEC 0x40
  893. #define FISR3_LMFA16 0x20
  894. #define FISR3_AIS16 0x10
  895. #define FISR3_RA16 0x08
  896. #define FISR3_API 0x04
  897. #define FISR3_XSLP 0x20
  898. #define FISR3_XSLN 0x10
  899. #define FISR3_LLBSC 0x08
  900. #define FISR3_XRS 0x04
  901. #define FISR3_SLN 0x02
  902. #define FISR3_SLP 0x01
  903. /* GIS (Global Interrupt Status Register)
  904. --------------------- E1 & T1 --------------------- */
  905. #define GIS_ISR3 0x08
  906. #define GIS_ISR2 0x04
  907. #define GIS_ISR1 0x02
  908. #define GIS_ISR0 0x01
  909. /* VSTR (Version Status Register)
  910. --------------------- E1 & T1 --------------------- */
  911. #define VSTR_VN3 0x08
  912. #define VSTR_VN2 0x04
  913. #define VSTR_VN1 0x02
  914. #define VSTR_VN0 0x01
  915. /*>>>>>>>>>>>>>>>>>>>>> Local Control Structures <<<<<<<<<<<<<<<<<<<<<<<<< */
  916. /* Write-only Registers (E1/T1 control mode write registers) */
  917. #define XFIFOH 0x00 /* Tx FIFO High Byte */
  918. #define XFIFOL 0x01 /* Tx FIFO Low Byte */
  919. #define CMDR 0x02 /* Command Reg */
  920. #define DEC 0x60 /* Disable Error Counter */
  921. #define TEST2 0x62 /* Manuf. Test Reg 2 */
  922. #define XS(nbr) (0x70 + (nbr)) /* Tx CAS Reg (0 to 15) */
  923. /* Read-write Registers (E1/T1 status mode read registers) */
  924. #define MODE 0x03 /* Mode Reg */
  925. #define RAH1 0x04 /* Receive Address High 1 */
  926. #define RAH2 0x05 /* Receive Address High 2 */
  927. #define RAL1 0x06 /* Receive Address Low 1 */
  928. #define RAL2 0x07 /* Receive Address Low 2 */
  929. #define IPC 0x08 /* Interrupt Port Configuration */
  930. #define CCR1 0x09 /* Common Configuration Reg 1 */
  931. #define CCR3 0x0A /* Common Configuration Reg 3 */
  932. #define PRE 0x0B /* Preamble Reg */
  933. #define RTR1 0x0C /* Receive Timeslot Reg 1 */
  934. #define RTR2 0x0D /* Receive Timeslot Reg 2 */
  935. #define RTR3 0x0E /* Receive Timeslot Reg 3 */
  936. #define RTR4 0x0F /* Receive Timeslot Reg 4 */
  937. #define TTR1 0x10 /* Transmit Timeslot Reg 1 */
  938. #define TTR2 0x11 /* Transmit Timeslot Reg 2 */
  939. #define TTR3 0x12 /* Transmit Timeslot Reg 3 */
  940. #define TTR4 0x13 /* Transmit Timeslot Reg 4 */
  941. #define IMR0 0x14 /* Interrupt Mask Reg 0 */
  942. #define IMR1 0x15 /* Interrupt Mask Reg 1 */
  943. #define IMR2 0x16 /* Interrupt Mask Reg 2 */
  944. #define IMR3 0x17 /* Interrupt Mask Reg 3 */
  945. #define IMR4 0x18 /* Interrupt Mask Reg 4 */
  946. #define IMR5 0x19 /* Interrupt Mask Reg 5 */
  947. #define FMR0 0x1A /* Framer Mode Reigster 0 */
  948. #define FMR1 0x1B /* Framer Mode Reigster 1 */
  949. #define FMR2 0x1C /* Framer Mode Reigster 2 */
  950. #define LOOP 0x1D /* Channel Loop Back */
  951. #define XSW 0x1E /* Transmit Service Word */
  952. #define FMR4 0x1E /* Framer Mode Reg 4 */
  953. #define XSP 0x1F /* Transmit Spare Bits */
  954. #define FMR5 0x1F /* Framer Mode Reg 5 */
  955. #define XC0 0x20 /* Transmit Control 0 */
  956. #define XC1 0x21 /* Transmit Control 1 */
  957. #define RC0 0x22 /* Receive Control 0 */
  958. #define RC1 0x23 /* Receive Control 1 */
  959. #define XPM0 0x24 /* Transmit Pulse Mask 0 */
  960. #define XPM1 0x25 /* Transmit Pulse Mask 1 */
  961. #define XPM2 0x26 /* Transmit Pulse Mask 2 */
  962. #define TSWM 0x27 /* Transparent Service Word Mask */
  963. #define TEST1 0x28 /* Manuf. Test Reg 1 */
  964. #define IDLE 0x29 /* Idle Channel Code */
  965. #define XSA4 0x2A /* Transmit SA4 Bit Reg */
  966. #define XDL1 0x2A /* Transmit DL-Bit Reg 2 */
  967. #define XSA5 0x2B /* Transmit SA4 Bit Reg */
  968. #define XDL2 0x2B /* Transmit DL-Bit Reg 2 */
  969. #define XSA6 0x2C /* Transmit SA4 Bit Reg */
  970. #define XDL3 0x2C /* Transmit DL-Bit Reg 2 */
  971. #define XSA7 0x2D /* Transmit SA4 Bit Reg */
  972. #define CCB1 0x2D /* Clear Channel Reg 1 */
  973. #define XSA8 0x2E /* Transmit SA4 Bit Reg */
  974. #define CCB2 0x2E /* Clear Channel Reg 2 */
  975. #define FMR3 0x2F /* Framer Mode Reg. 3 */
  976. #define CCB3 0x2F /* Clear Channel Reg 3 */
  977. #define ICB1 0x30 /* Idle Channel Reg 1 */
  978. #define ICB2 0x31 /* Idle Channel Reg 2 */
  979. #define ICB3 0x32 /* Idle Channel Reg 3 */
  980. #define ICB4 0x33 /* Idle Channel Reg 4 */
  981. #define LIM0 0x34 /* Line Interface Mode 0 */
  982. #define LIM1 0x35 /* Line Interface Mode 1 */
  983. #define PCDR 0x36 /* Pulse Count Detection */
  984. #define PCRR 0x37 /* Pulse Count Recovery */
  985. #define LIM2 0x38 /* Line Interface Mode Reg 2 */
  986. #define LCR1 0x39 /* Loop Code Reg 1 */
  987. #define LCR2 0x3A /* Loop Code Reg 2 */
  988. #define LCR3 0x3B /* Loop Code Reg 3 */
  989. #define SIC1 0x3C /* System Interface Control 1 */
  990. /* Read-only Registers (E1/T1 control mode read registers) */
  991. #define RFIFOH 0x00 /* Receive FIFO */
  992. #define RFIFOL 0x01 /* Receive FIFO */
  993. #define FRS0 0x4C /* Framer Receive Status 0 */
  994. #define FRS1 0x4D /* Framer Receive Status 1 */
  995. #define RSW 0x4E /* Receive Service Word */
  996. #define FRS2 0x4E /* Framer Receive Status 2 */
  997. #define RSP 0x4F /* Receive Spare Bits */
  998. #define FRS3 0x4F /* Framer Receive Status 3 */
  999. #define FECL 0x50 /* Framing Error Counter */
  1000. #define FECH 0x51 /* Framing Error Counter */
  1001. #define CVCL 0x52 /* Code Violation Counter */
  1002. #define CVCH 0x53 /* Code Violation Counter */
  1003. #define CECL 0x54 /* CRC Error Counter 1 */
  1004. #define CECH 0x55 /* CRC Error Counter 1 */
  1005. #define EBCL 0x56 /* E-Bit Error Counter */
  1006. #define EBCH 0x57 /* E-Bit Error Counter */
  1007. #define BECL 0x58 /* Bit Error Counter Low */
  1008. #define BECH 0x59 /* Bit Error Counter Low */
  1009. #define CEC3 0x5A /* CRC Error Counter 3 (16-bit) */
  1010. #define RSA4 0x5C /* Receive SA4 Bit Reg */
  1011. #define RDL1 0x5C /* Receive DL-Bit Reg 1 */
  1012. #define RSA5 0x5D /* Receive SA5 Bit Reg */
  1013. #define RDL2 0x5D /* Receive DL-Bit Reg 2 */
  1014. #define RSA6 0x5E /* Receive SA6 Bit Reg */
  1015. #define RDL3 0x5E /* Receive DL-Bit Reg 3 */
  1016. #define RSA7 0x5F /* Receive SA7 Bit Reg */
  1017. #define RSA8 0x60 /* Receive SA8 Bit Reg */
  1018. #define RSA6S 0x61 /* Receive SA6 Bit Status Reg */
  1019. #define TSR0 0x62 /* Manuf. Test Reg 0 */
  1020. #define TSR1 0x63 /* Manuf. Test Reg 1 */
  1021. #define SIS 0x64 /* Signaling Status Reg */
  1022. #define RSIS 0x65 /* Receive Signaling Status Reg */
  1023. #define RBCL 0x66 /* Receive Byte Control */
  1024. #define RBCH 0x67 /* Receive Byte Control */
  1025. #define FISR0 0x68 /* Interrupt Status Reg 0 */
  1026. #define FISR1 0x69 /* Interrupt Status Reg 1 */
  1027. #define FISR2 0x6A /* Interrupt Status Reg 2 */
  1028. #define FISR3 0x6B /* Interrupt Status Reg 3 */
  1029. #define GIS 0x6E /* Global Interrupt Status */
  1030. #define VSTR 0x6F /* Version Status */
  1031. #define RS(nbr) (0x70 + (nbr)) /* Rx CAS Reg (0 to 15) */
  1032. #endif /* _FALC_LH_H */