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