diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-22 10:38:37 -0500 |
commit | fcc9d2e5a6c89d22b8b773a64fb4ad21ac318446 (patch) | |
tree | a57612d1888735a2ec7972891b68c1ac5ec8faea /drivers/net/wireless/bcmdhd/wl_android.h | |
parent | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (diff) |
Diffstat (limited to 'drivers/net/wireless/bcmdhd/wl_android.h')
-rw-r--r-- | drivers/net/wireless/bcmdhd/wl_android.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/wl_android.h b/drivers/net/wireless/bcmdhd/wl_android.h new file mode 100644 index 00000000000..17373b7f6d5 --- /dev/null +++ b/drivers/net/wireless/bcmdhd/wl_android.h | |||
@@ -0,0 +1,57 @@ | |||
1 | /* | ||
2 | * Linux cfg80211 driver - Android related functions | ||
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: wl_android.c,v 1.1.4.1.2.14 2011/02/09 01:40:07 Exp $ | ||
25 | */ | ||
26 | |||
27 | #include <linux/module.h> | ||
28 | #include <linux/netdevice.h> | ||
29 | #include <wldev_common.h> | ||
30 | |||
31 | /** | ||
32 | * Android platform dependent functions, feel free to add Android specific functions here | ||
33 | * (save the macros in dhd). Please do NOT declare functions that are NOT exposed to dhd | ||
34 | * or cfg, define them as static in wl_android.c | ||
35 | */ | ||
36 | |||
37 | /** | ||
38 | * wl_android_init will be called from module init function (dhd_module_init now), similarly | ||
39 | * wl_android_exit will be called from module exit function (dhd_module_cleanup now) | ||
40 | */ | ||
41 | int wl_android_init(void); | ||
42 | int wl_android_exit(void); | ||
43 | int wl_android_post_init(void); | ||
44 | int wl_android_wifi_on(struct net_device *dev); | ||
45 | int wl_android_wifi_off(struct net_device *dev); | ||
46 | int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd); | ||
47 | |||
48 | #if defined(CONFIG_WIFI_CONTROL_FUNC) | ||
49 | int wl_android_wifictrl_func_add(void); | ||
50 | void wl_android_wifictrl_func_del(void); | ||
51 | void* wl_android_prealloc(int section, unsigned long size); | ||
52 | |||
53 | int wifi_get_irq_number(unsigned long *irq_flags_ptr); | ||
54 | int wifi_set_power(int on, unsigned long msec); | ||
55 | int wifi_get_mac_addr(unsigned char *buf); | ||
56 | void *wifi_get_country_code(char *ccode); | ||
57 | #endif /* CONFIG_WIFI_CONTROL_FUNC */ | ||