Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
farsync.h File Reference

Go to the source code of this file.

Data Structures

struct  fstioc_write
 
struct  fstioc_info
 

Macros

#define FST_NAME   "fst" /* In debug/info etc */
 
#define FST_NDEV_NAME   "sync" /* For net interface */
 
#define FST_DEV_NAME   "farsync" /* For misc interfaces */
 
#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)
 
#define FSTVAL_NONE
 
#define FSTVAL_OMODEM
 
#define FSTVAL_SPEED
 
#define FSTVAL_CABLE   0x00000040 /* lineInterface, cableStatus */
 
#define FSTVAL_IMODEM   0x00000080 /* v24IpSts */
 
#define FSTVAL_CARD
 
#define FSTVAL_PROTO   0x00000200 /* proto */
 
#define FSTVAL_MODE   0x00000400 /* cardMode */
 
#define FSTVAL_PHASE   0x00000800 /* Clock phase */
 
#define FSTVAL_TE1   0x00001000 /* T1E1 Configuration */
 
#define FSTVAL_DEBUG   0x80000000 /* debug */
 
#define FSTVAL_ALL   0x00001FFF /* Note: does not include DEBUG flag */
 
#define FST_TYPE_NONE   0 /* Probably should never happen */
 
#define FST_TYPE_T2P   1 /* T2P X21 2 port card */
 
#define FST_TYPE_T4P   2 /* T4P X21 4 port card */
 
#define FST_TYPE_T1U   3 /* T1U X21 1 port card */
 
#define FST_TYPE_T2U   4 /* T2U X21 2 port card */
 
#define FST_TYPE_T4U   5 /* T4U X21 4 port card */
 
#define FST_TYPE_TE1   6 /* T1E1 X21 1 port card */
 
#define FST_FAMILY_TXP   0 /* T2P or T4P */
 
#define FST_FAMILY_TXU   1 /* T1U or T2U or T4U */
 
#define FST_UNINIT
 
#define FST_RESET   1 /* Processor held in reset state */
 
#define FST_DOWNLOAD   2 /* Card being downloaded */
 
#define FST_STARTING   3 /* Released following download */
 
#define FST_RUNNING   4 /* Processor running */
 
#define FST_BADVERSION   5 /* Bad shared memory version detected */
 
#define FST_HALTED   6 /* Processor flagged a halt */
 
#define FST_IFAILED
 
#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 /* Two way raw packets */
 
#define FST_GEN_HDLC   5 /* Using "Generic HDLC" module */
 
#define INTCLK   1
 
#define EXTCLK   0
 
#define IPSTS_CTS   0x00000001 /* Clear To Send (Indicate for X.21) */
 
#define IPSTS_INDICATE   IPSTS_CTS
 
#define IPSTS_DSR   0x00000002 /* Data Set Ready (T2P Port A) */
 
#define IPSTS_DCD   0x00000004 /* Data Carrier Detect */
 
#define IPSTS_RI   0x00000008 /* Ring Indicator (T2P Port A) */
 
#define IPSTS_TMI   0x00000010 /* Test Mode Indicator (Not Supported)*/
 
#define OPSTS_RTS   0x00000001 /* Request To Send (Control for X.21) */
 
#define OPSTS_CONTROL   OPSTS_RTS
 
#define OPSTS_DTR   0x00000002 /* Data Terminal Ready */
 
#define OPSTS_DSRS
 
#define OPSTS_SS   0x00000008 /* Select Standby (Not Supported) */
 
#define OPSTS_LL   0x00000010 /* Maintenance Test (Not Supported) */
 
#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
 

Macro Definition Documentation

#define BUFFER_1_FRAME   1

Definition at line 303 of file farsync.h.

#define BUFFER_2_FRAME   0

Definition at line 302 of file farsync.h.

#define BUFFER_96_BIT   2

Definition at line 304 of file farsync.h.

#define BUFFER_NONE   3

Definition at line 305 of file farsync.h.

#define CARD_MODE_IDENTIFY   0x0001

Definition at line 213 of file farsync.h.

#define CLOCKING_MASTER   1

Definition at line 223 of file farsync.h.

#define CLOCKING_SLAVE   0

Definition at line 222 of file farsync.h.

#define CODING_AMI   5

Definition at line 259 of file farsync.h.

#define CODING_AMI_ZCS   6

Definition at line 260 of file farsync.h.

#define CODING_B8ZS   7

Definition at line 261 of file farsync.h.

#define CODING_CMI   2

Definition at line 256 of file farsync.h.

#define CODING_CMI_B8ZS   4

Definition at line 258 of file farsync.h.

#define CODING_CMI_HDB3   3

Definition at line 257 of file farsync.h.

#define CODING_HDB3   0

Definition at line 254 of file farsync.h.

#define CODING_NRZ   1

Definition at line 255 of file farsync.h.

#define E1   6

Definition at line 185 of file farsync.h.

#define EQUALIZER_LONG   1

Definition at line 288 of file farsync.h.

