GNU Linux-libre 4.14.303-gnu1
[releases.git] / drivers / staging / ks7010 / ks_wlan_ioctl.h
1 /*
2  *   Driver for KeyStream 11b/g wireless LAN
3  *
4  *   Copyright (c) 2005-2008 KeyStream Corp.
5  *   Copyright (C) 2009 Renesas Technology Corp.
6  *
7  *   This program is free software; you can redistribute it and/or modify
8  *   it under the terms of the GNU General Public License version 2 as
9  *   published by the Free Software Foundation.
10  */
11
12 #ifndef _KS_WLAN_IOCTL_H
13 #define _KS_WLAN_IOCTL_H
14
15 #include <linux/wireless.h>
16 /* The low order bit identify a SET (0) or a GET (1) ioctl.  */
17
18 /*                                      (SIOCIWFIRSTPRIV + 0) */
19 /* former KS_WLAN_GET_DRIVER_VERSION    (SIOCIWFIRSTPRIV + 1) */
20 /*                                      (SIOCIWFIRSTPRIV + 2) */
21 #define KS_WLAN_GET_FIRM_VERSION        (SIOCIWFIRSTPRIV + 3)
22 #ifdef WPS
23 #define KS_WLAN_SET_WPS_ENABLE          (SIOCIWFIRSTPRIV + 4)
24 #define KS_WLAN_GET_WPS_ENABLE          (SIOCIWFIRSTPRIV + 5)
25 #define KS_WLAN_SET_WPS_PROBE_REQ       (SIOCIWFIRSTPRIV + 6)
26 #endif
27 #define KS_WLAN_GET_EEPROM_CKSUM        (SIOCIWFIRSTPRIV + 7)
28 #define KS_WLAN_SET_PREAMBLE            (SIOCIWFIRSTPRIV + 8)
29 #define KS_WLAN_GET_PREAMBLE            (SIOCIWFIRSTPRIV + 9)
30 #define KS_WLAN_SET_POWER_SAVE          (SIOCIWFIRSTPRIV + 10)
31 #define KS_WLAN_GET_POWER_SAVE          (SIOCIWFIRSTPRIV + 11)
32 #define KS_WLAN_SET_SCAN_TYPE           (SIOCIWFIRSTPRIV + 12)
33 #define KS_WLAN_GET_SCAN_TYPE           (SIOCIWFIRSTPRIV + 13)
34 #define KS_WLAN_SET_RX_GAIN             (SIOCIWFIRSTPRIV + 14)
35 #define KS_WLAN_GET_RX_GAIN             (SIOCIWFIRSTPRIV + 15)
36 #define KS_WLAN_HOSTT                   (SIOCIWFIRSTPRIV + 16)  /* unused */
37 //#define KS_WLAN_SET_REGION            (SIOCIWFIRSTPRIV + 17)
38 #define KS_WLAN_SET_BEACON_LOST         (SIOCIWFIRSTPRIV + 18)
39 #define KS_WLAN_GET_BEACON_LOST         (SIOCIWFIRSTPRIV + 19)
40
41 #define KS_WLAN_SET_TX_GAIN             (SIOCIWFIRSTPRIV + 20)
42 #define KS_WLAN_GET_TX_GAIN             (SIOCIWFIRSTPRIV + 21)
43
44 /* for KS7010 */
45 #define KS_WLAN_SET_PHY_TYPE            (SIOCIWFIRSTPRIV + 22)
46 #define KS_WLAN_GET_PHY_TYPE            (SIOCIWFIRSTPRIV + 23)
47 #define KS_WLAN_SET_CTS_MODE            (SIOCIWFIRSTPRIV + 24)
48 #define KS_WLAN_GET_CTS_MODE            (SIOCIWFIRSTPRIV + 25)
49 /*                                      (SIOCIWFIRSTPRIV + 26) */
50 /*                                      (SIOCIWFIRSTPRIV + 27) */
51 #define KS_WLAN_SET_SLEEP_MODE          (SIOCIWFIRSTPRIV + 28)  /* sleep mode */
52 #define KS_WLAN_GET_SLEEP_MODE          (SIOCIWFIRSTPRIV + 29)  /* sleep mode */
53 /*                                      (SIOCIWFIRSTPRIV + 30) */
54 /*                                      (SIOCIWFIRSTPRIV + 31) */
55
56 #ifdef __KERNEL__
57
58 #include "ks_wlan.h"
59 #include <linux/netdevice.h>
60
61 int ks_wlan_read_config_file(struct ks_wlan_private *priv);
62 int ks_wlan_setup_parameter(struct ks_wlan_private *priv,
63                             unsigned int commit_flag);
64
65 #endif /* __KERNEL__ */
66
67 #endif /* _KS_WLAN_IOCTL_H */