aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-03-04 21:09:28 -0500
committerJohn W. Linville <linville@tuxdriver.com>2008-03-07 16:03:00 -0500
commit6f83eaa170c05324fb33668eace007ea24c277d2 (patch)
tree8d2b263c08b0449bf4f9de407fa161c750aff702 /drivers/net/wireless/iwlwifi/iwl-3945.c
parent4c424e4cc7bc9d3c4c22b408904c36b44afddc3e (diff)
iwlwifi: extract iwl-csr.h
This patch extract CSR Register definition into separate header files as most of the definition are commons to both 3945 and 4965. Definitions specific for 3945 and 4965 are properly prefixed Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 63e832cdba75..0fca35650ad3 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -1154,19 +1154,19 @@ int iwl3945_hw_nic_init(struct iwl3945_priv *priv)
1154 if (rev_id & PCI_CFG_REV_ID_BIT_RTP) 1154 if (rev_id & PCI_CFG_REV_ID_BIT_RTP)
1155 IWL_DEBUG_INFO("RTP type \n"); 1155 IWL_DEBUG_INFO("RTP type \n");
1156 else if (rev_id & PCI_CFG_REV_ID_BIT_BASIC_SKU) { 1156 else if (rev_id & PCI_CFG_REV_ID_BIT_BASIC_SKU) {
1157 IWL_DEBUG_INFO("ALM-MB type\n"); 1157 IWL_DEBUG_INFO("3945 RADIO-MB type\n");
1158 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1158 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1159 CSR_HW_IF_CONFIG_REG_BIT_ALMAGOR_MB); 1159 CSR39_HW_IF_CONFIG_REG_BIT_3945_MB);
1160 } else { 1160 } else {
1161 IWL_DEBUG_INFO("ALM-MM type\n"); 1161 IWL_DEBUG_INFO("3945 RADIO-MM type\n");
1162 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1162 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1163 CSR_HW_IF_CONFIG_REG_BIT_ALMAGOR_MM); 1163 CSR39_HW_IF_CONFIG_REG_BIT_3945_MM);
1164 } 1164 }
1165 1165
1166 if (EEPROM_SKU_CAP_OP_MODE_MRC == priv->eeprom.sku_cap) { 1166 if (EEPROM_SKU_CAP_OP_MODE_MRC == priv->eeprom.sku_cap) {
1167 IWL_DEBUG_INFO("SKU OP mode is mrc\n"); 1167 IWL_DEBUG_INFO("SKU OP mode is mrc\n");
1168 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1168 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1169 CSR_HW_IF_CONFIG_REG_BIT_SKU_MRC); 1169 CSR39_HW_IF_CONFIG_REG_BIT_SKU_MRC);
1170 } else 1170 } else
1171 IWL_DEBUG_INFO("SKU OP mode is basic\n"); 1171 IWL_DEBUG_INFO("SKU OP mode is basic\n");
1172 1172
@@ -1174,24 +1174,24 @@ int iwl3945_hw_nic_init(struct iwl3945_priv *priv)
1174 IWL_DEBUG_INFO("3945ABG revision is 0x%X\n", 1174 IWL_DEBUG_INFO("3945ABG revision is 0x%X\n",
1175 priv->eeprom.board_revision); 1175 priv->eeprom.board_revision);
1176 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1176 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1177 CSR_HW_IF_CONFIG_REG_BIT_BOARD_TYPE); 1177 CSR39_HW_IF_CONFIG_REG_BIT_BOARD_TYPE);
1178 } else { 1178 } else {
1179 IWL_DEBUG_INFO("3945ABG revision is 0x%X\n", 1179 IWL_DEBUG_INFO("3945ABG revision is 0x%X\n",
1180 priv->eeprom.board_revision); 1180 priv->eeprom.board_revision);
1181 iwl3945_clear_bit(priv, CSR_HW_IF_CONFIG_REG, 1181 iwl3945_clear_bit(priv, CSR_HW_IF_CONFIG_REG,
1182 CSR_HW_IF_CONFIG_REG_BIT_BOARD_TYPE); 1182 CSR39_HW_IF_CONFIG_REG_BIT_BOARD_TYPE);
1183 } 1183 }
1184 1184
1185 if (priv->eeprom.almgor_m_version <= 1) { 1185 if (priv->eeprom.almgor_m_version <= 1) {
1186 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1186 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1187 CSR_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_A); 1187 CSR39_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_A);
1188 IWL_DEBUG_INFO("Card M type A version is 0x%X\n", 1188 IWL_DEBUG_INFO("Card M type A version is 0x%X\n",
1189 priv->eeprom.almgor_m_version); 1189 priv->eeprom.almgor_m_version);
1190 } else { 1190 } else {
1191 IWL_DEBUG_INFO("Card M type B version is 0x%X\n", 1191 IWL_DEBUG_INFO("Card M type B version is 0x%X\n",
1192 priv->eeprom.almgor_m_version); 1192 priv->eeprom.almgor_m_version);
1193 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG, 1193 iwl3945_set_bit(priv, CSR_HW_IF_CONFIG_REG,
1194 CSR_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_B); 1194 CSR39_HW_IF_CONFIG_REG_BITS_SILICON_TYPE_B);
1195 } 1195 }
1196 spin_unlock_irqrestore(&priv->lock, flags); 1196 spin_unlock_irqrestore(&priv->lock, flags);
1197 1197