aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/bcmdhd/wl_android.h')
-rw-r--r--drivers/net/wireless/bcmdhd/wl_android.h57
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..3983306cfe3
--- /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 */
41int wl_android_init(void);
42int wl_android_exit(void);
43void wl_android_post_init(void);
44int wl_android_wifi_on(struct net_device *dev);
45int wl_android_wifi_off(struct net_device *dev);
46int wl_android_priv_cmd(struct net_device *net, struct ifreq *ifr, int cmd);
47
48#if defined(CONFIG_WIFI_CONTROL_FUNC)
49int wl_android_wifictrl_func_add(void);
50void wl_android_wifictrl_func_del(void);
51void* wl_android_prealloc(int section, unsigned long size);
52
53int wifi_get_irq_number(unsigned long *irq_flags_ptr);
54int wifi_set_power(int on, unsigned long msec);
55int wifi_get_mac_addr(unsigned char *buf);
56void *wifi_get_country_code(char *ccode);
57#endif /* CONFIG_WIFI_CONTROL_FUNC */