123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347 |
- #define FST_NAME "fst"
- #define FST_NDEV_NAME "sync"
- #define FST_DEV_NAME "farsync"
- #define FST_USER_VERSION "1.04"
- #define FSTWRITE (SIOCDEVPRIVATE+10)
- #define FSTCPURESET (SIOCDEVPRIVATE+11)
- #define FSTCPURELEASE (SIOCDEVPRIVATE+12)
- #define FSTGETCONF (SIOCDEVPRIVATE+13)
- #define FSTSETCONF (SIOCDEVPRIVATE+14)
- struct fstioc_write {
- unsigned int size;
- unsigned int offset;
- unsigned char data[];
- };
- struct fstioc_info {
- unsigned int valid;
- unsigned int nports;
- unsigned int type;
- unsigned int state;
- unsigned int index;
- unsigned int smcFirmwareVersion;
- unsigned long kernelVersion;
- unsigned short lineInterface;
- unsigned char proto;
- unsigned char internalClock;
- unsigned int lineSpeed;
- unsigned int v24IpSts;
- unsigned int v24OpSts;
- unsigned short clockStatus;
- unsigned short cableStatus;
- unsigned short cardMode;
- unsigned short debug;
- unsigned char transparentMode;
- unsigned char invertClock;
- unsigned char startingSlot;
- unsigned char clockSource;
- unsigned char framing;
- unsigned char structure;
-
- unsigned char interface;
- unsigned char coding;
- unsigned char lineBuildOut;
- unsigned char equalizer;
- unsigned char loopMode;
- unsigned char range;
- unsigned char txBufferMode;
- unsigned char rxBufferMode;
- unsigned char losThreshold;
- unsigned char idleCode;
- unsigned int receiveBufferDelay;
- unsigned int framingErrorCount;
- unsigned int codeViolationCount;
- unsigned int crcErrorCount;
- int lineAttenuation;
- unsigned short lossOfSignal;
- unsigned short receiveRemoteAlarm;
- unsigned short alarmIndicationSignal;
- };
- #define FSTVAL_NONE 0x00000000
- #define FSTVAL_OMODEM 0x0000001F
- #define FSTVAL_SPEED 0x00000020
- #define FSTVAL_CABLE 0x00000040
- #define FSTVAL_IMODEM 0x00000080
- #define FSTVAL_CARD 0x00000100
- #define FSTVAL_PROTO 0x00000200
- #define FSTVAL_MODE 0x00000400
- #define FSTVAL_PHASE 0x00000800
- #define FSTVAL_TE1 0x00001000
- #define FSTVAL_DEBUG 0x80000000
- #define FSTVAL_ALL 0x00001FFF
- #define FST_TYPE_NONE 0
- #define FST_TYPE_T2P 1
- #define FST_TYPE_T4P 2
- #define FST_TYPE_T1U 3
- #define FST_TYPE_T2U 4
- #define FST_TYPE_T4U 5
- #define FST_TYPE_TE1 6
- #define FST_FAMILY_TXP 0
- #define FST_FAMILY_TXU 1
- #define FST_UNINIT 0
- #define FST_RESET 1
- #define FST_DOWNLOAD 2
- #define FST_STARTING 3
- #define FST_RUNNING 4
- #define FST_BADVERSION 5
- #define FST_HALTED 6
- #define FST_IFAILED 7
- #define V24 1
- #define X21 2
- #define V35 3
- #define X21D 4
- #define T1 5
- #define E1 6
- #define J1 7
- #define FST_RAW 4
- #define FST_GEN_HDLC 5
- #define INTCLK 1
- #define EXTCLK 0
- #define IPSTS_CTS 0x00000001
- #define IPSTS_INDICATE IPSTS_CTS
- #define IPSTS_DSR 0x00000002
- #define IPSTS_DCD 0x00000004
- #define IPSTS_RI 0x00000008
- #define IPSTS_TMI 0x00000010
- #define OPSTS_RTS 0x00000001
- #define OPSTS_CONTROL OPSTS_RTS
- #define OPSTS_DTR 0x00000002
- #define OPSTS_DSRS 0x00000004
- #define OPSTS_SS 0x00000008
- #define OPSTS_LL 0x00000010
- #define CARD_MODE_IDENTIFY 0x0001
- #define CLOCKING_SLAVE 0
- #define CLOCKING_MASTER 1
- #define FRAMING_E1 0
- #define FRAMING_J1 1
- #define FRAMING_T1 2
- #define STRUCTURE_UNFRAMED 0
- #define STRUCTURE_E1_DOUBLE 1
- #define STRUCTURE_E1_CRC4 2
- #define STRUCTURE_E1_CRC4M 3
- #define STRUCTURE_T1_4 4
- #define STRUCTURE_T1_12 5
- #define STRUCTURE_T1_24 6
- #define STRUCTURE_T1_72 7
- #define INTERFACE_RJ48C 0
- #define INTERFACE_BNC 1
- #define CODING_HDB3 0
- #define CODING_NRZ 1
- #define CODING_CMI 2
- #define CODING_CMI_HDB3 3
- #define CODING_CMI_B8ZS 4
- #define CODING_AMI 5
- #define CODING_AMI_ZCS 6
- #define CODING_B8ZS 7
- #define LBO_0dB 0
- #define LBO_7dB5 1
- #define LBO_15dB 2
- #define LBO_22dB5 3
- #define RANGE_0_133_FT 0
- #define RANGE_0_40_M RANGE_0_133_FT
- #define RANGE_133_266_FT 1
- #define RANGE_40_81_M RANGE_133_266_FT
- #define RANGE_266_399_FT 2
- #define RANGE_81_122_M RANGE_266_399_FT
- #define RANGE_399_533_FT 3
- #define RANGE_122_162_M RANGE_399_533_FT
- #define RANGE_533_655_FT 4
- #define RANGE_162_200_M RANGE_533_655_FT
- #define EQUALIZER_SHORT 0
- #define EQUALIZER_LONG 1
- #define LOOP_NONE 0
- #define LOOP_LOCAL 1
- #define LOOP_PAYLOAD_EXC_TS0 2
- #define LOOP_PAYLOAD_INC_TS0 3
- #define LOOP_REMOTE 4
- #define BUFFER_2_FRAME 0
- #define BUFFER_1_FRAME 1
- #define BUFFER_96_BIT 2
- #define BUFFER_NONE 3
- #define FST_DEBUG 0x0000
- #if FST_DEBUG
- extern int fst_debug_mask;
- #define DBG_INIT 0x0002
- #define DBG_OPEN 0x0004
- #define DBG_PCI 0x0008
- #define DBG_IOCTL 0x0010
- #define DBG_INTR 0x0020
- #define DBG_TX 0x0040
- #define DBG_RX 0x0080
- #define DBG_CMD 0x0100
- #define DBG_ASS 0xFFFF
- #endif
|