#define EQUALIZER_SHORT   0

Definition at line 287 of file farsync.h.

#define EXTCLK   0

Definition at line 194 of file farsync.h.

#define FRAMING_E1   0

Definition at line 228 of file farsync.h.

#define FRAMING_J1   1

Definition at line 229 of file farsync.h.

#define FRAMING_T1   2

Definition at line 230 of file farsync.h.

#define FST_BADVERSION   5 /* Bad shared memory version detected */

Definition at line 176 of file farsync.h.

#define FST_DEBUG   0x0000

Definition at line 315 of file farsync.h.

#define FST_DEV_NAME   "farsync" /* For misc interfaces */

Definition at line 42 of file farsync.h.

#define FST_DOWNLOAD   2 /* Card being downloaded */

Definition at line 173 of file farsync.h.

#define FST_FAMILY_TXP   0 /* T2P or T4P */

Definition at line 167 of file farsync.h.

#define FST_FAMILY_TXU   1 /* T1U or T2U or T4U */

Definition at line 168 of file farsync.h.

#define FST_GEN_HDLC   5 /* Using "Generic HDLC" module */

Definition at line 190 of file farsync.h.

#define FST_HALTED   6 /* Processor flagged a halt */

Definition at line 177 of file farsync.h.

#define FST_IFAILED
Value:
7 /* Firmware issued initialisation failed
* interrupt
*/

Definition at line 178 of file farsync.h.

#define FST_NAME   "fst" /* In debug/info etc */

Definition at line 40 of file farsync.h.

#define FST_NDEV_NAME   "sync" /* For net interface */

Definition at line 41 of file farsync.h.

#define FST_RAW   4 /* Two way raw packets */

Definition at line 189 of file farsync.h.

#define FST_RESET   1 /* Processor held in reset state */

Definition at line 172 of file farsync.h.

#define FST_RUNNING   4 /* Processor running */

Definition at line 175 of file farsync.h.

#define FST_STARTING   3 /* Released following download */

Definition at line 174 of file farsync.h.

#define FST_TYPE_NONE   0 /* Probably should never happen */

Definition at line 158 of file farsync.h.

#define FST_TYPE_T1U   3 /* T1U X21 1 port card */

Definition at line 161 of file farsync.h.

#define FST_TYPE_T2P   1 /* T2P X21 2 port card */

Definition at line 159 of file farsync.h.

#define FST_TYPE_T2U   4 /* T2U X21 2 port card */

Definition at line 162 of file farsync.h.

#define FST_TYPE_T4P   2 /* T4P X21 4 port card */

Definition at line 160 of file farsync.h.

#define FST_TYPE_T4U   5 /* T4U X21 4 port card */

Definition at line 163 of file farsync.h.

#define FST_TYPE_TE1   6 /* T1E1 X21 1 port card */

Definition at line 164 of file farsync.h.

#define FST_UNINIT
Value:
0 /* Raw uninitialised state following
* system startup */

Definition at line 171 of file farsync.h.

#define FST_USER_VERSION   "1.04"

Definition at line 53 of file farsync.h.

#define FSTCPURELEASE   (SIOCDEVPRIVATE+12)

Definition at line 60 of file farsync.h.

#define FSTCPURESET   (SIOCDEVPRIVATE+11)

Definition at line 59 of file farsync.h.

#define FSTGETCONF   (SIOCDEVPRIVATE+13)

Definition at line 61 of file farsync.h.

#define FSTSETCONF   (SIOCDEVPRIVATE+14)

Definition at line 62 of file farsync.h.

#define FSTVAL_ALL   0x00001FFF /* Note: does not include DEBUG flag */

Definition at line 155 of file farsync.h.

#define FSTVAL_CABLE   0x00000040 /* lineInterface, cableStatus */

Definition at line 147 of file farsync.h.

#define FSTVAL_CARD
Value:
0x00000100 /* nports, type, state, index,
* smcFirmwareVersion
*/

Definition at line 149 of file farsync.h.

#define FSTVAL_DEBUG   0x80000000 /* debug */

Definition at line 154 of file farsync.h.

#define FSTVAL_IMODEM   0x00000080 /* v24IpSts */

Definition at line 148 of file farsync.h.

#define FSTVAL_MODE   0x00000400 /* cardMode */

Definition at line 151 of file farsync.h.

#define FSTVAL_NONE
Value:
0x00000000 /* Nothing valid (firmware not running).
* Slight misnomer. In fact nports,
* type, state and index will be set
* based on hardware detected.
*/

Definition at line 144 of file farsync.h.

#define FSTVAL_OMODEM
Value:
0x0000001F /* First 5 bits correspond to the
* output status bits defined for
* v24OpSts
*/

Definition at line 145 of file farsync.h.

#define FSTVAL_PHASE   0x00000800 /* Clock phase */

Definition at line 152 of file farsync.h.

#define FSTVAL_PROTO   0x00000200 /* proto */

Definition at line 150 of file farsync.h.

