Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bmi.h File Reference

Go to the source code of this file.

Data Structures

struct  ath6kl_bmi_target_info
 

Macros

#define BMI_NO_COMMAND   0
 
#define BMI_DONE   1
 
#define BMI_READ_MEMORY   2
 
#define BMI_WRITE_MEMORY   3
 
#define BMI_EXECUTE   4
 
#define BMI_SET_APP_START   5
 
#define BMI_READ_SOC_REGISTER   6
 
#define BMI_WRITE_SOC_REGISTER   7
 
#define BMI_GET_TARGET_ID   8
 
#define BMI_GET_TARGET_INFO   8
 
#define TARGET_VERSION_SENTINAL   0xffffffff
 
#define TARGET_TYPE_AR6003   3
 
#define TARGET_TYPE_AR6004   5
 
#define BMI_ROMPATCH_INSTALL   9
 
#define BMI_ROMPATCH_UNINSTALL   10
 
#define BMI_ROMPATCH_ACTIVATE   11
 
#define BMI_ROMPATCH_DEACTIVATE   12
 
#define BMI_LZ_STREAM_START   13
 
#define BMI_LZ_DATA   14
 
#define BMI_COMMUNICATION_TIMEOUT   1000 /* in msec */
 
#define ath6kl_bmi_write_hi32(ar, item, val)
 
#define ath6kl_bmi_read_hi32(ar, item, val)
 

Functions

int ath6kl_bmi_init (struct ath6kl *ar)
 
void ath6kl_bmi_cleanup (struct ath6kl *ar)
 
void ath6kl_bmi_reset (struct ath6kl *ar)
 
int ath6kl_bmi_done (struct ath6kl *ar)
 
int ath6kl_bmi_get_target_info (struct ath6kl *ar, struct ath6kl_bmi_target_info *targ_info)
 
int ath6kl_bmi_read (struct ath6kl *ar, u32 addr, u8 *buf, u32 len)
 
int ath6kl_bmi_write (struct ath6kl *ar, u32 addr, u8 *buf, u32 len)
 
int ath6kl_bmi_execute (struct ath6kl *ar, u32 addr, u32 *param)
 
int ath6kl_bmi_set_app_start (struct ath6kl *ar, u32 addr)
 
int ath6kl_bmi_reg_read (struct ath6kl *ar, u32 addr, u32 *param)
 
int ath6kl_bmi_reg_write (struct ath6kl *ar, u32 addr, u32 param)
 
int ath6kl_bmi_lz_data (struct ath6kl *ar, u8 *buf, u32 len)
 
int ath6kl_bmi_lz_stream_start (struct ath6kl *ar, u32 addr)
 
int ath6kl_bmi_fast_download (struct ath6kl *ar, u32 addr, u8 *buf, u32 len)
 

Variables

struct ath6kl_bmi_target_info __packed
 

Macro Definition Documentation

#define ath6kl_bmi_read_hi32 (   ar,
  item,
  val 
)
Value:
({ \
u32 addr, *check_type = val; \
int ret; \
\
(void) (check_type == val); \
addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
ret = ath6kl_bmi_read(ar, addr, (u8 *) &tmp, 4); \
*val = le32_to_cpu(tmp); \
ret; \
})

Definition at line 236 of file bmi.h.

#define ath6kl_bmi_write_hi32 (   ar,
  item,
  val 
)
Value:
({ \
\
addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
v = cpu_to_le32(val); \
ath6kl_bmi_write(ar, addr, (u8 *) &v, sizeof(v)); \
})

Definition at line 226 of file bmi.h.

#define BMI_COMMUNICATION_TIMEOUT   1000 /* in msec */

Definition at line 217 of file bmi.h.

#define BMI_DONE   1

Definition at line 52 of file bmi.h.

#define BMI_EXECUTE   4

Definition at line 82 of file bmi.h.

#define BMI_GET_TARGET_ID   8

Definition at line 123 of file bmi.h.

#define BMI_GET_TARGET_INFO   8

Definition at line 124 of file bmi.h.

#define BMI_LZ_DATA   14

Definition at line 201 of file bmi.h.

#define BMI_LZ_STREAM_START   13

Definition at line 187 of file bmi.h.

#define BMI_NO_COMMAND   0

Definition at line 50 of file bmi.h.

#define BMI_READ_MEMORY   2

Definition at line 60 of file bmi.h.

#define BMI_READ_SOC_REGISTER   6

Definition at line 102 of file bmi.h.

#define BMI_ROMPATCH_ACTIVATE   11

Definition at line 164 of file bmi.h.

#define BMI_ROMPATCH_DEACTIVATE   12

Definition at line 175 of file bmi.h.

#define BMI_ROMPATCH_INSTALL   9

Definition at line 139 of file bmi.h.

#define BMI_ROMPATCH_UNINSTALL   10

Definition at line 153 of file bmi.h.

#define BMI_SET_APP_START   5

Definition at line 93 of file bmi.h.

#define BMI_WRITE_MEMORY   3

Definition at line 71 of file bmi.h.

#define BMI_WRITE_SOC_REGISTER   7

Definition at line 112 of file bmi.h.

#define TARGET_TYPE_AR6003   3

Definition at line 137 of file bmi.h.

#define TARGET_TYPE_AR6004   5

Definition at line 138 of file bmi.h.

#define TARGET_VERSION_SENTINAL   0xffffffff

Definition at line 136 of file bmi.h.

Function Documentation

void ath6kl_bmi_cleanup ( struct ath6kl ar)

Definition at line 544 of file bmi.c.

int ath6kl_bmi_done ( struct ath6kl ar)

Definition at line 23 of file bmi.c.

int ath6kl_bmi_execute ( struct ath6kl ar,
u32  addr,
u32 param 
)

Definition at line 237 of file bmi.c.

int ath6kl_bmi_fast_download ( struct ath6kl ar,
u32  addr,
u8 buf,
u32  len 
)

Definition at line 493 of file bmi.c.

int ath6kl_bmi_get_target_info ( struct ath6kl ar,
struct ath6kl_bmi_target_info targ_info 
)

Definition at line 44 of file bmi.c.

int ath6kl_bmi_init ( struct ath6kl ar)

Definition at line 529 of file bmi.c.

int ath6kl_bmi_lz_data ( struct ath6kl ar,
u8 buf,
u32  len 
)

Definition at line 403 of file bmi.c.

int ath6kl_bmi_lz_stream_start ( struct ath6kl ar,
u32  addr 
)

Definition at line 454 of file bmi.c.

int ath6kl_bmi_read ( struct ath6kl ar,
u32  addr,
u8 buf,
u32  len 
)

Definition at line 114 of file bmi.c.

int ath6kl_bmi_reg_read ( struct ath6kl ar,
u32  addr,
u32 param 
)

Definition at line 320 of file bmi.c.

int ath6kl_bmi_reg_write ( struct ath6kl ar,
u32  addr,
u32  param 
)

Definition at line 363 of file bmi.c.

void ath6kl_bmi_reset ( struct ath6kl ar)

Definition at line 524 of file bmi.c.

int ath6kl_bmi_set_app_start ( struct ath6kl ar,
u32  addr 
)

Definition at line 284 of file bmi.c.

int ath6kl_bmi_write ( struct ath6kl ar,
u32  addr,
u8 buf,
u32  len 
)

Definition at line 170 of file bmi.c.

Variable Documentation