Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright (c) 2010 Broadcom Corporation
0003  *
0004  * Permission to use, copy, modify, and/or distribute this software for any
0005  * purpose with or without fee is hereby granted, provided that the above
0006  * copyright notice and this permission notice appear in all copies.
0007  *
0008  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0009  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0010  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
0011  * SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0012  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
0013  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
0014  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0015  */
0016 #ifndef _BRCM_UCODE_H_
0017 #define _BRCM_UCODE_H_
0018 
0019 #include "types.h"      /* forward structure declarations */
0020 
0021 #define MIN_FW_SIZE 40000   /* minimum firmware file size in bytes */
0022 #define MAX_FW_SIZE 150000
0023 
0024 #define UCODE_LOADER_API_VER 0
0025 
0026 struct d11init;
0027 
0028 struct brcms_ucode {
0029     struct d11init *d11lcn0bsinitvals24;
0030     struct d11init *d11lcn0initvals24;
0031     struct d11init *d11lcn1bsinitvals24;
0032     struct d11init *d11lcn1initvals24;
0033     struct d11init *d11lcn2bsinitvals24;
0034     struct d11init *d11lcn2initvals24;
0035     struct d11init *d11n0absinitvals16;
0036     struct d11init *d11n0bsinitvals16;
0037     struct d11init *d11n0initvals16;
0038     __le32 *bcm43xx_16_mimo;
0039     size_t bcm43xx_16_mimosz;
0040     __le32 *bcm43xx_24_lcn;
0041     size_t bcm43xx_24_lcnsz;
0042     u32 *bcm43xx_bommajor;
0043     u32 *bcm43xx_bomminor;
0044 };
0045 
0046 int brcms_ucode_data_init(struct brcms_info *wl, struct brcms_ucode *ucode);
0047 
0048 void brcms_ucode_data_free(struct brcms_ucode *ucode);
0049 
0050 int brcms_ucode_init_buf(struct brcms_info *wl, void **pbuf, unsigned int idx);
0051 int brcms_ucode_init_uint(struct brcms_info *wl, size_t *n_bytes,
0052               unsigned int idx);
0053 void brcms_ucode_free_buf(void *);
0054 int  brcms_check_firmwares(struct brcms_info *wl);
0055 
0056 #endif  /* _BRCM_UCODE_H_ */