1 #ifndef _LINUX_IF_WIC_H
2 #define _LINUX_IF_WIC_H
3
4 #include <linux/sockios.h>
5
6 #define SIOCDEVWIC SIOCDEVPRIVATE
7
8 struct wicconf
9 {
10 unsigned char pcmd;
11 unsigned char data[120];
12 unsigned char len;
13 };
14
15
16
17 #define WIC_AYT 0x10
18 #define WIC_RESET 0x11
19 #define WIC_SETSN 0x21
20 #define WIC_SETPS 0x22
21 #define WIC_SETAF 0x23
22 #define WIC_SETGPF 0x24
23 #define WIC_GETVERH 0x61
24 #define WIC_GETNL 0x62
25 #define WIC_GETSN 0x65
26 #define WIC_CLRSTATS 0x83
27 #define WIC_SETNET 0x84
28 #define WIC_SETSYS 0x85
29 #define WIC_GETSTATS 0xc1
30 #define WIC_GETVERM 0xc3
31 #define WIC_GETNET 0xc4
32 #define WIC_GETSYS 0xc5
33
34
35
36
37
38 struct wic_net {
39 unsigned char ula[6];
40 unsigned char mode;
41 #define NET_MODE_ME 0x01
42 #define NET_MODE_BCAST 0x02
43 #define NET_MODE_MCAST 0x04
44 #define NET_MODE_PROM 0x08
45 #define NET_MODE_HC 0x10
46 #define NET_MODE_HC_VALID 0x20
47 #define NET_MODE_HCAP 0x40
48 #define NET_MODE_HC_KNOWN 0x80
49 unsigned char rts_lo;
50 unsigned char rts_hi;
51 unsigned char retry;
52 unsigned char hc_ula[6];
53 unsigned char key[4];
54 unsigned char dsl;
55 unsigned char res1;
56 };
57
58
59
60
61
62 struct wic_sys {
63 unsigned char mode;
64 #define SYS_MODE_ANT_DIV 0x00
65 #define SYS_MODE_ANT_1 0x01
66 #define SYS_MODE_ANT_2 0x02
67 #define SYS_MODE_HC_LOCK 0x04
68 #define SYS_MODE_DEBUG 0x08
69 #define SYS_MODE_IAM_AP 0x10
70 #define SYS_MODE_IAM_HC 0x20
71 #define SYS_MODE_USE_SKIP 0x40
72 #define SYS_MODE_AUTO 0x80
73 unsigned char switches;
74 #define SYS_SWITCH_STDBY 0x01
75 #define SYS_SWITCH_TXRX 0x02
76 #define SYS_SWITCH_PA 0x04
77 #define SYS_SWITCH_PWR 0x10
78 #define SYS_SWITCH_RES1 0x20
79 #define SYS_SWITCH_LIGHTS 0x40
80 #define SYS_SWITCH_LIGHTS_HC 0x80
81 unsigned char hop_min;
82 unsigned char hop_max;
83 unsigned char pre_len;
84 unsigned char pre_match;
85 unsigned char mod;
86 unsigned char cca_mode;
87 #define CCA_PKT_DET_BSY 0x01
88 #define CCA_VIRT_CARR 0x02
89 #define CCA_RSSI_BSY 0x04
90 #define CCA_DATA_BSY 0x08
91 unsigned char dwell_hi;
92 unsigned char dwell_lo;
93 unsigned char hc_timeout;
94 unsigned char rssi;
95 unsigned char hc_rssi;
96 unsigned char hc_rssi_chan;
97 };
98
99
100 #endif
101
102