2
* Required functions exported by the port-specific (os-dependent) driver
3
* to common (os-independent) driver code.
5
* Copyright 2008, Broadcom Corporation
8
* Unless you and Broadcom execute a separate written software license
9
* agreement governing use of this software, this software is licensed to you
10
* under the terms of the GNU General Public License version 2, available at
11
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"), with the
12
* following added to such license:
13
* As a special exception, the copyright holders of this software give you
14
* permission to link this software with independent modules, regardless of the
15
* license terms of these independent modules, and to copy and distribute the
16
* resulting executable under terms of your choice, provided that you also meet,
17
* for each linked independent module, the terms and conditions of the license
18
* of that module. An independent module is a module which is not derived from
21
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
22
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
23
* SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
24
* FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
26
* $Id: wl_export.h,v 1.66.4.7 2009/01/21 21:48:41 Exp $
34
extern void wl_init(struct wl_info *wl);
35
extern uint wl_reset(struct wl_info *wl);
36
extern void wl_intrson(struct wl_info *wl);
37
extern uint32 wl_intrsoff(struct wl_info *wl);
38
extern void wl_intrsrestore(struct wl_info *wl, uint32 macintmask);
39
extern void wl_event(struct wl_info *wl, char *ifname, wlc_event_t *e);
40
extern int wl_up(struct wl_info *wl);
41
extern void wl_down(struct wl_info *wl);
42
extern void wl_dump_ver(struct wl_info *wl, struct bcmstrbuf *b);
43
extern void wl_txflowcontrol(struct wl_info *wl, bool state, int prio);
44
extern bool wl_alloc_dma_resources(struct wl_info *wl, uint dmaddrwidth);
47
extern struct wl_timer *wl_init_timer(struct wl_info *wl, void (*fn)(void* arg), void *arg,
49
extern void wl_free_timer(struct wl_info *wl, struct wl_timer *timer);
50
extern void wl_add_timer(struct wl_info *wl, struct wl_timer *timer, uint ms, int periodic);
51
extern bool wl_del_timer(struct wl_info *wl, struct wl_timer *timer);
54
extern void wl_sendup(struct wl_info *wl, struct wl_if *wlif, void *p, int numpkt);
55
extern char *wl_ifname(struct wl_info *wl, struct wl_if *wlif);
57
extern void wl_monitor(struct wl_info *wl, wl_rxsts_t *rxsts, void *p);
58
extern void wl_set_monitor(struct wl_info *wl, int val);
60
extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, uchar *buf, int len, uint offset);
61
extern void * wl_get_pktbuffer(osl_t *osh, int len);
62
extern int wl_set_pktlen(osl_t *osh, void *p, int len);
64
#define wl_sort_bsslist(a, b) FALSE
66
extern int wl_tkip_miccheck(struct wl_info *wl, void *p, int hdr_len, bool group_key, int id);
67
extern int wl_tkip_micadd(struct wl_info *wl, void *p, int hdr_len);
68
extern int wl_tkip_encrypt(struct wl_info *wl, void *p, int hdr_len);
69
extern int wl_tkip_decrypt(struct wl_info *wl, void *p, int hdr_len, bool group_key);
70
extern void wl_tkip_printstats(struct wl_info *wl, bool group_key);
71
extern int wl_tkip_keyset(struct wl_info *wl, wsec_key_t *key);