1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef _BRCM_UCODE_H_
17 #define _BRCM_UCODE_H_
18
19 #include "types.h"
20
21 #define MIN_FW_SIZE 40000
22 #define MAX_FW_SIZE 150000
23
24 #define UCODE_LOADER_API_VER 0
25
26 struct d11init;
27
28 struct brcms_ucode {
29 struct d11init *d11lcn0bsinitvals24;
30 struct d11init *d11lcn0initvals24;
31 struct d11init *d11lcn1bsinitvals24;
32 struct d11init *d11lcn1initvals24;
33 struct d11init *d11lcn2bsinitvals24;
34 struct d11init *d11lcn2initvals24;
35 struct d11init *d11n0absinitvals16;
36 struct d11init *d11n0bsinitvals16;
37 struct d11init *d11n0initvals16;
38 __le32 *bcm43xx_16_mimo;
39 size_t bcm43xx_16_mimosz;
40 __le32 *bcm43xx_24_lcn;
41 size_t bcm43xx_24_lcnsz;
42 u32 *bcm43xx_bommajor;
43 u32 *bcm43xx_bomminor;
44 };
45
46 int brcms_ucode_data_init(struct brcms_info *wl, struct brcms_ucode *ucode);
47
48 void brcms_ucode_data_free(struct brcms_ucode *ucode);
49
50 int brcms_ucode_init_buf(struct brcms_info *wl, void **pbuf, unsigned int idx);
51 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
52 unsigned int idx);
53 void brcms_ucode_free_buf(void *);
54 int brcms_check_firmwares(struct brcms_info *wl);
55
56 #endif