comet.h 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. /*
  2. * $Id: comet.h,v 1.3 2005/09/28 00:10:07 rickd PMCC4_3_1B $
  3. */
  4. #ifndef _INC_COMET_H_
  5. #define _INC_COMET_H_
  6. /*-----------------------------------------------------------------------------
  7. * comet.h -
  8. *
  9. * Copyright (C) 2005 SBE, Inc.
  10. *
  11. * This program is free software; you can redistribute it and/or modify
  12. * it under the terms of the GNU General Public License as published by
  13. * the Free Software Foundation; either version 2 of the License, or
  14. * (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * For further information, contact via email: support@sbei.com
  22. * SBE, Inc. San Ramon, California U.S.A.
  23. *-----------------------------------------------------------------------------
  24. * RCS info:
  25. * RCS revision: $Revision: 1.3 $
  26. * Last changed on $Date: 2005/09/28 00:10:07 $
  27. * Changed by $Author: rickd $
  28. *-----------------------------------------------------------------------------
  29. * $Log: comet.h,v $
  30. * Revision 1.3 2005/09/28 00:10:07 rickd
  31. * Add RCS header. Switch to structure usage.
  32. *
  33. * Revision 1.2 2005/04/28 23:43:03 rickd
  34. * Add RCS tracking heading.
  35. *
  36. *-----------------------------------------------------------------------------
  37. */
  38. #if defined(__FreeBSD__) || defined (__NetBSD__)
  39. #include <sys/types.h>
  40. #else
  41. #include <linux/types.h>
  42. #endif
  43. #define VINT32 volatile u_int32_t
  44. struct s_comet_reg
  45. {
  46. VINT32 gbl_cfg; /* 00 Global Cfg */
  47. VINT32 clkmon; /* 01 Clk Monitor */
  48. VINT32 rx_opt; /* 02 RX Options */
  49. VINT32 rx_line_cfg; /* 03 RX Line Interface Cfg */
  50. VINT32 tx_line_cfg; /* 04 TX Line Interface Cfg */
  51. VINT32 tx_frpass; /* 05 TX Framing & Bypass Options */
  52. VINT32 tx_time; /* 06 TX Timing Options */
  53. VINT32 intr_1; /* 07 Intr Source #1 */
  54. VINT32 intr_2; /* 08 Intr Source #2 */
  55. VINT32 intr_3; /* 09 Intr Source #3 */
  56. VINT32 mdiag; /* 0A Master Diagnostics */
  57. VINT32 mtest; /* 0B Master Test */
  58. VINT32 adiag; /* 0C Analog Diagnostics */
  59. VINT32 rev_id; /* 0D Rev/Chip Id/Global PMON Update */
  60. #define pmon rev_id
  61. VINT32 reset; /* 0E Reset */
  62. VINT32 prgd_phctl; /* 0F PRGD Positioning/Ctl & HDLC Ctl */
  63. VINT32 cdrc_cfg; /* 10 CDRC Cfg */
  64. VINT32 cdrc_ien; /* 11 CDRC Intr Enable */
  65. VINT32 cdrc_ists; /* 12 CDRC Intr Sts */
  66. VINT32 cdrc_alos; /* 13 CDRC Alternate Loss of Signal */
  67. VINT32 rjat_ists; /* 14 RJAT Intr Sts */
  68. VINT32 rjat_n1clk; /* 15 RJAT Reference Clk Divisor (N1) Ctl */
  69. VINT32 rjat_n2clk; /* 16 RJAT Output Clk Divisor (N2) Ctl */
  70. VINT32 rjat_cfg; /* 17 RJAT Cfg */
  71. VINT32 tjat_ists; /* 18 TJAT Intr Sts */
  72. VINT32 tjat_n1clk; /* 19 TJAT Reference Clk Divisor (N1) Ctl */
  73. VINT32 tjat_n2clk; /* 1A TJAT Output Clk Divisor (N2) Ctl */
  74. VINT32 tjat_cfg; /* 1B TJAT Cfg */
  75. VINT32 rx_elst_cfg; /* 1C RX-ELST Cfg */
  76. VINT32 rx_elst_ists; /* 1D RX-ELST Intr Sts */
  77. VINT32 rx_elst_idle; /* 1E RX-ELST Idle Code */
  78. VINT32 _rx_elst_res1f; /* 1F RX-ELST Reserved */
  79. VINT32 tx_elst_cfg; /* 20 TX-ELST Cfg */
  80. VINT32 tx_elst_ists; /* 21 TX-ELST Intr Sts */
  81. VINT32 _tx_elst_res22; /* 22 TX-ELST Reserved */
  82. VINT32 _tx_elst_res23; /* 23 TX-ELST Reserved */
  83. VINT32 __res24; /* 24 Reserved */
  84. VINT32 __res25; /* 25 Reserved */
  85. VINT32 __res26; /* 26 Reserved */
  86. VINT32 __res27; /* 27 Reserved */
  87. VINT32 rxce1_ctl; /* 28 RXCE RX Data Link 1 Ctl */
  88. VINT32 rxce1_bits; /* 29 RXCE RX Data Link 1 Bit Select */
  89. VINT32 rxce2_ctl; /* 2A RXCE RX Data Link 2 Ctl */
  90. VINT32 rxce2_bits; /* 2B RXCE RX Data Link 2 Bit Select */
  91. VINT32 rxce3_ctl; /* 2C RXCE RX Data Link 3 Ctl */
  92. VINT32 rxce3_bits; /* 2D RXCE RX Data Link 3 Bit Select */
  93. VINT32 _rxce_res2E; /* 2E RXCE Reserved */
  94. VINT32 _rxce_res2F; /* 2F RXCE Reserved */
  95. VINT32 brif_cfg; /* 30 BRIF RX Backplane Cfg */
  96. VINT32 brif_fpcfg; /* 31 BRIF RX Backplane Frame Pulse Cfg */
  97. VINT32 brif_pfcfg; /* 32 BRIF RX Backplane Parity/F-Bit Cfg */
  98. VINT32 brif_tsoff; /* 33 BRIF RX Backplane Time Slot Offset */
  99. VINT32 brif_boff; /* 34 BRIF RX Backplane Bit Offset */
  100. VINT32 _brif_res35; /* 35 BRIF RX Backplane Reserved */
  101. VINT32 _brif_res36; /* 36 BRIF RX Backplane Reserved */
  102. VINT32 _brif_res37; /* 37 BRIF RX Backplane Reserved */
  103. VINT32 txci1_ctl; /* 38 TXCI TX Data Link 1 Ctl */
  104. VINT32 txci1_bits; /* 39 TXCI TX Data Link 2 Bit Select */
  105. VINT32 txci2_ctl; /* 3A TXCI TX Data Link 1 Ctl */
  106. VINT32 txci2_bits; /* 3B TXCI TX Data Link 2 Bit Select */
  107. VINT32 txci3_ctl; /* 3C TXCI TX Data Link 1 Ctl */
  108. VINT32 txci3_bits; /* 3D TXCI TX Data Link 2 Bit Select */
  109. VINT32 _txci_res3E; /* 3E TXCI Reserved */
  110. VINT32 _txci_res3F; /* 3F TXCI Reserved */
  111. VINT32 btif_cfg; /* 40 BTIF TX Backplane Cfg */
  112. VINT32 btif_fpcfg; /* 41 BTIF TX Backplane Frame Pulse Cfg */
  113. VINT32 btif_pcfgsts; /* 42 BTIF TX Backplane Parity Cfg & Sts */
  114. VINT32 btif_tsoff; /* 43 BTIF TX Backplane Time Slot Offset */
  115. VINT32 btif_boff; /* 44 BTIF TX Backplane Bit Offset */
  116. VINT32 _btif_res45; /* 45 BTIF TX Backplane Reserved */
  117. VINT32 _btif_res46; /* 46 BTIF TX Backplane Reserved */
  118. VINT32 _btif_res47; /* 47 BTIF TX Backplane Reserved */
  119. VINT32 t1_frmr_cfg; /* 48 T1 FRMR Cfg */
  120. VINT32 t1_frmr_ien; /* 49 T1 FRMR Intr Enable */
  121. VINT32 t1_frmr_ists; /* 4A T1 FRMR Intr Sts */
  122. VINT32 __res_4B; /* 4B Reserved */
  123. VINT32 ibcd_cfg; /* 4C IBCD Cfg */
  124. VINT32 ibcd_ies; /* 4D IBCD Intr Enable/Sts */
  125. VINT32 ibcd_act; /* 4E IBCD Activate Code */
  126. VINT32 ibcd_deact; /* 4F IBCD Deactivate Code */
  127. VINT32 sigx_cfg; /* 50 SIGX Cfg/Change of Signaling State */
  128. VINT32 sigx_acc_cos; /* 51 SIGX uP Access Sts/Change of Signaling State */
  129. VINT32 sigx_iac_cos; /* 52 SIGX Channel Indirect
  130. * Addr/Ctl/Change of Signaling State */
  131. VINT32 sigx_idb_cos; /* 53 SIGX Channel Indirect Data
  132. * Buffer/Change of Signaling State */
  133. VINT32 t1_xbas_cfg; /* 54 T1 XBAS Cfg */
  134. VINT32 t1_xbas_altx; /* 55 T1 XBAS Alarm TX */
  135. VINT32 t1_xibc_ctl; /* 56 T1 XIBC Ctl */
  136. VINT32 t1_xibc_lbcode; /* 57 T1 XIBC Loopback Code */
  137. VINT32 pmon_ies; /* 58 PMON Intr Enable/Sts */
  138. VINT32 pmon_fberr; /* 59 PMON Framing Bit Err Cnt */
  139. VINT32 pmon_feb_lsb; /* 5A PMON OFF/COFA/Far End Block Err Cnt (LSB) */
  140. VINT32 pmon_feb_msb; /* 5B PMON OFF/COFA/Far End Block Err Cnt (MSB) */
  141. VINT32 pmon_bed_lsb; /* 5C PMON Bit/Err/CRCE Cnt (LSB) */
  142. VINT32 pmon_bed_msb; /* 5D PMON Bit/Err/CRCE Cnt (MSB) */
  143. VINT32 pmon_lvc_lsb; /* 5E PMON LVC Cnt (LSB) */
  144. VINT32 pmon_lvc_msb; /* 5F PMON LVC Cnt (MSB) */
  145. VINT32 t1_almi_cfg; /* 60 T1 ALMI Cfg */
  146. VINT32 t1_almi_ien; /* 61 T1 ALMI Intr Enable */
  147. VINT32 t1_almi_ists; /* 62 T1 ALMI Intr Sts */
  148. VINT32 t1_almi_detsts; /* 63 T1 ALMI Alarm Detection Sts */
  149. VINT32 _t1_pdvd_res64; /* 64 T1 PDVD Reserved */
  150. VINT32 t1_pdvd_ies; /* 65 T1 PDVD Intr Enable/Sts */
  151. VINT32 _t1_xboc_res66; /* 66 T1 XBOC Reserved */
  152. VINT32 t1_xboc_code; /* 67 T1 XBOC Code */
  153. VINT32 _t1_xpde_res68; /* 68 T1 XPDE Reserved */
  154. VINT32 t1_xpde_ies; /* 69 T1 XPDE Intr Enable/Sts */
  155. VINT32 t1_rboc_ena; /* 6A T1 RBOC Enable */
  156. VINT32 t1_rboc_sts; /* 6B T1 RBOC Code Sts */
  157. VINT32 t1_tpsc_cfg; /* 6C TPSC Cfg */
  158. VINT32 t1_tpsc_sts; /* 6D TPSC uP Access Sts */
  159. VINT32 t1_tpsc_ciaddr; /* 6E TPSC Channel Indirect
  160. * Addr/Ctl */
  161. VINT32 t1_tpsc_cidata; /* 6F TPSC Channel Indirect Data
  162. * Buffer */
  163. VINT32 t1_rpsc_cfg; /* 70 RPSC Cfg */
  164. VINT32 t1_rpsc_sts; /* 71 RPSC uP Access Sts */
  165. VINT32 t1_rpsc_ciaddr; /* 72 RPSC Channel Indirect
  166. * Addr/Ctl */
  167. VINT32 t1_rpsc_cidata; /* 73 RPSC Channel Indirect Data
  168. * Buffer */
  169. VINT32 __res74; /* 74 Reserved */
  170. VINT32 __res75; /* 75 Reserved */
  171. VINT32 __res76; /* 76 Reserved */
  172. VINT32 __res77; /* 77 Reserved */
  173. VINT32 t1_aprm_cfg; /* 78 T1 APRM Cfg/Ctl */
  174. VINT32 t1_aprm_load; /* 79 T1 APRM Manual Load */
  175. VINT32 t1_aprm_ists; /* 7A T1 APRM Intr Sts */
  176. VINT32 t1_aprm_1sec_2; /* 7B T1 APRM One Second Content Octet 2 */
  177. VINT32 t1_aprm_1sec_3; /* 7C T1 APRM One Second Content Octet 3 */
  178. VINT32 t1_aprm_1sec_4; /* 7D T1 APRM One Second Content Octet 4 */
  179. VINT32 t1_aprm_1sec_5; /* 7E T1 APRM One Second Content MSB (Octect 5) */
  180. VINT32 t1_aprm_1sec_6; /* 7F T1 APRM One Second Content MSB (Octect 6) */
  181. VINT32 e1_tran_cfg; /* 80 E1 TRAN Cfg */
  182. VINT32 e1_tran_txalarm; /* 81 E1 TRAN TX Alarm/Diagnostic Ctl */
  183. VINT32 e1_tran_intctl; /* 82 E1 TRAN International Ctl */
  184. VINT32 e1_tran_extrab; /* 83 E1 TRAN Extra Bits Ctl */
  185. VINT32 e1_tran_ien; /* 84 E1 TRAN Intr Enable */
  186. VINT32 e1_tran_ists; /* 85 E1 TRAN Intr Sts */
  187. VINT32 e1_tran_nats; /* 86 E1 TRAN National Bit Codeword
  188. * Select */
  189. VINT32 e1_tran_nat; /* 87 E1 TRAN National Bit Codeword */
  190. VINT32 __res88; /* 88 Reserved */
  191. VINT32 __res89; /* 89 Reserved */
  192. VINT32 __res8A; /* 8A Reserved */
  193. VINT32 __res8B; /* 8B Reserved */
  194. VINT32 _t1_frmr_res8C; /* 8C T1 FRMR Reserved */
  195. VINT32 _t1_frmr_res8D; /* 8D T1 FRMR Reserved */
  196. VINT32 __res8E; /* 8E Reserved */
  197. VINT32 __res8F; /* 8F Reserved */
  198. VINT32 e1_frmr_aopts; /* 90 E1 FRMR Frame Alignment Options */
  199. VINT32 e1_frmr_mopts; /* 91 E1 FRMR Maintenance Mode Options */
  200. VINT32 e1_frmr_ien; /* 92 E1 FRMR Framing Sts Intr Enable */
  201. VINT32 e1_frmr_mien; /* 93 E1 FRMR Maintenance/Alarm Sts Intr Enable */
  202. VINT32 e1_frmr_ists; /* 94 E1 FRMR Framing Sts Intr Indication */
  203. VINT32 e1_frmr_mists; /* 95 E1 FRMR Maintenance/Alarm Sts Indication Enable */
  204. VINT32 e1_frmr_sts; /* 96 E1 FRMR Framing Sts */
  205. VINT32 e1_frmr_masts; /* 97 E1 FRMR Maintenance/Alarm Sts */
  206. VINT32 e1_frmr_nat_bits; /* 98 E1 FRMR International/National Bits */
  207. VINT32 e1_frmr_crc_lsb; /* 99 E1 FRMR CRC Err Cnt - LSB */
  208. VINT32 e1_frmr_crc_msb; /* 9A E1 FRMR CRC Err Cnt - MSB */
  209. VINT32 e1_frmr_nat_ien; /* 9B E1 FRMR National Bit Codeword Intr Enables */
  210. VINT32 e1_frmr_nat_ists; /* 9C E1 FRMR National Bit Codeword Intr/Sts */
  211. VINT32 e1_frmr_nat; /* 9D E1 FRMR National Bit Codewords */
  212. VINT32 e1_frmr_fp_ien; /* 9E E1 FRMR Frame Pulse/Alarm Intr Enables */
  213. VINT32 e1_frmr_fp_ists; /* 9F E1 FRMR Frame Pulse/Alarm Intr/Sts */
  214. VINT32 __resA0; /* A0 Reserved */
  215. VINT32 __resA1; /* A1 Reserved */
  216. VINT32 __resA2; /* A2 Reserved */
  217. VINT32 __resA3; /* A3 Reserved */
  218. VINT32 __resA4; /* A4 Reserved */
  219. VINT32 __resA5; /* A5 Reserved */
  220. VINT32 __resA6; /* A6 Reserved */
  221. VINT32 __resA7; /* A7 Reserved */
  222. VINT32 tdpr1_cfg; /* A8 TDPR #1 Cfg */
  223. VINT32 tdpr1_utl; /* A9 TDPR #1 Upper TX Threshold */
  224. VINT32 tdpr1_ltl; /* AA TDPR #1 Lower TX Threshold */
  225. VINT32 tdpr1_ien; /* AB TDPR #1 Intr Enable */
  226. VINT32 tdpr1_ists; /* AC TDPR #1 Intr Sts/UDR Clear */
  227. VINT32 tdpr1_data; /* AD TDPR #1 TX Data */
  228. VINT32 __resAE; /* AE Reserved */
  229. VINT32 __resAF; /* AF Reserved */
  230. VINT32 tdpr2_cfg; /* B0 TDPR #2 Cfg */
  231. VINT32 tdpr2_utl; /* B1 TDPR #2 Upper TX Threshold */
  232. VINT32 tdpr2_ltl; /* B2 TDPR #2 Lower TX Threshold */
  233. VINT32 tdpr2_ien; /* B3 TDPR #2 Intr Enable */
  234. VINT32 tdpr2_ists; /* B4 TDPR #2 Intr Sts/UDR Clear */
  235. VINT32 tdpr2_data; /* B5 TDPR #2 TX Data */
  236. VINT32 __resB6; /* B6 Reserved */
  237. VINT32 __resB7; /* B7 Reserved1 */
  238. VINT32 tdpr3_cfg; /* B8 TDPR #3 Cfg */
  239. VINT32 tdpr3_utl; /* B9 TDPR #3 Upper TX Threshold */
  240. VINT32 tdpr3_ltl; /* BA TDPR #3 Lower TX Threshold */
  241. VINT32 tdpr3_ien; /* BB TDPR #3 Intr Enable */
  242. VINT32 tdpr3_ists; /* BC TDPR #3 Intr Sts/UDR Clear */
  243. VINT32 tdpr3_data; /* BD TDPR #3 TX Data */
  244. VINT32 __resBE; /* BE Reserved */
  245. VINT32 __resBF; /* BF Reserved */
  246. VINT32 rdlc1_cfg; /* C0 RDLC #1 Cfg */
  247. VINT32 rdlc1_intctl; /* C1 RDLC #1 Intr Ctl */
  248. VINT32 rdlc1_sts; /* C2 RDLC #1 Sts */
  249. VINT32 rdlc1_data; /* C3 RDLC #1 Data */
  250. VINT32 rdlc1_paddr; /* C4 RDLC #1 Primary Addr Match */
  251. VINT32 rdlc1_saddr; /* C5 RDLC #1 Secondary Addr Match */
  252. VINT32 __resC6; /* C6 Reserved */
  253. VINT32 __resC7; /* C7 Reserved */
  254. VINT32 rdlc2_cfg; /* C8 RDLC #2 Cfg */
  255. VINT32 rdlc2_intctl; /* C9 RDLC #2 Intr Ctl */
  256. VINT32 rdlc2_sts; /* CA RDLC #2 Sts */
  257. VINT32 rdlc2_data; /* CB RDLC #2 Data */
  258. VINT32 rdlc2_paddr; /* CC RDLC #2 Primary Addr Match */
  259. VINT32 rdlc2_saddr; /* CD RDLC #2 Secondary Addr Match */
  260. VINT32 __resCE; /* CE Reserved */
  261. VINT32 __resCF; /* CF Reserved */
  262. VINT32 rdlc3_cfg; /* D0 RDLC #3 Cfg */
  263. VINT32 rdlc3_intctl; /* D1 RDLC #3 Intr Ctl */
  264. VINT32 rdlc3_sts; /* D2 RDLC #3 Sts */
  265. VINT32 rdlc3_data; /* D3 RDLC #3 Data */
  266. VINT32 rdlc3_paddr; /* D4 RDLC #3 Primary Addr Match */
  267. VINT32 rdlc3_saddr; /* D5 RDLC #3 Secondary Addr Match */
  268. VINT32 csu_cfg; /* D6 CSU Cfg */
  269. VINT32 _csu_resD7; /* D7 CSU Reserved */
  270. VINT32 rlps_idata3; /* D8 RLPS Indirect Data, 24-31 */
  271. VINT32 rlps_idata2; /* D9 RLPS Indirect Data, 16-23 */
  272. VINT32 rlps_idata1; /* DA RLPS Indirect Data, 8-15 */
  273. VINT32 rlps_idata0; /* DB RLPS Indirect Data, 0-7 */
  274. VINT32 rlps_eqvr; /* DC RLPS Equalizer Voltage Reference
  275. * (E1 missing) */
  276. VINT32 _rlps_resDD; /* DD RLPS Reserved */
  277. VINT32 _rlps_resDE; /* DE RLPS Reserved */
  278. VINT32 _rlps_resDF; /* DF RLPS Reserved */
  279. VINT32 prgd_ctl; /* E0 PRGD Ctl */
  280. VINT32 prgd_ies; /* E1 PRGD Intr Enable/Sts */
  281. VINT32 prgd_shift_len; /* E2 PRGD Shift Length */
  282. VINT32 prgd_tap; /* E3 PRGD Tap */
  283. VINT32 prgd_errin; /* E4 PRGD Err Insertion */
  284. VINT32 _prgd_resE5; /* E5 PRGD Reserved */
  285. VINT32 _prgd_resE6; /* E6 PRGD Reserved */
  286. VINT32 _prgd_resE7; /* E7 PRGD Reserved */
  287. VINT32 prgd_patin1; /* E8 PRGD Pattern Insertion #1 */
  288. VINT32 prgd_patin2; /* E9 PRGD Pattern Insertion #2 */
  289. VINT32 prgd_patin3; /* EA PRGD Pattern Insertion #3 */
  290. VINT32 prgd_patin4; /* EB PRGD Pattern Insertion #4 */
  291. VINT32 prgd_patdet1; /* EC PRGD Pattern Detector #1 */
  292. VINT32 prgd_patdet2; /* ED PRGD Pattern Detector #2 */
  293. VINT32 prgd_patdet3; /* EE PRGD Pattern Detector #3 */
  294. VINT32 prgd_patdet4; /* EF PRGD Pattern Detector #4 */
  295. VINT32 xlpg_cfg; /* F0 XLPG Line Driver Cfg */
  296. VINT32 xlpg_ctlsts; /* F1 XLPG Ctl/Sts */
  297. VINT32 xlpg_pwave_addr; /* F2 XLPG Pulse Waveform Storage Write Addr */
  298. VINT32 xlpg_pwave_data; /* F3 XLPG Pulse Waveform Storage Data */
  299. VINT32 xlpg_atest_pctl; /* F4 XLPG Analog Test Positive Ctl */
  300. VINT32 xlpg_atest_nctl; /* F5 XLPG Analog Test Negative Ctl */
  301. VINT32 xlpg_fdata_sel; /* F6 XLPG Fuse Data Select */
  302. VINT32 _xlpg_resF7; /* F7 XLPG Reserved */
  303. VINT32 rlps_cfgsts; /* F8 RLPS Cfg & Sts */
  304. VINT32 rlps_alos_thresh; /* F9 RLPS ALOS Detection/Clearance Threshold */
  305. VINT32 rlps_alos_dper; /* FA RLPS ALOS Detection Period */
  306. VINT32 rlps_alos_cper; /* FB RLPS ALOS Clearance Period */
  307. VINT32 rlps_eq_iaddr; /* FC RLPS Equalization Indirect Addr */
  308. VINT32 rlps_eq_rwsel; /* FD RLPS Equalization Read/WriteB Select */
  309. VINT32 rlps_eq_ctlsts; /* FE RLPS Equalizer Loop Sts & Ctl */
  310. VINT32 rlps_eq_cfg; /* FF RLPS Equalizer Cfg */
  311. };
  312. typedef struct s_comet_reg comet_t;
  313. /* 00AH: MDIAG Register bit definitions */
  314. #define COMET_MDIAG_ID5 0x40
  315. #define COMET_MDIAG_LBMASK 0x3F
  316. #define COMET_MDIAG_PAYLB 0x20
  317. #define COMET_MDIAG_LINELB 0x10
  318. #define COMET_MDIAG_RAIS 0x08
  319. #define COMET_MDIAG_DDLB 0x04
  320. #define COMET_MDIAG_TXMFP 0x02
  321. #define COMET_MDIAG_TXLOS 0x01
  322. #define COMET_MDIAG_LBOFF 0x00
  323. #undef VINT32
  324. #ifdef __KERNEL__
  325. extern void
  326. init_comet (void *, comet_t *, u_int32_t, int, u_int8_t);
  327. #endif
  328. #endif /* _INC_COMET_H_ */