2
2
* Required functions exported by the port-specific (os-dependent) driver
3
3
* to common (os-independent) driver code.
5
* Copyright (C) 2010, Broadcom Corporation
8
* THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
9
* KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
10
* SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
11
* FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
5
* Copyright (C) 2011, Broadcom Corporation. All Rights Reserved.
7
* Permission to use, copy, modify, and/or distribute this software for any
8
* purpose with or without fee is hereby granted, provided that the above
9
* copyright notice and this permission notice appear in all copies.
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
14
* SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
16
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
17
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13
* $Id: wl_export.h,v 1.81.8.1 2010-06-29 21:39:56 Exp $
19
* $Id: wl_export.h 280943 2011-08-31 21:37:04Z $
16
22
#ifndef _wl_export_h_
32
38
extern void wl_dump_ver(struct wl_info *wl, struct bcmstrbuf *b);
33
39
extern void wl_txflowcontrol(struct wl_info *wl, struct wl_if *wlif, bool state, int prio);
34
40
extern bool wl_alloc_dma_resources(struct wl_info *wl, uint dmaddrwidth);
36
#ifndef LINUX_WLUSER_POSTMOGRIFY_REMOVAL
41
extern void wl_reclaim(void);
39
44
extern struct wl_timer *wl_init_timer(struct wl_info *wl, void (*fn)(void* arg), void *arg,
42
47
extern void wl_add_timer(struct wl_info *wl, struct wl_timer *timer, uint ms, int periodic);
43
48
extern bool wl_del_timer(struct wl_info *wl, struct wl_timer *timer);
47
50
extern void wl_sendup(struct wl_info *wl, struct wl_if *wlif, void *p, int numpkt);
48
51
extern char *wl_ifname(struct wl_info *wl, struct wl_if *wlif);
49
52
extern struct wl_if *wl_add_if(struct wl_info *wl, struct wlc_if* wlcif, uint unit,
53
56
extern void wl_monitor(struct wl_info *wl, wl_rxsts_t *rxsts, void *p);
54
57
extern void wl_set_monitor(struct wl_info *wl, int val);
56
extern void wl_tx_monitor(struct wl_info *wl, wl_txsts_t *txsts, void *p);
59
59
extern uint wl_buf_to_pktcopy(osl_t *osh, void *p, uchar *buf, int len, uint offset);
60
60
extern void * wl_get_pktbuffer(osl_t *osh, int len);
68
68
extern int wl_tkip_decrypt(struct wl_info *wl, void *p, int hdr_len, bool group_key);
69
69
extern void wl_tkip_printstats(struct wl_info *wl, bool group_key);
70
70
extern int wl_tkip_keyset(struct wl_info *wl, wsec_key_t *key);
72
extern void wl_wowl_dngldown(struct wl_info *wl);
73
extern void wl_down_postwowlenab(struct wl_info *wl);