Go to the documentation of this file. 1 #ifndef _INC_LIBSBEW_H_
2 #define _INC_LIBSBEW_H_
35 #define LOG_LSCHANGE 5
36 #define LOG_LSIMMEDIATE 6
38 #define LOG_MONITOR 10
39 #define LOG_SBEBUG12 12
40 #define LOG_MONITOR2 14
44 #define c4_LOG_NONE LOG_NONE
45 #define c4_LOG_ERROR LOG_ERROR
46 #define c4_LOG_WARN LOG_WARN
47 #define c4_LOG_sTrace LOG_MONITOR
49 #define c4_LOG_DEBUG LOG_DEBUG
50 #define c4_LOG_MAX LOG_DEBUG
74 #define CHNM_STRLEN 16
95 #define PCI_VENDOR_ID_SBE 0x1176
96 #define PCI_DEVICE_ID_WANPMC_C4T1E1 0x0701
97 #define PCI_DEVICE_ID_WANPTMC_C4T1E1 0x0702
98 #define PCI_DEVICE_ID_WANADAPT_HC4T1E1 0x0703
99 #define PCI_DEVICE_ID_WANPTMC_256T3_T1 0x0704
100 #define PCI_DEVICE_ID_WANPCI_C4T1E1 0x0705
101 #define PCI_DEVICE_ID_WANPMC_C1T3 0x0706
102 #define PCI_DEVICE_ID_WANPCI_C2T1E1 0x0707
103 #define PCI_DEVICE_ID_WANPCI_C1T1E1 0x0708
104 #define PCI_DEVICE_ID_WANPMC_C2T1E1 0x0709
105 #define PCI_DEVICE_ID_WANPMC_C1T1E1 0x070A
106 #define PCI_DEVICE_ID_WANPTMC_256T3_E1 0x070B
107 #define PCI_DEVICE_ID_WANPTMC_C24TE1 0x070C
108 #define PCI_DEVICE_ID_WANPMC_C4T1E1_L 0x070D
110 #define PCI_DEVICE_ID_WANPMC_C2T1E1_L 0x070E
112 #define PCI_DEVICE_ID_WANPMC_C1T1E1_L 0x070F
114 #define PCI_DEVICE_ID_WANPMC_2SSI 0x0801
115 #define PCI_DEVICE_ID_WANPCI_4SSI 0x0802
116 #define PCI_DEVICE_ID_WANPMC_2T3E3 0x0900
117 #define SBE_BOARD_ID(v,id) ((v<<16) | id)
119 #define BINFO_PCI_SPEED_unk 0
120 #define BINFO_PCI_SPEED_33 1
121 #define BINFO_PCI_SPEED_66 2
147 #define BRDADDR_SIZE_64 1
148 #define BRDADDR_SIZE_32 2
177 #define C1T3_CHIP_MSCC_32 0x01000000
178 #define C1T3_CHIP_TECT3_8 0x02000000
179 #define C1T3_CHIP_CPLD_8 0x03000000
180 #define C1T3_CHIP_EEPROM_8 0x04000000
182 #define W256T3_CHIP_MUSYCC_32 0x02000000
183 #define W256T3_CHIP_TEMUX_8 0x10000000
184 #define W256T3_CHIP_T8110_8 0x20000000
185 #define W256T3_CHIP_T8110_32 0x22000000
186 #define W256T3_CHIP_CPLD_8 0x30000000
187 #define W256T3_CHIP_EEPROM_8 0x40000000
207 #ifdef SBE_PMCC4_ENABLE
214 #define CFG_CLK_PORT_MASK 0x80
215 #define CFG_CLK_PORT_INTERNAL 0x80
216 #define CFG_CLK_PORT_EXTERNAL 0x00
218 #define CFG_LBO_MASK 0x0F
219 #define CFG_LBO_unk 0
220 #define CFG_LBO_LH0 1
221 #define CFG_LBO_LH7_5 2
222 #define CFG_LBO_LH15 3
223 #define CFG_LBO_LH22_5 4
224 #define CFG_LBO_SH110 5
225 #define CFG_LBO_SH220 6
226 #define CFG_LBO_SH330 7
227 #define CFG_LBO_SH440 8
228 #define CFG_LBO_SH550 9
229 #define CFG_LBO_SH660 10
230 #define CFG_LBO_E75 11
231 #define CFG_LBO_E120 12
246 #ifdef SBE_PMCC4_ENABLE
266 #define SS7_INTR_SFILT 0x00000020
267 #define SS7_INTR_SDEC 0x00000040
268 #define SS7_INTR_SINC 0x00000080
269 #define SS7_INTR_SUERR 0x00000100
271 #define INTR_BUFF 0x00000002
272 #define INTR_EOM 0x00000004
273 #define INTR_MSG 0x00000008
274 #define INTR_IDLE 0x00000010
277 #define TX_ENABLED 0x01
278 #define RX_ENABLED 0x02
281 #define CFG_CH_PROTO_TRANS 0
282 #define CFG_CH_PROTO_SS7 1
283 #define CFG_CH_PROTO_HDLC_FCS16 2
284 #define CFG_CH_PROTO_HDLC_FCS32 3
285 #define CFG_CH_PROTO_ISLP_MODE 4
288 #define CFG_CH_FLAG_7E 0
289 #define CFG_CH_FLAG_FF 1
290 #define CFG_CH_FLAG_00 2
293 #define CFG_CH_DINV_NONE 0x00
294 #define CFG_CH_DINV_RX 0x01
295 #define CFG_CH_DINV_TX 0x02
299 #define RESET_DEV_TEMUX 1
300 #define RESET_DEV_TECT3 RESET_DEV_TEMUX
301 #define RESET_DEV_PLL 2
369 #define FRAMING_M13 0
370 #define FRAMING_CBP 1
373 #define CFG_CARD_LOOPBACK_NONE 0x00
374 #define CFG_CARD_LOOPBACK_DIAG 0x01
375 #define CFG_CARD_LOOPBACK_LINE 0x02
376 #define CFG_CARD_LOOPBACK_PAYLOAD 0x03
379 #define CFG_LIU_LOOPBACK_NONE 0x00
380 #define CFG_LIU_LOOPBACK_ANALOG 0x10
381 #define CFG_LIU_LOOPBACK_DIGITAL 0x11
382 #define CFG_LIU_LOOPBACK_REMOTE 0x12
385 #define CFG_CLK_INTERNAL 0x00
386 #define CFG_CLK_EXTERNAL 0x01
389 #define LOOPBACK_NONE 0
390 #define LOOPBACK_LIU_ANALOG 1
391 #define LOOPBACK_LIU_DIGITAL 2
392 #define LOOPBACK_FRAMER_DS3 3
393 #define LOOPBACK_FRAMER_T1 4
394 #define LOOPBACK_LIU_REMOTE 5
397 #define CFG_DS1_MODE_MASK 0x0f
398 #define CFG_DS1_MODE_T1 0x00
399 #define CFG_DS1_MODE_E1 0x01
400 #define CFG_DS1_MODE_CHANGE 0x80
403 #define CFG_DS3_UNCHAN_MASK 0x01
404 #define CFG_DS3_UNCHAN_OFF 0x00
405 #define CFG_DS3_UNCHAN_ON 0x01
426 #define CFG_FRAME_NONE 0
427 #define CFG_FRAME_SF 1
428 #define CFG_FRAME_ESF 2
429 #define CFG_FRAME_E1PLAIN 3
430 #define CFG_FRAME_E1CAS 4
431 #define CFG_FRAME_E1CRC 5
432 #define CFG_FRAME_E1CRC_CAS 6
433 #define CFG_FRAME_SF_AMI 7
434 #define CFG_FRAME_ESF_AMI 8
435 #define CFG_FRAME_E1PLAIN_AMI 9
436 #define CFG_FRAME_E1CAS_AMI 10
437 #define CFG_FRAME_E1CRC_AMI 11
438 #define CFG_FRAME_E1CRC_CAS_AMI 12
440 #define IS_FRAME_ANY_T1(field) \
441 (((field) == CFG_FRAME_NONE) || \
442 ((field) == CFG_FRAME_SF) || \
443 ((field) == CFG_FRAME_ESF) || \
444 ((field) == CFG_FRAME_SF_AMI) || \
445 ((field) == CFG_FRAME_ESF_AMI))
447 #define IS_FRAME_ANY_T1ESF(field) \
448 (((field) == CFG_FRAME_ESF) || \
449 ((field) == CFG_FRAME_ESF_AMI))
451 #define IS_FRAME_ANY_E1(field) \
452 (((field) == CFG_FRAME_E1PLAIN) || \
453 ((field) == CFG_FRAME_E1CAS) || \
454 ((field) == CFG_FRAME_E1CRC) || \
455 ((field) == CFG_FRAME_E1CRC_CAS) || \
456 ((field) == CFG_FRAME_E1PLAIN_AMI) || \
457 ((field) == CFG_FRAME_E1CAS_AMI) || \
458 ((field) == CFG_FRAME_E1CRC_AMI) || \
459 ((field) == CFG_FRAME_E1CRC_CAS_AMI))
461 #define IS_FRAME_ANY_AMI(field) \
462 (((field) == CFG_FRAME_SF_AMI) || \
463 ((field) == CFG_FRAME_ESF_AMI) || \
464 ((field) == CFG_FRAME_E1PLAIN_AMI) || \
465 ((field) == CFG_FRAME_E1CAS_AMI) || \
466 ((field) == CFG_FRAME_E1CRC_AMI) || \
467 ((field) == CFG_FRAME_E1CRC_CAS_AMI))
470 #define CFG_FRMR_LOOPBACK_NONE 0
471 #define CFG_FRMR_LOOPBACK_DIAG 1
472 #define CFG_FRMR_LOOPBACK_LINE 2
473 #define CFG_FRMR_LOOPBACK_PAYLOAD 3
544 #ifdef NOT_YET_COMMON
545 extern int wancfg_get_tsioc (
wcfg_t *,
struct wanc1t3_ts_hdr *,
struct wanc1t3_ts_param *);
546 extern int wancfg_set_tsioc (
wcfg_t *,
struct wanc1t3_ts_param *);