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
#include <linux/types.h>
22
D11UCODE_NAMETAG_START = 0,
32
D11UCODE_OVERSIGHT16_MIMO,
33
D11UCODE_OVERSIGHT16_MIMOSZ,
34
D11UCODE_OVERSIGHT24_LCN,
35
D11UCODE_OVERSIGHT24_LCNSZ,
36
D11UCODE_OVERSIGHT_BOMMAJOR,
37
D11UCODE_OVERSIGHT_BOMMINOR
40
struct d11init *d11lcn0bsinitvals24;
41
struct d11init *d11lcn0initvals24;
42
struct d11init *d11lcn1bsinitvals24;
43
struct d11init *d11lcn1initvals24;
44
struct d11init *d11lcn2bsinitvals24;
45
struct d11init *d11lcn2initvals24;
46
struct d11init *d11n0absinitvals16;
47
struct d11init *d11n0bsinitvals16;
48
struct d11init *d11n0initvals16;
50
u32 bcm43xx_16_mimosz;
53
u32 *bcm43xx_bommajor;
54
u32 *bcm43xx_bomminor;
56
int wl_ucode_data_init(struct wl_info *wl)
59
rc = wl_check_firmwares(wl);
61
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn0bsinitvals24,
63
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn0initvals24,
65
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn1bsinitvals24,
67
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn1initvals24,
69
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn2bsinitvals24,
71
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11lcn2initvals24,
73
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11n0absinitvals16,
75
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11n0bsinitvals16,
77
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&d11n0initvals16,
79
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&bcm43xx_16_mimo,
80
D11UCODE_OVERSIGHT16_MIMO);
81
rc = rc < 0 ? rc : wl_ucode_init_uint(wl, &bcm43xx_16_mimosz,
82
D11UCODE_OVERSIGHT16_MIMOSZ);
83
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&bcm43xx_24_lcn,
84
D11UCODE_OVERSIGHT24_LCN);
85
rc = rc < 0 ? rc : wl_ucode_init_uint(wl, &bcm43xx_24_lcnsz,
86
D11UCODE_OVERSIGHT24_LCNSZ);
87
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&bcm43xx_bommajor,
88
D11UCODE_OVERSIGHT_BOMMAJOR);
89
rc = rc < 0 ? rc : wl_ucode_init_buf(wl, (void **)&bcm43xx_bomminor,
90
D11UCODE_OVERSIGHT_BOMMINOR);
94
void wl_ucode_data_free(void)
96
wl_ucode_free_buf((void *)d11lcn0bsinitvals24);
97
wl_ucode_free_buf((void *)d11lcn0initvals24);
98
wl_ucode_free_buf((void *)d11lcn1bsinitvals24);
99
wl_ucode_free_buf((void *)d11lcn1initvals24);
100
wl_ucode_free_buf((void *)d11lcn2bsinitvals24);
101
wl_ucode_free_buf((void *)d11lcn2initvals24);
102
wl_ucode_free_buf((void *)d11n0absinitvals16);
103
wl_ucode_free_buf((void *)d11n0bsinitvals16);
104
wl_ucode_free_buf((void *)d11n0initvals16);
105
wl_ucode_free_buf((void *)bcm43xx_16_mimo);
106
wl_ucode_free_buf((void *)bcm43xx_24_lcn);
107
wl_ucode_free_buf((void *)bcm43xx_bommajor);
108
wl_ucode_free_buf((void *)bcm43xx_bomminor);