2 * Copyright (c) 2010 Broadcom Corporation
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.
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.
17 #define MIN_FW_SIZE 40000 /* minimum firmware file size in bytes */
18 #define MAX_FW_SIZE 150000
20 typedef struct d11init {
26 extern d11init_t *d11lcn0bsinitvals24;
27 extern d11init_t *d11lcn0initvals24;
28 extern d11init_t *d11lcn1bsinitvals24;
29 extern d11init_t *d11lcn1initvals24;
30 extern d11init_t *d11lcn2bsinitvals24;
31 extern d11init_t *d11lcn2initvals24;
32 extern d11init_t *d11n0absinitvals16;
33 extern d11init_t *d11n0bsinitvals16;
34 extern d11init_t *d11n0initvals16;
35 extern u32 *bcm43xx_16_mimo;
36 extern u32 bcm43xx_16_mimosz;
37 extern u32 *bcm43xx_24_lcn;
38 extern u32 bcm43xx_24_lcnsz;
39 extern u32 *bcm43xx_bommajor;
40 extern u32 *bcm43xx_bomminor;
42 extern int wl_ucode_data_init(struct wl_info *wl);
43 extern void wl_ucode_data_free(void);
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,
48 extern void wl_ucode_free_buf(void *);
49 extern int wl_check_firmwares(struct wl_info *wl);