aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/brcm80211/brcmfmac/fwil.h
diff options
context:
space:
mode:
authorHante Meuleman <meuleman@broadcom.com>2012-10-22 13:36:14 -0400
committerJohn W. Linville <linville@tuxdriver.com>2012-10-29 15:28:07 -0400
commit81f5dcb8083077ca9bca10ca8e34bc8daf768dce (patch)
tree871af0a3b9a94df2f286ce36d4c9b389887cab41 /drivers/net/wireless/brcm80211/brcmfmac/fwil.h
parent6c4a5f2413da948e7d1d189c9d94f05afde8702a (diff)
brcmfmac: refactor firmware interface layer.
Refactor the functions that are related to getting and setting data to and and from the firmware. Reviewed-by: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Franky Lin <frankyl@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmfmac/fwil.h')
-rw-r--r--drivers/net/wireless/brcm80211/brcmfmac/fwil.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/fwil.h b/drivers/net/wireless/brcm80211/brcmfmac/fwil.h
new file mode 100644
index 000000000000..54855ef0f0a6
--- /dev/null
+++ b/drivers/net/wireless/brcm80211/brcmfmac/fwil.h
@@ -0,0 +1,43 @@
1/*
2 * Copyright (c) 2012 Broadcom Corporation
3 *
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
7 *
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
11 * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
13 * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
14 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */
16
17#ifndef _fwil_h_
18#define _fwil_h_
19
20s32 brcmf_fil_cmd_data_set(struct net_device *ndev, u32 cmd, void *data,
21 u32 len);
22s32 brcmf_fil_cmd_data_get(struct net_device *ndev, u32 cmd, void *data,
23 u32 len);
24s32 brcmf_fil_cmd_int_set(struct net_device *ndev, u32 cmd, u32 data);
25s32 brcmf_fil_cmd_int_get(struct net_device *ndev, u32 cmd, u32 *data);
26
27s32 brcmf_fil_iovar_data_set(struct net_device *ndev, char *name, void *data,
28 u32 len);
29s32 brcmf_fil_iovar_data_get(struct net_device *ndev, char *name, void *data,
30 u32 len);
31s32 brcmf_fil_iovar_int_set(struct net_device *ndev, char *name, u32 data);
32s32 brcmf_fil_iovar_int_get(struct net_device *ndev, char *name, u32 *data);
33
34s32 brcmf_fil_bsscfg_data_set(struct net_device *ndev, s32 bssidx, char *name,
35 void *data, u32 len);
36s32 brcmf_fil_bsscfg_data_get(struct net_device *ndev, s32 bssidx, char *name,
37 void *data, u32 len);
38s32 brcmf_fil_bsscfg_int_set(struct net_device *ndev, s32 bssidx, char *name,
39 u32 data);
40s32 brcmf_fil_bsscfg_int_get(struct net_device *ndev, s32 bssidx, char *name,
41 u32 *data);
42
43#endif /* _fwil_h_ */