aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-testmode.h
diff options
context:
space:
mode:
authorHsu, Kenny <kenny.hsu@intel.com>2011-11-15 22:24:32 -0500
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-11-25 13:48:54 -0500
commit72bcacc2bd237423eea8c00c2794e67dc7eebca6 (patch)
tree3ce5e175f023e80c7b729d86554a4aae9bd725d8 /drivers/net/wireless/iwlwifi/iwl-testmode.h
parent27f6cbecbf60e2dd2be49a945e9966ed6b20b2de (diff)
iwlwifi: add tm commands for indirect register access
Create new testmode commands to suppot indirect access of peripheral register. - IWL_TM_CMD_APP2DEV_INDIRECT_REG_READ32 - IWL_TM_CMD_APP2DEV_INDIRECT_REG_WRITE32 Meanwhile, add affix "DIRECT" into original register access commands for better discrimination with new commands. - IWL_TM_CMD_APP2DEV_DIRECT_REG_READ32 - IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE32 - IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE8 Signed-off-by: Kenny Hsu <kenny.hsu@intel.com> 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.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-testmode.h b/drivers/net/wireless/iwlwifi/iwl-testmode.h
index b980bda4b0f..177964850b7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-testmode.h
+++ b/drivers/net/wireless/iwlwifi/iwl-testmode.h
@@ -76,9 +76,9 @@
76 * the actual uCode host command ID is carried with 76 * the actual uCode host command ID is carried with
77 * IWL_TM_ATTR_UCODE_CMD_ID 77 * IWL_TM_ATTR_UCODE_CMD_ID
78 * 78 *
79 * @IWL_TM_CMD_APP2DEV_REG_READ32: 79 * @IWL_TM_CMD_APP2DEV_DIRECT_REG_READ32:
80 * @IWL_TM_CMD_APP2DEV_REG_WRITE32: 80 * @IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE32:
81 * @IWL_TM_CMD_APP2DEV_REG_WRITE8: 81 * @IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE8:
82 * commands from user applicaiton to access register 82 * commands from user applicaiton to access register
83 * 83 *
84 * @IWL_TM_CMD_APP2DEV_GET_DEVICENAME: retrieve device name 84 * @IWL_TM_CMD_APP2DEV_GET_DEVICENAME: retrieve device name
@@ -107,12 +107,16 @@
107 * commands from user application to own change the ownership of the uCode 107 * commands from user application to own change the ownership of the uCode
108 * if application has the ownership, the only host command from 108 * if application has the ownership, the only host command from
109 * testmode will deliver to uCode. Default owner is driver 109 * testmode will deliver to uCode. Default owner is driver
110 * @IWL_TM_CMD_APP2DEV_INDIRECT_REG_READ32:
111 * @IWL_TM_CMD_APP2DEV_INDIRECT_REG_WRITE32:
112 * commands from user applicaiton to indirectly access peripheral register
113 *
110 */ 114 */
111enum iwl_tm_cmd_t { 115enum iwl_tm_cmd_t {
112 IWL_TM_CMD_APP2DEV_UCODE = 1, 116 IWL_TM_CMD_APP2DEV_UCODE = 1,
113 IWL_TM_CMD_APP2DEV_REG_READ32 = 2, 117 IWL_TM_CMD_APP2DEV_DIRECT_REG_READ32 = 2,
114 IWL_TM_CMD_APP2DEV_REG_WRITE32 = 3, 118 IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE32 = 3,
115 IWL_TM_CMD_APP2DEV_REG_WRITE8 = 4, 119 IWL_TM_CMD_APP2DEV_DIRECT_REG_WRITE8 = 4,
116 IWL_TM_CMD_APP2DEV_GET_DEVICENAME = 5, 120 IWL_TM_CMD_APP2DEV_GET_DEVICENAME = 5,
117 IWL_TM_CMD_APP2DEV_LOAD_INIT_FW = 6, 121 IWL_TM_CMD_APP2DEV_LOAD_INIT_FW = 6,
118 IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB = 7, 122 IWL_TM_CMD_APP2DEV_CFG_INIT_CALIB = 7,
@@ -126,7 +130,9 @@ enum iwl_tm_cmd_t {
126 IWL_TM_CMD_DEV2APP_UCODE_RX_PKT = 15, 130 IWL_TM_CMD_DEV2APP_UCODE_RX_PKT = 15,
127 IWL_TM_CMD_DEV2APP_EEPROM_RSP = 16, 131 IWL_TM_CMD_DEV2APP_EEPROM_RSP = 16,
128 IWL_TM_CMD_APP2DEV_OWNERSHIP = 17, 132 IWL_TM_CMD_APP2DEV_OWNERSHIP = 17,
129 IWL_TM_CMD_MAX = 18, 133 IWL_TM_CMD_APP2DEV_INDIRECT_REG_READ32 = 18,
134 IWL_TM_CMD_APP2DEV_INDIRECT_REG_WRITE32 = 19,
135 IWL_TM_CMD_MAX = 20,
130}; 136};
131 137
132/* 138/*