Home | History | Annotate | Line # | Download | only in pcmcia
if_cnwioctl.h revision 1.1
      1  1.1  itojun /*	PAO2 Id: if_cnwioctl.h,v 1.1.8.1 1998/12/05 22:47:11 itojun Exp */
      2  1.1  itojun struct cnwstatus {
      3  1.1  itojun 	struct ifreq	ifr;
      4  1.1  itojun 	u_char		data[0x100];
      5  1.1  itojun };
      6  1.1  itojun 
      7  1.1  itojun struct cnwstats {
      8  1.1  itojun 	u_int	nws_rx;
      9  1.1  itojun 	u_int	nws_rxerr;
     10  1.1  itojun 	u_int	nws_rxoverflow;
     11  1.1  itojun 	u_int	nws_rxoverrun;
     12  1.1  itojun 	u_int	nws_rxcrcerror;
     13  1.1  itojun 	u_int	nws_rxframe;
     14  1.1  itojun 	u_int	nws_rxerrors;
     15  1.1  itojun 	u_int	nws_rxavail;
     16  1.1  itojun 	u_int	nws_rxone;
     17  1.1  itojun 	u_int	nws_tx;
     18  1.1  itojun 	u_int	nws_txokay;
     19  1.1  itojun 	u_int	nws_txabort;
     20  1.1  itojun 	u_int	nws_txlostcd;
     21  1.1  itojun 	u_int	nws_txerrors;
     22  1.1  itojun 	u_int	nws_txretries[16];
     23  1.1  itojun };
     24  1.1  itojun 
     25  1.1  itojun struct cnwistats {
     26  1.1  itojun 	struct ifreq	ifr;
     27  1.1  itojun 	struct cnwstats stats;
     28  1.1  itojun };
     29  1.1  itojun 
     30  1.1  itojun struct cnwtrail {
     31  1.1  itojun 	u_char		what;
     32  1.1  itojun 	u_char		status;
     33  1.1  itojun 	u_short		length;
     34  1.1  itojun 	struct timeval	when;
     35  1.1  itojun 	struct timeval	done;
     36  1.1  itojun };
     37  1.1  itojun 
     38  1.1  itojun struct cnwitrail {
     39  1.1  itojun 	struct ifreq	ifr;
     40  1.1  itojun 	int		head;
     41  1.1  itojun 	struct cnwtrail trail[128];
     42  1.1  itojun };
     43  1.1  itojun 
     44  1.1  itojun #define ifr_domain	ifr_ifru.ifru_flags     /* domain */
     45  1.1  itojun #define ifr_key		ifr_ifru.ifru_flags     /* scramble key */
     46  1.1  itojun 
     47  1.1  itojun #define SIOCSCNWDOMAIN	_IOW('i', 254, struct ifreq)	/* set domain */
     48  1.1  itojun #define SIOCGCNWDOMAIN	_IOWR('i', 253, struct ifreq)	/* get domain */
     49  1.1  itojun #define SIOCSCNWKEY	_IOWR('i', 252, struct ifreq)	/* set scramble key */
     50  1.1  itojun #define	SIOCGCNWSTATUS	_IOWR('i', 251, struct cnwstatus)/* get raw status */
     51  1.1  itojun #define	SIOCGCNWSTATS	_IOWR('i', 250, struct cnwistats)/* get stats */
     52  1.1  itojun #define	SIOCGCNWTRAIL	_IOWR('i', 249, struct cnwitrail)/* get trail */
     53