aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2007-10-25 05:15:35 -0400
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:03:16 -0500
commitd860965200c867e7e3e81ede8572cffff8c7eb24 (patch)
tree222359e2ca703c359ca3ee89f916521dd79d82df /drivers/net/wireless/iwlwifi/iwl-3945.c
parenta033f37ee4381a3d9fa0cf4ec28a23357080ed50 (diff)
iwlwifi: replace restricted_reg with prph
This patch renames restricted_reg suffix with more proper name prhp for function accessing registers on the periphery bus. Signed-off-by: Tomas Winkler <tomas.winkler@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.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 1fda41107df1..59e2fa270924 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -733,7 +733,7 @@ static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max)
733 rc = pci_read_config_dword(priv->pci_dev, 733 rc = pci_read_config_dword(priv->pci_dev,
734 PCI_POWER_SOURCE, &val); 734 PCI_POWER_SOURCE, &val);
735 if (val & PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT) { 735 if (val & PCI_CFG_PMC_PME_FROM_D3COLD_SUPPORT) {
736 iwl_set_bits_mask_restricted_reg(priv, APMG_PS_CTRL_REG, 736 iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG,
737 APMG_PS_CTRL_VAL_PWR_SRC_VAUX, 737 APMG_PS_CTRL_VAL_PWR_SRC_VAUX,
738 ~APMG_PS_CTRL_MSK_PWR_SRC); 738 ~APMG_PS_CTRL_MSK_PWR_SRC);
739 iwl_release_restricted_access(priv); 739 iwl_release_restricted_access(priv);
@@ -744,7 +744,7 @@ static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max)
744 } else 744 } else
745 iwl_release_restricted_access(priv); 745 iwl_release_restricted_access(priv);
746 } else { 746 } else {
747 iwl_set_bits_mask_restricted_reg(priv, APMG_PS_CTRL_REG, 747 iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG,
748 APMG_PS_CTRL_VAL_PWR_SRC_VMAIN, 748 APMG_PS_CTRL_VAL_PWR_SRC_VMAIN,
749 ~APMG_PS_CTRL_MSK_PWR_SRC); 749 ~APMG_PS_CTRL_MSK_PWR_SRC);
750 750
@@ -806,18 +806,18 @@ static int iwl3945_tx_reset(struct iwl_priv *priv)
806 } 806 }
807 807
808 /* bypass mode */ 808 /* bypass mode */
809 iwl_write_restricted_reg(priv, SCD_MODE_REG, 0x2); 809 iwl_write_prph(priv, SCD_MODE_REG, 0x2);
810 810
811 /* RA 0 is active */ 811 /* RA 0 is active */
812 iwl_write_restricted_reg(priv, SCD_ARASTAT_REG, 0x01); 812 iwl_write_prph(priv, SCD_ARASTAT_REG, 0x01);
813 813
814 /* all 6 fifo are active */ 814 /* all 6 fifo are active */
815 iwl_write_restricted_reg(priv, SCD_TXFACT_REG, 0x3f); 815 iwl_write_prph(priv, SCD_TXFACT_REG, 0x3f);
816 816
817 iwl_write_restricted_reg(priv, SCD_SBYP_MODE_1_REG, 0x010000); 817 iwl_write_prph(priv, SCD_SBYP_MODE_1_REG, 0x010000);
818 iwl_write_restricted_reg(priv, SCD_SBYP_MODE_2_REG, 0x030002); 818 iwl_write_prph(priv, SCD_SBYP_MODE_2_REG, 0x030002);
819 iwl_write_restricted_reg(priv, SCD_TXF4MF_REG, 0x000004); 819 iwl_write_prph(priv, SCD_TXF4MF_REG, 0x000004);
820 iwl_write_restricted_reg(priv, SCD_TXF5MF_REG, 0x000005); 820 iwl_write_prph(priv, SCD_TXF5MF_REG, 0x000005);
821 821
822 iwl_write_restricted(priv, FH_TSSR_CBB_BASE, 822 iwl_write_restricted(priv, FH_TSSR_CBB_BASE,
823 priv->hw_setting.shared_phys); 823 priv->hw_setting.shared_phys);
@@ -902,11 +902,11 @@ int iwl_hw_nic_init(struct iwl_priv *priv)
902 spin_unlock_irqrestore(&priv->lock, flags); 902 spin_unlock_irqrestore(&priv->lock, flags);
903 return rc; 903 return rc;
904 } 904 }
905 iwl_write_restricted_reg(priv, APMG_CLK_EN_REG, 905 iwl_write_prph(priv, APMG_CLK_EN_REG,
906 APMG_CLK_VAL_DMA_CLK_RQT | 906 APMG_CLK_VAL_DMA_CLK_RQT |
907 APMG_CLK_VAL_BSM_CLK_RQT); 907 APMG_CLK_VAL_BSM_CLK_RQT);
908 udelay(20); 908 udelay(20);
909 iwl_set_bits_restricted_reg(priv, APMG_PCIDEV_STT_REG, 909 iwl_set_bits_prph(priv, APMG_PCIDEV_STT_REG,
910 APMG_PCIDEV_STT_VAL_L1_ACT_DIS); 910 APMG_PCIDEV_STT_VAL_L1_ACT_DIS);
911 iwl_release_restricted_access(priv); 911 iwl_release_restricted_access(priv);
912 spin_unlock_irqrestore(&priv->lock, flags); 912 spin_unlock_irqrestore(&priv->lock, flags);
@@ -1045,7 +1045,7 @@ void iwl_hw_txq_ctx_stop(struct iwl_priv *priv)
1045 } 1045 }
1046 1046
1047 /* stop SCD */ 1047 /* stop SCD */
1048 iwl_write_restricted_reg(priv, SCD_MODE_REG, 0); 1048 iwl_write_prph(priv, SCD_MODE_REG, 0);
1049 1049
1050 /* reset TFD queues */ 1050 /* reset TFD queues */
1051 for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) { 1051 for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) {
@@ -1111,7 +1111,7 @@ int iwl_hw_nic_reset(struct iwl_priv *priv)
1111 1111
1112 rc = iwl_grab_restricted_access(priv); 1112 rc = iwl_grab_restricted_access(priv);
1113 if (!rc) { 1113 if (!rc) {
1114 iwl_write_restricted_reg(priv, APMG_CLK_CTRL_REG, 1114 iwl_write_prph(priv, APMG_CLK_CTRL_REG,
1115 APMG_CLK_VAL_BSM_CLK_RQT); 1115 APMG_CLK_VAL_BSM_CLK_RQT);
1116 1116
1117 udelay(10); 1117 udelay(10);
@@ -1119,20 +1119,20 @@ int iwl_hw_nic_reset(struct iwl_priv *priv)
1119 iwl_set_bit(priv, CSR_GP_CNTRL, 1119 iwl_set_bit(priv, CSR_GP_CNTRL,
1120 CSR_GP_CNTRL_REG_FLAG_INIT_DONE); 1120 CSR_GP_CNTRL_REG_FLAG_INIT_DONE);
1121 1121
1122 iwl_write_restricted_reg(priv, APMG_RTC_INT_MSK_REG, 0x0); 1122 iwl_write_prph(priv, APMG_RTC_INT_MSK_REG, 0x0);
1123 iwl_write_restricted_reg(priv, APMG_RTC_INT_STT_REG, 1123 iwl_write_prph(priv, APMG_RTC_INT_STT_REG,
1124 0xFFFFFFFF); 1124 0xFFFFFFFF);
1125 1125
1126 /* enable DMA */ 1126 /* enable DMA */
1127 iwl_write_restricted_reg(priv, APMG_CLK_EN_REG, 1127 iwl_write_prph(priv, APMG_CLK_EN_REG,
1128 APMG_CLK_VAL_DMA_CLK_RQT | 1128 APMG_CLK_VAL_DMA_CLK_RQT |
1129 APMG_CLK_VAL_BSM_CLK_RQT); 1129 APMG_CLK_VAL_BSM_CLK_RQT);
1130 udelay(10); 1130 udelay(10);
1131 1131
1132 iwl_set_bits_restricted_reg(priv, APMG_PS_CTRL_REG, 1132 iwl_set_bits_prph(priv, APMG_PS_CTRL_REG,
1133 APMG_PS_CTRL_VAL_RESET_REQ); 1133 APMG_PS_CTRL_VAL_RESET_REQ);
1134 udelay(5); 1134 udelay(5);
1135 iwl_clear_bits_restricted_reg(priv, APMG_PS_CTRL_REG, 1135 iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG,
1136 APMG_PS_CTRL_VAL_RESET_REQ); 1136 APMG_PS_CTRL_VAL_RESET_REQ);
1137 iwl_release_restricted_access(priv); 1137 iwl_release_restricted_access(priv);
1138 } 1138 }