Go to the documentation of this file.
50 #define BMI_NO_COMMAND 0
60 #define BMI_READ_MEMORY 2
71 #define BMI_WRITE_MEMORY 3
93 #define BMI_SET_APP_START 5
102 #define BMI_READ_SOC_REGISTER 6
112 #define BMI_WRITE_SOC_REGISTER 7
123 #define BMI_GET_TARGET_ID 8
124 #define BMI_GET_TARGET_INFO 8
136 #define TARGET_VERSION_SENTINAL 0xffffffff
137 #define TARGET_TYPE_AR6003 3
138 #define TARGET_TYPE_AR6004 5
139 #define BMI_ROMPATCH_INSTALL 9
153 #define BMI_ROMPATCH_UNINSTALL 10
164 #define BMI_ROMPATCH_ACTIVATE 11
175 #define BMI_ROMPATCH_DEACTIVATE 12
187 #define BMI_LZ_STREAM_START 13
201 #define BMI_LZ_DATA 14
217 #define BMI_COMMUNICATION_TIMEOUT 1000
226 #define ath6kl_bmi_write_hi32(ar, item, val) \
231 addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
232 v = cpu_to_le32(val); \
233 ath6kl_bmi_write(ar, addr, (u8 *) &v, sizeof(v)); \
236 #define ath6kl_bmi_read_hi32(ar, item, val) \
238 u32 addr, *check_type = val; \
242 (void) (check_type == val); \
243 addr = ath6kl_get_hi_item_addr(ar, HI_ITEM(item)); \
244 ret = ath6kl_bmi_read(ar, addr, (u8 *) &tmp, 4); \
245 *val = le32_to_cpu(tmp); \