aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/bcmdhd/wldev_common.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-22 10:38:37 -0500
commitfcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch)
treea57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/net/wireless/bcmdhd/wldev_common.h
parent8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff)
Added missing tegra files.HEADmaster
Diffstat (limited to 'drivers/net/wireless/bcmdhd/wldev_common.h')
-rw-r--r--drivers/net/wireless/bcmdhd/wldev_common.h110
1 files changed, 110 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/wldev_common.h b/drivers/net/wireless/bcmdhd/wldev_common.h
new file mode 100644
index 00000000000..46326803e21
--- /dev/null
+++ b/drivers/net/wireless/bcmdhd/wldev_common.h
@@ -0,0 +1,110 @@
1/*
2 * Common function shared by Linux WEXT, cfg80211 and p2p drivers
3 *
4 * Copyright (C) 1999-2011, Broadcom Corporation
5 *
6 * Unless you and Broadcom execute a separate written software license
7 * agreement governing use of this software, this software is licensed to you
8 * under the terms of the GNU General Public License version 2 (the "GPL"),
9 * available at http://www.broadcom.com/licenses/GPLv2.php, with the
10 * following added to such license:
11 *
12 * As a special exception, the copyright holders of this software give you
13 * permission to link this software with independent modules, and to copy and
14 * distribute the resulting executable under terms of your choice, provided that
15 * you also meet, for each linked independent module, the terms and conditions of
16 * the license of that module. An independent module is a module which is not
17 * derived from this software. The special exception does not apply to any
18 * modifications of the software.
19 *
20 * Notwithstanding the above, under no circumstances may you combine this
21 * software in any way with any other Broadcom software provided under a license
22 * other than the GPL, without Broadcom's express prior written consent.
23 *
24 * $Id: wldev_common.h,v 1.1.4.1.2.14 2011-02-09 01:40:07 Exp $
25 */
26#ifndef __WLDEV_COMMON_H__
27#define __WLDEV_COMMON_H__
28
29#include <wlioctl.h>
30
31/** wl_dev_ioctl - get/set IOCTLs, will call net_device's do_ioctl (or
32 * netdev_ops->ndo_do_ioctl in new kernels)
33 * @dev: the net_device handle
34 */
35s32 wldev_ioctl(
36 struct net_device *dev, u32 cmd, void *arg, u32 len, u32 set);
37
38/** Retrieve named IOVARs, this function calls wl_dev_ioctl with
39 * WLC_GET_VAR IOCTL code
40 */
41s32 wldev_iovar_getbuf(
42 struct net_device *dev, s8 *iovar_name,
43 void *param, s32 paramlen, void *buf, s32 buflen);
44
45/** Set named IOVARs, this function calls wl_dev_ioctl with
46 * WLC_SET_VAR IOCTL code
47 */
48s32 wldev_iovar_setbuf(
49 struct net_device *dev, s8 *iovar_name,
50 void *param, s32 paramlen, void *buf, s32 buflen);
51
52s32 wldev_iovar_setint(
53 struct net_device *dev, s8 *iovar, s32 val);
54
55s32 wldev_iovar_getint(
56 struct net_device *dev, s8 *iovar, s32 *pval);
57
58/** The following function can be implemented if there is a need for bsscfg
59 * indexed IOVARs
60 */
61
62s32 wldev_mkiovar_bsscfg(
63 const s8 *iovar_name, s8 *param, s32 paramlen,
64 s8 *iovar_buf, s32 buflen, s32 bssidx);
65
66/** Retrieve named and bsscfg indexed IOVARs, this function calls wl_dev_ioctl with
67 * WLC_GET_VAR IOCTL code
68 */
69s32 wldev_iovar_getbuf_bsscfg(
70 struct net_device *dev, s8 *iovar_name,
71 void *param, s32 paramlen, void *buf, s32 buflen, s32 bsscfg_idx);
72
73/** Set named and bsscfg indexed IOVARs, this function calls wl_dev_ioctl with
74 * WLC_SET_VAR IOCTL code
75 */
76s32 wldev_iovar_setbuf_bsscfg(
77 struct net_device *dev, s8 *iovar_name,
78 void *param, s32 paramlen, void *buf, s32 buflen, s32 bsscfg_idx);
79
80s32 wldev_iovar_getint_bsscfg(
81 struct net_device *dev, s8 *iovar, s32 *pval, s32 bssidx);
82
83s32 wldev_iovar_setint_bsscfg(
84 struct net_device *dev, s8 *iovar, s32 val, s32 bssidx);
85
86extern void get_customized_country_code(char *country_iso_code, wl_country_t *cspec);
87extern void dhd_bus_country_set(struct net_device *dev, wl_country_t *cspec);
88extern int wldev_set_country(struct net_device *dev, char *country_code);
89extern int net_os_wake_lock(struct net_device *dev);
90extern int net_os_wake_unlock(struct net_device *dev);
91extern int net_os_wake_lock_timeout(struct net_device *dev);
92extern int net_os_wake_lock_timeout_enable(struct net_device *dev, int val);
93extern int net_os_set_dtim_skip(struct net_device *dev, int val);
94extern int net_os_set_suspend_disable(struct net_device *dev, int val);
95extern int net_os_set_suspend(struct net_device *dev, int val);
96extern int wl_iw_parse_ssid_list_tlv(char** list_str, wlc_ssid_t* ssid,
97 int max, int *bytes_left);
98
99/* Get the link speed from dongle, speed is in kpbs */
100int wldev_get_link_speed(struct net_device *dev, int *plink_speed);
101
102int wldev_get_rssi(struct net_device *dev, int *prssi);
103
104int wldev_get_ssid(struct net_device *dev, wlc_ssid_t *pssid);
105
106int wldev_get_band(struct net_device *dev, uint *pband);
107
108int wldev_set_band(struct net_device *dev, uint band);
109
110#endif /* __WLDEV_COMMON_H__ */