diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-testmode.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-testmode.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.h b/drivers/net/wireless/iwlwifi/iwl-testmode.h index 31f8949f2801..a88085e9b361 100644 --- a/drivers/net/wireless/iwlwifi/iwl-testmode.h +++ b/drivers/net/wireless/iwlwifi/iwl-testmode.h | |||
@@ -88,9 +88,15 @@ enum iwl_tm_cmd_t { | |||
88 | IWL_TM_CMD_APP2DEV_LOAD_INIT_FW, | 88 | IWL_TM_CMD_APP2DEV_LOAD_INIT_FW, |
89 | IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB, | 89 | IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB, |
90 | IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW, | 90 | IWL_TM_CMD_APP2DEV_LOAD_RUNTIME_FW, |
91 | IWL_TM_CMD_APP2DEV_GET_EEPROM, | ||
92 | IWL_TM_CMD_APP2DEV_FIXRATE_REQ, | ||
91 | /* if there is other new command for the driver layer operation, | 93 | /* if there is other new command for the driver layer operation, |
92 | * append them here */ | 94 | * append them here */ |
93 | 95 | ||
96 | /* commands fom user space for uCode trace operations */ | ||
97 | IWL_TM_CMD_APP2DEV_BEGIN_TRACE, | ||
98 | IWL_TM_CMD_APP2DEV_END_TRACE, | ||
99 | IWL_TM_CMD_APP2DEV_READ_TRACE, | ||
94 | 100 | ||
95 | /* commands from kernel space to carry the synchronous response | 101 | /* commands from kernel space to carry the synchronous response |
96 | * to user application */ | 102 | * to user application */ |
@@ -99,6 +105,11 @@ enum iwl_tm_cmd_t { | |||
99 | /* commands from kernel space to multicast the spontaneous messages | 105 | /* commands from kernel space to multicast the spontaneous messages |
100 | * to user application */ | 106 | * to user application */ |
101 | IWL_TM_CMD_DEV2APP_UCODE_RX_PKT, | 107 | IWL_TM_CMD_DEV2APP_UCODE_RX_PKT, |
108 | |||
109 | /* commands from kernel space to carry the eeprom response | ||
110 | * to user application */ | ||
111 | IWL_TM_CMD_DEV2APP_EEPROM_RSP, | ||
112 | |||
102 | IWL_TM_CMD_MAX, | 113 | IWL_TM_CMD_MAX, |
103 | }; | 114 | }; |
104 | 115 | ||
@@ -144,8 +155,31 @@ enum iwl_tm_attr_t { | |||
144 | * application */ | 155 | * application */ |
145 | IWL_TM_ATTR_UCODE_RX_PKT, | 156 | IWL_TM_ATTR_UCODE_RX_PKT, |
146 | 157 | ||
158 | /* When IWL_TM_ATTR_COMMAND is IWL_TM_CMD_DEV2APP_EEPROM, | ||
159 | * The mandatory fields are: | ||
160 | * IWL_TM_ATTR_EEPROM for the data content responging to the user | ||
161 | * application */ | ||
162 | IWL_TM_ATTR_EEPROM, | ||
163 | |||
164 | /* When IWL_TM_ATTR_COMMAND is IWL_TM_CMD_APP2DEV_XXX_TRACE, | ||
165 | * The mandatory fields are: | ||
166 | * IWL_TM_ATTR_MEM_TRACE_ADDR for the trace address | ||
167 | */ | ||
168 | IWL_TM_ATTR_TRACE_ADDR, | ||
169 | IWL_TM_ATTR_TRACE_DATA, | ||
170 | |||
171 | /* When IWL_TM_ATTR_COMMAND is IWL_TM_CMD_APP2DEV_FIXRATE_REQ, | ||
172 | * The mandatory fields are: | ||
173 | * IWL_TM_ATTR_FIXRATE for the fixed rate | ||
174 | */ | ||
175 | IWL_TM_ATTR_FIXRATE, | ||
176 | |||
147 | IWL_TM_ATTR_MAX, | 177 | IWL_TM_ATTR_MAX, |
148 | }; | 178 | }; |
149 | 179 | ||
180 | /* uCode trace buffer */ | ||
181 | #define TRACE_BUFF_SIZE 0x20000 | ||
182 | #define TRACE_BUFF_PADD 0x2000 | ||
183 | #define TRACE_TOTAL_SIZE (TRACE_BUFF_SIZE + TRACE_BUFF_PADD) | ||
150 | 184 | ||
151 | #endif | 185 | #endif |