Staging: brcm80211: remove FALSE #define
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / staging / brcm80211 / sys / wl_export.h
CommitLineData
a9533e7e
HP
1/*
2 * Copyright (c) 2010 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 _wl_export_h_
18#define _wl_export_h_
19
20/* misc callbacks */
21struct wl_info;
22struct wl_if;
23struct wlc_if;
24extern void wl_init(struct wl_info *wl);
25extern uint wl_reset(struct wl_info *wl);
26extern void wl_intrson(struct wl_info *wl);
66cbd3ab
GKH
27extern u32 wl_intrsoff(struct wl_info *wl);
28extern void wl_intrsrestore(struct wl_info *wl, u32 macintmask);
7cc4a4c0
JC
29extern void wl_event(struct wl_info *wl, char *ifname, wlc_event_t *e);
30extern void wl_event_sendup(struct wl_info *wl, const wlc_event_t *e,
66cbd3ab 31 u8 *data, u32 len);
a9533e7e
HP
32extern int wl_up(struct wl_info *wl);
33extern void wl_down(struct wl_info *wl);
34extern void wl_txflowcontrol(struct wl_info *wl, struct wl_if *wlif, bool state,
35 int prio);
36extern bool wl_alloc_dma_resources(struct wl_info *wl, uint dmaddrwidth);
37
38/* timer functions */
39struct wl_timer;
40extern struct wl_timer *wl_init_timer(struct wl_info *wl,
41 void (*fn) (void *arg), void *arg,
42 const char *name);
43extern void wl_free_timer(struct wl_info *wl, struct wl_timer *timer);
44extern void wl_add_timer(struct wl_info *wl, struct wl_timer *timer, uint ms,
45 int periodic);
46extern bool wl_del_timer(struct wl_info *wl, struct wl_timer *timer);
47
580a0bd9 48extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, unsigned char *buf, int len,
a9533e7e 49 uint offset);
7cc4a4c0
JC
50extern void *wl_get_pktbuffer(osl_t *osh, int len);
51extern int wl_set_pktlen(osl_t *osh, void *p, int len);
a9533e7e 52
0965ae88 53#define wl_sort_bsslist(a, b) false
a9533e7e
HP
54
55extern int wl_tkip_miccheck(struct wl_info *wl, void *p, int hdr_len,
56 bool group_key, int id);
57extern int wl_tkip_micadd(struct wl_info *wl, void *p, int hdr_len);
58extern int wl_tkip_encrypt(struct wl_info *wl, void *p, int hdr_len);
59extern int wl_tkip_decrypt(struct wl_info *wl, void *p, int hdr_len,
60 bool group_key);
61extern void wl_tkip_printstats(struct wl_info *wl, bool group_key);
7cc4a4c0 62extern int wl_tkip_keyset(struct wl_info *wl, wsec_key_t *key);
a9533e7e 63#endif /* _wl_export_h_ */