Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
csr_wifi_hip_card_sdio_mem.c File Reference
#include "csr_wifi_hip_unifi.h"
#include "csr_wifi_hip_card.h"

Go to the source code of this file.

Macros

#define SDIO_RETRIES   3
 
#define CSR_WIFI_HIP_SDIO_TRACE_DATA_LENGTH   16
 
#define retryable_sdio_error(_csrResult)   (((_csrResult) == CSR_SDIO_RESULT_CRC_ERROR) || ((_csrResult) == CSR_SDIO_RESULT_TIMEOUT))
 
#define SHARED_READ_RETRY_LIMIT   10
 
#define CMD53_RETRIES   3
 
#define REWIND_RETRIES   15 /* when REWIND_DELAY==1msec, or 250 when REWIND_DELAY==50usecs */
 
#define REWIND_POLLING_RETRIES   5
 
#define REWIND_DELAY   1 /* msec or 50usecs */
 

Functions

CsrResult sdio_read_f0 (card_t *card, u32 addr, u8 *pdata)
 
CsrResult sdio_write_f0 (card_t *card, u32 addr, u8 data)
 
CsrResult unifi_read_direct_8_or_16 (card_t *card, u32 addr, u8 *pdata)
 
CsrResult unifi_write_direct_8_or_16 (card_t *card, u32 addr, u8 data)
 
CsrResult unifi_read_direct16 (card_t *card, u32 addr, u16 *pdata)
 
CsrResult unifi_write_direct16 (card_t *card, u32 addr, u16 data)
 
CsrResult unifi_read_direct32 (card_t *card, u32 addr, u32 *pdata)
 
CsrResult unifi_read_directn (card_t *card, u32 addr, void *pdata, u16 len)
 
CsrResult unifi_write_directn (card_t *card, u32 addr, void *pdata, u16 len)
 
CsrResult unifi_set_proc_select (card_t *card, enum unifi_dbg_processors_select select)
 
CsrResult unifi_read_8_or_16 (card_t *card, u32 unifi_addr, u8 *pdata)
 
CsrResult unifi_write_8_or_16 (card_t *card, u32 unifi_addr, u8 data)
 
CsrResult unifi_card_read16 (card_t *card, u32 unifi_addr, u16 *pdata)
 
CsrResult unifi_card_write16 (card_t *card, u32 unifi_addr, u16 data)
 
CsrResult unifi_read32 (card_t *card, u32 unifi_addr, u32 *pdata)
 
CsrResult unifi_readn_match (card_t *card, u32 unifi_addr, void *pdata, u16 len, s8 match)
 
CsrResult unifi_card_readn (card_t *card, u32 unifi_addr, void *pdata, u16 len)
 
CsrResult unifi_readnz (card_t *card, u32 unifi_addr, void *pdata, u16 len)
 
s32 unifi_read_shared_count (card_t *card, u32 addr)
 
CsrResult unifi_writen (card_t *card, u32 unifi_addr, void *pdata, u16 len)
 
CsrResult unifi_bulk_rw (card_t *card, u32 handle, void *pdata, u32 len, s16 direction)
 
CsrResult unifi_bulk_rw_noretry (card_t *card, u32 handle, void *pdata, u32 len, s16 direction)
 

Macro Definition Documentation

#define CMD53_RETRIES   3
#define CSR_WIFI_HIP_SDIO_TRACE_DATA_LENGTH   16

Definition at line 23 of file csr_wifi_hip_card_sdio_mem.c.

#define retryable_sdio_error (   _csrResult)    (((_csrResult) == CSR_SDIO_RESULT_CRC_ERROR) || ((_csrResult) == CSR_SDIO_RESULT_TIMEOUT))

Definition at line 26 of file csr_wifi_hip_card_sdio_mem.c.

#define REWIND_DELAY   1 /* msec or 50usecs */
#define REWIND_POLLING_RETRIES   5
#define REWIND_RETRIES   15 /* when REWIND_DELAY==1msec, or 250 when REWIND_DELAY==50usecs */
#define SDIO_RETRIES   3

Definition at line 22 of file csr_wifi_hip_card_sdio_mem.c.

#define SHARED_READ_RETRY_LIMIT   10

Function Documentation

CsrResult sdio_read_f0 ( card_t card,
u32  addr,
u8 pdata 
)

Definition at line 341 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult sdio_write_f0 ( card_t card,
u32  addr,
u8  data 
)

Definition at line 367 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_bulk_rw ( card_t card,
u32  handle,
void pdata,
u32  len,
s16  direction 
)

Definition at line 1475 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_bulk_rw_noretry ( card_t card,
u32  handle,
void pdata,
u32  len,
s16  direction 
)

Definition at line 1696 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_card_read16 ( card_t card,
u32  unifi_addr,
u16 pdata 
)

Definition at line 1165 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_card_readn ( card_t card,
u32  unifi_addr,
void pdata,
u16  len 
)

Definition at line 1298 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_card_write16 ( card_t card,
u32  unifi_addr,
u16  data 
)

Definition at line 1202 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read32 ( card_t card,
u32  unifi_addr,
u32 pdata 
)

Definition at line 1239 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read_8_or_16 ( card_t card,
u32  unifi_addr,
u8 pdata 
)

Definition at line 1062 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read_direct16 ( card_t card,
u32  addr,
u16 pdata 
)

Definition at line 465 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read_direct32 ( card_t card,
u32  addr,
u32 pdata 
)

Definition at line 516 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read_direct_8_or_16 ( card_t card,
u32  addr,
u8 pdata 
)

Definition at line 391 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_read_directn ( card_t card,
u32  addr,
void pdata,
u16  len 
)

Definition at line 634 of file csr_wifi_hip_card_sdio_mem.c.

s32 unifi_read_shared_count ( card_t card,
u32  addr 
)

Definition at line 1326 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_readn_match ( card_t card,
u32  unifi_addr,
void pdata,
u16  len,
s8  match 
)

Definition at line 1281 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_readnz ( card_t card,
u32  unifi_addr,
void pdata,
u16  len 
)

Definition at line 1304 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_set_proc_select ( card_t card,
enum unifi_dbg_processors_select  select 
)

Definition at line 1004 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_write_8_or_16 ( card_t card,
u32  unifi_addr,
u8  data 
)

Definition at line 1113 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_write_direct16 ( card_t card,
u32  addr,
u16  data 
)

Definition at line 493 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_write_direct_8_or_16 ( card_t card,
u32  addr,
u8  data 
)

Definition at line 426 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_write_directn ( card_t card,
u32  addr,
void pdata,
u16  len 
)

Definition at line 667 of file csr_wifi_hip_card_sdio_mem.c.

CsrResult unifi_writen ( card_t card,
u32  unifi_addr,
void pdata,
u16  len 
)

Definition at line 1387 of file csr_wifi_hip_card_sdio_mem.c.