~ubuntu-branches/ubuntu/saucy/bcmwl/saucy

« back to all changes in this revision

Viewing changes to src/src/wl/sys/wl_export.h

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner
  • Date: 2009-05-11 16:04:29 UTC
  • Revision ID: james.westby@ubuntu.com-20090511160429-lciigiqnpp0fpu2k
Tags: 5.10.91.9-2
Add src/lib/LICENSE.txt to copyright notice. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Required functions exported by the port-specific (os-dependent) driver
 
3
 * to common (os-independent) driver code.
 
4
 *
 
5
 * Copyright 2008, Broadcom Corporation
 
6
 * All Rights Reserved.
 
7
 * 
 
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
 
19
 * this software.
 
20
 *
 
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.
 
25
 *
 
26
 * $Id: wl_export.h,v 1.66.4.7 2009/01/21 21:48:41 Exp $
 
27
 */
 
28
 
 
29
#ifndef _wl_export_h_
 
30
#define _wl_export_h_
 
31
 
 
32
struct wl_info;
 
33
struct wl_if;
 
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);
 
45
 
 
46
struct wl_timer;
 
47
extern struct wl_timer *wl_init_timer(struct wl_info *wl, void (*fn)(void* arg), void *arg,
 
48
                                      const char *name);
 
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);
 
52
 
 
53
struct wl_if;
 
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);
 
56
 
 
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);
 
59
 
 
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);
 
63
 
 
64
#define wl_sort_bsslist(a, b) FALSE
 
65
 
 
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);
 
72
#endif