Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
csr_wifi_hip_xbv.c File Reference
#include <linux/slab.h>
#include "csr_wifi_hip_unifiversion.h"
#include "csr_wifi_hip_card.h"
#include "csr_wifi_hip_xbv.h"

Go to the source code of this file.

Data Structures

struct  ct_t
 
struct  tag_t
 
struct  xbv_stack_t
 

Macros

#define DBG_TAG(t)
 
#define STREAM_CHECKSUM   0x6d34 /* Sum of uint16s in each patch stream */
 
#define PTDL_MAX_SIZE   2048 /* Max bytes allowed per PTDL */
 
#define PTDL_HDR_SIZE   (4 + 2 + 6 + 2) /* sizeof(fw_id, sec_len, patch_cmd, csum) */
 
#define TAG_EQ(i, v)
 
#define XBV_STACK_SIZE   6
 
#define XBV_MAX_OFFS   0x7fffffff
 
#define PTDL_RESET_DATA_SIZE   20 /* Size of reset vectors PTDL */
 
#define UF_REGION_PHY   1
 
#define UF_REGION_MAC   2
 
#define UF_MEMPUT_MAC   0x0000
 
#define UF_MEMPUT_PHY   0x1000
 
#define SEC_CMD_LEN   ((4 + 2) * 2) /* sizeof(cmd, vector) per XAP */
 
#define PTDL_VEC_HDR_SIZE   (4 + 2 + 2) /* sizeof(fw_id, sec_len, csum) */
 
#define UF_MAC_START_VEC   0x00c00000 /* Start address of image on MAC */
 
#define UF_PHY_START_VEC   0x00c00000 /* Start address of image on PHY */
 
#define UF_MAC_START_CMD   0x6000 /* MAC "Set start address" command */
 
#define UF_PHY_START_CMD   0x7000 /* PHY "Set start address" command */
 
#define PTCH_LIST_SIZE   16 /* sizeof PTCH+FWID chunk in LIST header */
 

Enumerations

enum  xbv_container {
  xbv_xbv1, xbv_fw, xbv_vers, xbv_vand,
  xbv_ptch, xbv_other
}
 

Functions

CsrResult xbv1_parse (card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwinfo)
 
s32 xbv1_read_slut (card_t *card, fwreadfn_t readfn, void *dlpriv, xbv1_t *fwinfo, symbol_t *slut, u32 slut_len)
 
voidxbv_to_patch (card_t *card, fwreadfn_t readfn, const void *fw_buf, const xbv1_t *fwinfo, u32 *size)
 

Macro Definition Documentation

#define DBG_TAG (   t)

Definition at line 32 of file csr_wifi_hip_xbv.c.

#define PTCH_LIST_SIZE   16 /* sizeof PTCH+FWID chunk in LIST header */

Definition at line 970 of file csr_wifi_hip_xbv.c.

#define PTDL_HDR_SIZE   (4 + 2 + 6 + 2) /* sizeof(fw_id, sec_len, patch_cmd, csum) */

Definition at line 42 of file csr_wifi_hip_xbv.c.

#define PTDL_MAX_SIZE   2048 /* Max bytes allowed per PTDL */

Definition at line 41 of file csr_wifi_hip_xbv.c.

#define PTDL_RESET_DATA_SIZE   20 /* Size of reset vectors PTDL */

Definition at line 642 of file csr_wifi_hip_xbv.c.

#define PTDL_VEC_HDR_SIZE   (4 + 2 + 2) /* sizeof(fw_id, sec_len, csum) */

Definition at line 808 of file csr_wifi_hip_xbv.c.

#define SEC_CMD_LEN   ((4 + 2) * 2) /* sizeof(cmd, vector) per XAP */

Definition at line 807 of file csr_wifi_hip_xbv.c.

#define STREAM_CHECKSUM   0x6d34 /* Sum of uint16s in each patch stream */

Definition at line 37 of file csr_wifi_hip_xbv.c.

#define TAG_EQ (   i,
  v 
)
Value:
(((i)[0] == (v)[0]) && \
((i)[1] == (v)[1]) && \
((i)[2] == (v)[2]) && \
((i)[3] == (v)[3]))

Definition at line 61 of file csr_wifi_hip_xbv.c.

#define UF_MAC_START_CMD   0x6000 /* MAC "Set start address" command */

Definition at line 811 of file csr_wifi_hip_xbv.c.

#define UF_MAC_START_VEC   0x00c00000 /* Start address of image on MAC */

Definition at line 809 of file csr_wifi_hip_xbv.c.

#define UF_MEMPUT_MAC   0x0000

Definition at line 712 of file csr_wifi_hip_xbv.c.

#define UF_MEMPUT_PHY   0x1000

Definition at line 713 of file csr_wifi_hip_xbv.c.

#define UF_PHY_START_CMD   0x7000 /* PHY "Set start address" command */

Definition at line 812 of file csr_wifi_hip_xbv.c.

#define UF_PHY_START_VEC   0x00c00000 /* Start address of image on PHY */

Definition at line 810 of file csr_wifi_hip_xbv.c.

#define UF_REGION_MAC   2

Definition at line 711 of file csr_wifi_hip_xbv.c.

#define UF_REGION_PHY   1

Definition at line 710 of file csr_wifi_hip_xbv.c.

#define XBV_MAX_OFFS   0x7fffffff

Definition at line 81 of file csr_wifi_hip_xbv.c.

#define XBV_STACK_SIZE   6

Definition at line 80 of file csr_wifi_hip_xbv.c.

Enumeration Type Documentation

Enumerator:
xbv_xbv1 
xbv_fw 
xbv_vers 
xbv_vand 
xbv_ptch 
xbv_other 

Definition at line 69 of file csr_wifi_hip_xbv.c.

Function Documentation

CsrResult xbv1_parse ( card_t card,
fwreadfn_t  readfn,
void dlpriv,
xbv1_t fwinfo 
)

Definition at line 160 of file csr_wifi_hip_xbv.c.

s32 xbv1_read_slut ( card_t card,
fwreadfn_t  readfn,
void dlpriv,
xbv1_t fwinfo,
symbol_t slut,
u32  slut_len 
)

Definition at line 874 of file csr_wifi_hip_xbv.c.

void* xbv_to_patch ( card_t card,
fwreadfn_t  readfn,
const void fw_buf,
const xbv1_t fwinfo,
u32 size 
)

Definition at line 972 of file csr_wifi_hip_xbv.c.