#define FSTVAL_SPEED
Value:
0x00000020 /* internalClock, lineSpeed, clockStatus
*/

Definition at line 146 of file farsync.h.

#define FSTVAL_TE1   0x00001000 /* T1E1 Configuration */

Definition at line 153 of file farsync.h.

#define FSTWRITE   (SIOCDEVPRIVATE+10)

Definition at line 58 of file farsync.h.

#define INTCLK   1

Definition at line 193 of file farsync.h.

#define INTERFACE_BNC   1

Definition at line 248 of file farsync.h.

#define INTERFACE_RJ48C   0

Definition at line 247 of file farsync.h.

#define IPSTS_CTS   0x00000001 /* Clear To Send (Indicate for X.21) */

Definition at line 197 of file farsync.h.

#define IPSTS_DCD   0x00000004 /* Data Carrier Detect */

Definition at line 200 of file farsync.h.

#define IPSTS_DSR   0x00000002 /* Data Set Ready (T2P Port A) */

Definition at line 199 of file farsync.h.

#define IPSTS_INDICATE   IPSTS_CTS

Definition at line 198 of file farsync.h.

#define IPSTS_RI   0x00000008 /* Ring Indicator (T2P Port A) */

Definition at line 201 of file farsync.h.

#define IPSTS_TMI   0x00000010 /* Test Mode Indicator (Not Supported)*/

Definition at line 202 of file farsync.h.

#define J1   7

Definition at line 186 of file farsync.h.

#define LBO_0dB   0

Definition at line 266 of file farsync.h.

#define LBO_15dB   2

Definition at line 268 of file farsync.h.

#define LBO_22dB5   3

Definition at line 269 of file farsync.h.

#define LBO_7dB5   1

Definition at line 267 of file farsync.h.

#define LOOP_LOCAL   1

Definition at line 294 of file farsync.h.

#define LOOP_NONE   0

Definition at line 293 of file farsync.h.

#define LOOP_PAYLOAD_EXC_TS0   2

Definition at line 295 of file farsync.h.

#define LOOP_PAYLOAD_INC_TS0   3

Definition at line 296 of file farsync.h.

#define LOOP_REMOTE   4

Definition at line 297 of file farsync.h.

#define OPSTS_CONTROL   OPSTS_RTS

Definition at line 206 of file farsync.h.

#define OPSTS_DSRS
Value:
0x00000004 /* Data Signalling Rate Select (Not
* Supported) */

Definition at line 208 of file farsync.h.

#define OPSTS_DTR   0x00000002 /* Data Terminal Ready */

Definition at line 207 of file farsync.h.

#define OPSTS_LL   0x00000010 /* Maintenance Test (Not Supported) */

Definition at line 210 of file farsync.h.

#define OPSTS_RTS   0x00000001 /* Request To Send (Control for X.21) */

Definition at line 205 of file farsync.h.

#define OPSTS_SS   0x00000008 /* Select Standby (Not Supported) */

Definition at line 209 of file farsync.h.

#define RANGE_0_133_FT   0

Definition at line 274 of file farsync.h.

#define RANGE_0_40_M   RANGE_0_133_FT

Definition at line 275 of file farsync.h.

#define RANGE_122_162_M   RANGE_399_533_FT

Definition at line 281 of file farsync.h.

#define RANGE_133_266_FT   1

Definition at line 276 of file farsync.h.

#define RANGE_162_200_M   RANGE_533_655_FT

Definition at line 283 of file farsync.h.

#define RANGE_266_399_FT   2

Definition at line 278 of file farsync.h.

#define RANGE_399_533_FT   3

Definition at line 280 of file farsync.h.

#define RANGE_40_81_M   RANGE_133_266_FT

Definition at line 277 of file farsync.h.

#define RANGE_533_655_FT   4

Definition at line 282 of file farsync.h.

#define RANGE_81_122_M   RANGE_266_399_FT

Definition at line 279 of file farsync.h.

#define STRUCTURE_E1_CRC4   2

Definition at line 237 of file farsync.h.

#define STRUCTURE_E1_CRC4M   3

Definition at line 238 of file farsync.h.

#define STRUCTURE_E1_DOUBLE   1

Definition at line 236 of file farsync.h.

#define STRUCTURE_T1_12   5

Definition at line 240 of file farsync.h.

#define STRUCTURE_T1_24   6

Definition at line 241 of file farsync.h.

#define STRUCTURE_T1_4   4

Definition at line 239 of file farsync.h.

#define STRUCTURE_T1_72   7

Definition at line 242 of file farsync.h.

#define STRUCTURE_UNFRAMED   0

Definition at line 235 of file farsync.h.

#define T1   5

Definition at line 184 of file farsync.h.

#define V24   1

Definition at line 180 of file farsync.h.

#define V35   3

Definition at line 182 of file farsync.h.

#define X21   2

Definition at line 181 of file farsync.h.

#define X21D   4

Definition at line 183 of file farsync.h.