• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2 **+-----------------------------------------------------------------------+**
3 **|                                                                       |**
4 **| Copyright(c) 1998 - 2008 Texas Instruments. All rights reserved.      |**
5 **| All rights reserved.                                                  |**
6 **|                                                                       |**
7 **| Redistribution and use in source and binary forms, with or without    |**
8 **| modification, are permitted provided that the following conditions    |**
9 **| are met:                                                              |**
10 **|                                                                       |**
11 **|  * Redistributions of source code must retain the above copyright     |**
12 **|    notice, this list of conditions and the following disclaimer.      |**
13 **|  * Redistributions in binary form must reproduce the above copyright  |**
14 **|    notice, this list of conditions and the following disclaimer in    |**
15 **|    the documentation and/or other materials provided with the         |**
16 **|    distribution.                                                      |**
17 **|  * Neither the name Texas Instruments nor the names of its            |**
18 **|    contributors may be used to endorse or promote products derived    |**
19 **|    from this software without specific prior written permission.      |**
20 **|                                                                       |**
21 **| THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   |**
22 **| "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     |**
23 **| LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |**
24 **| A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  |**
25 **| OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |**
26 **| SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      |**
27 **| LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |**
28 **| DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |**
29 **| THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   |**
30 **| (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |**
31 **| OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  |**
32 **|                                                                       |**
33 **+-----------------------------------------------------------------------+**
34 ****************************************************************************/
35 
36 
37 #ifndef TI1610_IOCTL_UTILS
38 #define TI1610_IOCTL_UTILS
39 
40 #include <linux/netdevice.h>
41 #include <asm/uaccess.h>            /* copy_from_user() */
42 
43 #include "osTIType.h"
44 
45 void print_memory_dump(char *addr, int size );
46 
47 int util_get_statistics(struct net_device *dev, ULONG *statistic_data, ULONG *length );
48 
49 int util_get_param( struct net_device *dev, UINT32 param_type, ULONG *data, UINT32 max_param_len);
50 int util_set_param( struct net_device *dev, UINT32 param_type, ULONG *data, UINT32 max_param_len );
51 int util_get_report_param( struct net_device *dev, UINT32 param_type, ULONG *data, UINT32 max_param_len);
52 int util_set_report_param( struct net_device *dev, UINT32 param_type, ULONG *data, UINT32 max_param_len);
53 
54 /*int util_get_bssid(struct net_device *dev, int cmd, union iwreq_data *wrqu );*/
55 int util_get_network_type_in_use(struct net_device *dev, /*int cmd, */ULONG *data );
56 int util_write_hw_register(struct net_device *dev, ULONG *data );
57 int util_read_hw_register(struct net_device *dev, ULONG *data );
58 int util_hal_debug_print(struct net_device *dev, ULONG *data);
59 int util_get_sw_version(struct net_device *dev, ULONG *data );
60 int util_get_network_types_supported(struct net_device *dev, ULONG *data );
61 int util_get_number_of_antennas(struct net_device *dev, ULONG *data );
62 int util_get_rssi(struct net_device *dev, ULONG *data );
63 int util_get_bssid_list(struct net_device *dev, ULONG *data, ULONG *length );
64 int util_set_privacy_filter(struct net_device *dev, ULONG *data );
65 int util_get_privacy_filter(struct net_device *dev, ULONG *data, ULONG *length );
66 int util_disassociate(struct net_device *dev);
67 int util_set_ssid(struct net_device *dev, void *buf, ULONG length);		/* data - pointer to OS_802_11_SSID */
68 int util_get_ssid(struct net_device *dev, ULONG configMgr_param, void *data, ULONG *length);
69 /*int util_get_ssid(struct net_device *dev, void *data, ULONG *length);		( data - pointer to OS_802_11_SSID) */
70 
71 int util_get_desired_channel(struct net_device *dev, ULONG *data);
72 int util_get_authentication_mode(struct net_device *dev, ULONG *data);
73 int util_get_rts_threshold(struct net_device *dev, ULONG *data);
74 int util_get_short_preamble(struct net_device *dev, ULONG *data);
75 
76 int util_poll_ap_packets (struct net_device *dev);
77 int util_config_tx_classifier(struct net_device *dev,UINT8 *inParamsBuff,UINT32 inParamsBuffLen);
78 
79 
80 int util_get_fragmentation_threshold(struct net_device *dev, ULONG *data);
81 int util_get_infrastructure_mode(struct net_device *dev, ULONG *data);
82 int util_get_desired_infrastructure_mode(struct net_device *dev, ULONG *data);
83 int util_get_wep_status(struct net_device *dev, ULONG *data);
84 int util_get_power_mode(struct net_device *dev, ULONG *data);
85 int util_get_tx_antenna(struct net_device *dev, ULONG *data);
86 int util_get_rx_antenna(struct net_device *dev, ULONG *data);
87 int util_get_short_preamble(struct net_device *dev, ULONG *data);
88 int util_get_enable_leap(struct net_device *dev, ULONG *data);
89 int util_set_wep_status(struct net_device *dev, ULONG *data);
90 int util_add_wep(struct net_device *dev, void *data, ULONG length);
91 int util_add_key(struct net_device *dev, void *data, ULONG length);
92 int util_remove_key(struct net_device *dev, void *data, ULONG length);
93 int util_remove_wep(struct net_device *dev, void *data, ULONG length);
94 int util_get_association_info(struct net_device *dev, ULONG *data, ULONG *length );
95 #endif
96