diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-06 13:21:28 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-05-13 15:02:02 -0400 |
commit | 7a4e5281d1b3335a3dc90841415390473cccebf3 (patch) | |
tree | bc6731ec17596e5e5f90dc64f0472567971854ad /drivers/net/wireless/iwlwifi/iwl-testmode.h | |
parent | 5065054790b111bf677b1eccf3f8f76f20cc0ae6 (diff) |
iwlagn: add testmode trace command
Adding testmode trace/debug capability
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-testmode.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-testmode.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.h b/drivers/net/wireless/iwlwifi/iwl-testmode.h index 31f8949f2801..34634eca94ec 100644 --- a/drivers/net/wireless/iwlwifi/iwl-testmode.h +++ b/drivers/net/wireless/iwlwifi/iwl-testmode.h | |||
@@ -91,6 +91,10 @@ enum iwl_tm_cmd_t { | |||
91 | /* if there is other new command for the driver layer operation, | 91 | /* if there is other new command for the driver layer operation, |
92 | * append them here */ | 92 | * append them here */ |
93 | 93 | ||
94 | /* commands fom user space for uCode trace operations */ | ||
95 | IWL_TM_CMD_APP2DEV_BEGIN_TRACE, | ||
96 | IWL_TM_CMD_APP2DEV_END_TRACE, | ||
97 | IWL_TM_CMD_APP2DEV_READ_TRACE, | ||
94 | 98 | ||
95 | /* commands from kernel space to carry the synchronous response | 99 | /* commands from kernel space to carry the synchronous response |
96 | * to user application */ | 100 | * to user application */ |
@@ -144,8 +148,19 @@ enum iwl_tm_attr_t { | |||
144 | * application */ | 148 | * application */ |
145 | IWL_TM_ATTR_UCODE_RX_PKT, | 149 | IWL_TM_ATTR_UCODE_RX_PKT, |
146 | 150 | ||
151 | /* When IWL_TM_ATTR_COMMAND is IWL_TM_CMD_APP2DEV_XXX_TRACE, | ||
152 | * The mandatory fields are: | ||
153 | * IWL_TM_ATTR_MEM_TRACE_ADDR for the trace address | ||
154 | */ | ||
155 | IWL_TM_ATTR_TRACE_ADDR, | ||
156 | IWL_TM_ATTR_TRACE_DATA, | ||
157 | |||
147 | IWL_TM_ATTR_MAX, | 158 | IWL_TM_ATTR_MAX, |
148 | }; | 159 | }; |
149 | 160 | ||
161 | /* uCode trace buffer */ | ||
162 | #define TRACE_BUFF_SIZE 0x20000 | ||
163 | #define TRACE_BUFF_PADD 0x2000 | ||
164 | #define TRACE_TOTAL_SIZE (TRACE_BUFF_SIZE + TRACE_BUFF_PADD) | ||
150 | 165 | ||
151 | #endif | 166 | #endif |