2 * This software may be used and distributed according to the terms
3 * of the GNU General Public License, incorporated herein by reference.
9 #define SCIOCLOAD 0x01 /* Load a firmware record */
10 #define SCIOCRESET 0x02 /* Perform hard reset */
11 #define SCIOCDEBUG 0x03 /* Set debug level */
12 #define SCIOCREV 0x04 /* Get driver revision(s) */
13 #define SCIOCSTART 0x05 /* Start the firmware */
14 #define SCIOCGETSWITCH 0x06 /* Get switch type */
15 #define SCIOCSETSWITCH 0x07 /* Set switch type */
16 #define SCIOCGETSPID 0x08 /* Get channel SPID */
17 #define SCIOCSETSPID 0x09 /* Set channel SPID */
18 #define SCIOCGETDN 0x0A /* Get channel DN */
19 #define SCIOCSETDN 0x0B /* Set channel DN */
20 #define SCIOCTRACE 0x0C /* Toggle trace mode */
21 #define SCIOCSTAT 0x0D /* Get line status */
22 #define SCIOCGETSPEED 0x0E /* Set channel speed */
23 #define SCIOCSETSPEED 0x0F /* Set channel speed */
24 #define SCIOCLOOPTST 0x10 /* Perform loopback test */
29 unsigned long command
;
34 #define SCIOC_SPIDSIZE 49
35 #define SCIOC_DNSIZE SCIOC_SPIDSIZE
36 #define SCIOC_REVSIZE SCIOC_SPIDSIZE
37 #define SCIOC_SRECSIZE 49
40 unsigned long tx_good
;
42 unsigned long rx_good
;
51 ChLinkStats link_stats
;
54 typedef BRIStat POTStat
;
61 ChLinkStats link_stats
;
80 unsigned char modelid
;
93 ChLinkStats dch_stats
;