Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ucode_loader.h
Go to the documentation of this file.
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 #ifndef _BRCM_UCODE_H_
17 #define _BRCM_UCODE_H_
18 
19 #include "types.h" /* forward structure declarations */
20 
21 #define MIN_FW_SIZE 40000 /* minimum firmware file size in bytes */
22 #define MAX_FW_SIZE 150000
23 
24 #define UCODE_LOADER_API_VER 0
25 
26 struct d11init;
27 
28 struct brcms_ucode {
44 };
45 
46 extern int
47 brcms_ucode_data_init(struct brcms_info *wl, struct brcms_ucode *ucode);
48 
49 extern void brcms_ucode_data_free(struct brcms_ucode *ucode);
50 
51 extern int brcms_ucode_init_buf(struct brcms_info *wl, void **pbuf,
52  unsigned int idx);
53 extern int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
54  unsigned int idx);
55 extern void brcms_ucode_free_buf(void *);
56 extern int brcms_check_firmwares(struct brcms_info *wl);
57 
58 #endif /* _BRCM_UCODE_H_ */