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