Go to the documentation of this file.
19 #define LMCIOCGINFO SIOCDEVPRIVATE+3
20 #define LMCIOCSINFO SIOCDEVPRIVATE+4
21 #define LMCIOCGETLMCSTATS SIOCDEVPRIVATE+5
22 #define LMCIOCCLEARLMCSTATS SIOCDEVPRIVATE+6
23 #define LMCIOCDUMPEVENTLOG SIOCDEVPRIVATE+7
24 #define LMCIOCGETXINFO SIOCDEVPRIVATE+8
25 #define LMCIOCSETCIRCUIT SIOCDEVPRIVATE+9
26 #define LMCIOCUNUSEDATM SIOCDEVPRIVATE+10
27 #define LMCIOCRESET SIOCDEVPRIVATE+11
28 #define LMCIOCT1CONTROL SIOCDEVPRIVATE+12
29 #define LMCIOCIFTYPE SIOCDEVPRIVATE+13
30 #define LMCIOCXILINX SIOCDEVPRIVATE+14
32 #define LMC_CARDTYPE_UNKNOWN -1
33 #define LMC_CARDTYPE_HSSI 1
34 #define LMC_CARDTYPE_DS3 2
35 #define LMC_CARDTYPE_SSI 3
36 #define LMC_CARDTYPE_T1 4
38 #define LMC_CTL_CARDTYPE_LMC5200 0
39 #define LMC_CTL_CARDTYPE_LMC5245 1
40 #define LMC_CTL_CARDTYPE_LMC1000 2
41 #define LMC_CTL_CARDTYPE_LMC1200 3
46 #define LMC_CTL_CLOCK_SOURCE_EXT 0
47 #define LMC_CTL_CLOCK_SOURCE_INT 1
49 #define LMC_CTL_CRC_LENGTH_16 16
50 #define LMC_CTL_CRC_LENGTH_32 32
51 #define LMC_CTL_CRC_BYTESIZE_2 2
52 #define LMC_CTL_CRC_BYTESIZE_4 4
55 #define LMC_CTL_CABLE_LENGTH_LT_100FT 0
56 #define LMC_CTL_CABLE_LENGTH_GT_100FT 1
58 #define LMC_CTL_CIRCUIT_TYPE_E1 0
59 #define LMC_CTL_CIRCUIT_TYPE_T1 1
74 #define LMC_GEP_INIT 0x01
75 #define LMC_GEP_RESET 0x02
76 #define LMC_GEP_MODE 0x10
77 #define LMC_GEP_DP 0x20
78 #define LMC_GEP_DATA 0x40
79 #define LMC_GEP_CLK 0x80
84 #define LMC_GEP_HSSI_ST 0x04
85 #define LMC_GEP_HSSI_CLOCK 0x08
90 #define LMC_GEP_SSI_GENERATOR 0x04
91 #define LMC_GEP_SSI_TXCLOCK 0x08
96 #define LMC_MII16_LED0 0x0080
97 #define LMC_MII16_LED1 0x0100
98 #define LMC_MII16_LED2 0x0200
99 #define LMC_MII16_LED3 0x0400
100 #define LMC_MII16_LED_ALL 0x0780
101 #define LMC_MII16_FIFO_RESET 0x0800
106 #define LMC_MII16_HSSI_TA 0x0001
107 #define LMC_MII16_HSSI_CA 0x0002
108 #define LMC_MII16_HSSI_LA 0x0004
109 #define LMC_MII16_HSSI_LB 0x0008
110 #define LMC_MII16_HSSI_LC 0x0010
111 #define LMC_MII16_HSSI_TM 0x0020
112 #define LMC_MII16_HSSI_CRC 0x0040
117 #define LMC_MII16_DS3_ZERO 0x0001
118 #define LMC_MII16_DS3_TRLBK 0x0002
119 #define LMC_MII16_DS3_LNLBK 0x0004
120 #define LMC_MII16_DS3_RAIS 0x0008
121 #define LMC_MII16_DS3_TAIS 0x0010
122 #define LMC_MII16_DS3_BIST 0x0020
123 #define LMC_MII16_DS3_DLOS 0x0040
124 #define LMC_MII16_DS3_CRC 0x1000
125 #define LMC_MII16_DS3_SCRAM 0x2000
126 #define LMC_MII16_DS3_SCRAM_LARS 0x4000
130 #define LMC_DS3_LED0 0x0100
131 #define LMC_DS3_LED1 0x0080
132 #define LMC_DS3_LED2 0x0400
133 #define LMC_DS3_LED3 0x0200
138 #define LMC_FRAMER_REG0_DLOS 0x80
139 #define LMC_FRAMER_REG0_OOFS 0x40
140 #define LMC_FRAMER_REG0_AIS 0x20
141 #define LMC_FRAMER_REG0_CIS 0x10
142 #define LMC_FRAMER_REG0_LOC 0x08
147 #define LMC_FRAMER_REG9_RBLUE 0x02
152 #define LMC_FRAMER_REG10_XBIT 0x01
157 #define LMC_MII16_SSI_DTR 0x0001
158 #define LMC_MII16_SSI_DSR 0x0002
159 #define LMC_MII16_SSI_RTS 0x0004
160 #define LMC_MII16_SSI_CTS 0x0008
161 #define LMC_MII16_SSI_DCD 0x0010
162 #define LMC_MII16_SSI_RI 0x0020
163 #define LMC_MII16_SSI_CRC 0x1000
169 #define LMC_MII16_SSI_LL 0x1000
170 #define LMC_MII16_SSI_RL 0x2000
171 #define LMC_MII16_SSI_TM 0x4000
172 #define LMC_MII16_SSI_LOOP 0x8000
179 #define LMC_MII17_SSI_CABLE_MASK 0x0038
180 #define LMC_MII17_SSI_CABLE_SHIFT 3
185 #define LMC_MII16_T1_UNUSED1 0x0003
186 #define LMC_MII16_T1_XOE 0x0004
187 #define LMC_MII16_T1_RST 0x0008
188 #define LMC_MII16_T1_Z 0x0010
189 #define LMC_MII16_T1_INTR 0x0020
190 #define LMC_MII16_T1_ONESEC 0x0040
192 #define LMC_MII16_T1_LED0 0x0100
193 #define LMC_MII16_T1_LED1 0x0080
194 #define LMC_MII16_T1_LED2 0x0400
195 #define LMC_MII16_T1_LED3 0x0200
196 #define LMC_MII16_T1_FIFO_RESET 0x0800
198 #define LMC_MII16_T1_CRC 0x1000
199 #define LMC_MII16_T1_UNUSED2 0xe000
204 #define T1FRAMER_ALARM1_STATUS 0x47
205 #define T1FRAMER_ALARM2_STATUS 0x48
206 #define T1FRAMER_FERR_LSB 0x50
207 #define T1FRAMER_FERR_MSB 0x51
208 #define T1FRAMER_LCV_LSB 0x54
209 #define T1FRAMER_LCV_MSB 0x55
210 #define T1FRAMER_AERR 0x5A
213 #define T1FRAMER_LOF_MASK (0x0f0)
214 #define T1FRAMER_COFA_MASK (0x0c0)
215 #define T1FRAMER_SEF_MASK (0x03)
221 #define T1F_SIGFRZ 0x01
222 #define T1F_RLOF 0x02
223 #define T1F_RLOS 0x04
224 #define T1F_RALOS 0x08
225 #define T1F_RAIS 0x10
226 #define T1F_UNUSED 0x20
227 #define T1F_RYEL 0x40
228 #define T1F_RMYEL 0x80
230 #define LMC_T1F_WRITE 0
231 #define LMC_T1F_READ 1
254 #define LMC_MII_LedMask 0x0780
255 #define LMC_MII_LedBitPos 7