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