block: fix warning with calling smp_processor_id() in preemptible section
[pandora-kernel.git] / drivers / staging / brcm80211 / brcmsmac / wl_ucode.h
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 #define MIN_FW_SIZE 40000       /* minimum firmware file size in bytes */
18 #define MAX_FW_SIZE 150000
19
20 #define UCODE_LOADER_API_VER 0
21
22 struct d11init {
23         u16 addr;
24         u16 size;
25         u32 value;
26 };
27
28 extern struct d11init *d11lcn0bsinitvals24;
29 extern struct d11init *d11lcn0initvals24;
30 extern struct d11init *d11lcn1bsinitvals24;
31 extern struct d11init *d11lcn1initvals24;
32 extern struct d11init *d11lcn2bsinitvals24;
33 extern struct d11init *d11lcn2initvals24;
34 extern struct d11init *d11n0absinitvals16;
35 extern struct d11init *d11n0bsinitvals16;
36 extern struct d11init *d11n0initvals16;
37 extern u32 *bcm43xx_16_mimo;
38 extern u32 bcm43xx_16_mimosz;
39 extern u32 *bcm43xx_24_lcn;
40 extern u32 bcm43xx_24_lcnsz;
41
42 extern int wl_ucode_data_init(struct wl_info *wl);
43 extern void wl_ucode_data_free(void);
44
45 extern int wl_ucode_init_buf(struct wl_info *wl, void **pbuf, unsigned int idx);
46 extern int wl_ucode_init_uint(struct wl_info *wl, unsigned *data,
47                               unsigned int idx);
48 extern void wl_ucode_free_buf(void *);
49 extern int  wl_check_firmwares(struct wl_info *wl);