diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2007-10-25 05:15:37 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:17 -0500 |
commit | ac17a947a4f47b642097d6814d6dcc60c297eb17 (patch) | |
tree | ca77e4c90f23631433548fb8a5a9a57611315b04 /drivers/net/wireless/iwlwifi/iwl-3945.c | |
parent | af7cca2a441f6e2ebeb2a920ef5af1bec8df96e8 (diff) |
iwlwifi: replacing wording restricted to nic access in iwl-io
This patch replaces wording 'restricted' with more appropriate 'nic access'
NIC access is grabbed to prevent NIC entering power save mode
General cleanup of iwl-io.h
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.c | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c index 077fa1023fe5..154f2a258db2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945.c +++ b/drivers/net/wireless/iwlwifi/iwl-3945.c | |||
@@ -157,7 +157,7 @@ void iwl_disable_events(struct iwl_priv *priv) | |||
157 | return; | 157 | return; |
158 | } | 158 | } |
159 | 159 | ||
160 | ret = iwl_grab_restricted_access(priv); | 160 | ret = iwl_grab_nic_access(priv); |
161 | if (ret) { | 161 | if (ret) { |
162 | IWL_WARNING("Can not read from adapter at this time.\n"); | 162 | IWL_WARNING("Can not read from adapter at this time.\n"); |
163 | return; | 163 | return; |
@@ -165,18 +165,18 @@ void iwl_disable_events(struct iwl_priv *priv) | |||
165 | 165 | ||
166 | disable_ptr = iwl_read_targ_mem(priv, base + (4 * sizeof(u32))); | 166 | disable_ptr = iwl_read_targ_mem(priv, base + (4 * sizeof(u32))); |
167 | array_size = iwl_read_targ_mem(priv, base + (5 * sizeof(u32))); | 167 | array_size = iwl_read_targ_mem(priv, base + (5 * sizeof(u32))); |
168 | iwl_release_restricted_access(priv); | 168 | iwl_release_nic_access(priv); |
169 | 169 | ||
170 | if (IWL_EVT_DISABLE && (array_size == IWL_EVT_DISABLE_SIZE)) { | 170 | if (IWL_EVT_DISABLE && (array_size == IWL_EVT_DISABLE_SIZE)) { |
171 | IWL_DEBUG_INFO("Disabling selected uCode log events at 0x%x\n", | 171 | IWL_DEBUG_INFO("Disabling selected uCode log events at 0x%x\n", |
172 | disable_ptr); | 172 | disable_ptr); |
173 | ret = iwl_grab_restricted_access(priv); | 173 | ret = iwl_grab_nic_access(priv); |
174 | for (i = 0; i < IWL_EVT_DISABLE_SIZE; i++) | 174 | for (i = 0; i < IWL_EVT_DISABLE_SIZE; i++) |
175 | iwl_write_targ_mem(priv, | 175 | iwl_write_targ_mem(priv, |
176 | disable_ptr + (i * sizeof(u32)), | 176 | disable_ptr + (i * sizeof(u32)), |
177 | evt_disable[i]); | 177 | evt_disable[i]); |
178 | 178 | ||
179 | iwl_release_restricted_access(priv); | 179 | iwl_release_nic_access(priv); |
180 | } else { | 180 | } else { |
181 | IWL_DEBUG_INFO("Selected uCode log events may be disabled\n"); | 181 | IWL_DEBUG_INFO("Selected uCode log events may be disabled\n"); |
182 | IWL_DEBUG_INFO(" by writing \"1\"s into disable bitmap\n"); | 182 | IWL_DEBUG_INFO(" by writing \"1\"s into disable bitmap\n"); |
@@ -720,7 +720,7 @@ static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max) | |||
720 | unsigned long flags; | 720 | unsigned long flags; |
721 | 721 | ||
722 | spin_lock_irqsave(&priv->lock, flags); | 722 | spin_lock_irqsave(&priv->lock, flags); |
723 | rc = iwl_grab_restricted_access(priv); | 723 | rc = iwl_grab_nic_access(priv); |
724 | if (rc) { | 724 | if (rc) { |
725 | spin_unlock_irqrestore(&priv->lock, flags); | 725 | spin_unlock_irqrestore(&priv->lock, flags); |
726 | return rc; | 726 | return rc; |
@@ -735,19 +735,19 @@ static int iwl3945_nic_set_pwr_src(struct iwl_priv *priv, int pwr_max) | |||
735 | iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG, | 735 | iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG, |
736 | APMG_PS_CTRL_VAL_PWR_SRC_VAUX, | 736 | APMG_PS_CTRL_VAL_PWR_SRC_VAUX, |
737 | ~APMG_PS_CTRL_MSK_PWR_SRC); | 737 | ~APMG_PS_CTRL_MSK_PWR_SRC); |
738 | iwl_release_restricted_access(priv); | 738 | iwl_release_nic_access(priv); |
739 | 739 | ||
740 | iwl_poll_bit(priv, CSR_GPIO_IN, | 740 | iwl_poll_bit(priv, CSR_GPIO_IN, |
741 | CSR_GPIO_IN_VAL_VAUX_PWR_SRC, | 741 | CSR_GPIO_IN_VAL_VAUX_PWR_SRC, |
742 | CSR_GPIO_IN_BIT_AUX_POWER, 5000); | 742 | CSR_GPIO_IN_BIT_AUX_POWER, 5000); |
743 | } else | 743 | } else |
744 | iwl_release_restricted_access(priv); | 744 | iwl_release_nic_access(priv); |
745 | } else { | 745 | } else { |
746 | iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG, | 746 | iwl_set_bits_mask_prph(priv, APMG_PS_CTRL_REG, |
747 | APMG_PS_CTRL_VAL_PWR_SRC_VMAIN, | 747 | APMG_PS_CTRL_VAL_PWR_SRC_VMAIN, |
748 | ~APMG_PS_CTRL_MSK_PWR_SRC); | 748 | ~APMG_PS_CTRL_MSK_PWR_SRC); |
749 | 749 | ||
750 | iwl_release_restricted_access(priv); | 750 | iwl_release_nic_access(priv); |
751 | iwl_poll_bit(priv, CSR_GPIO_IN, CSR_GPIO_IN_VAL_VMAIN_PWR_SRC, | 751 | iwl_poll_bit(priv, CSR_GPIO_IN, CSR_GPIO_IN_VAL_VMAIN_PWR_SRC, |
752 | CSR_GPIO_IN_BIT_AUX_POWER, 5000); /* uS */ | 752 | CSR_GPIO_IN_BIT_AUX_POWER, 5000); /* uS */ |
753 | } | 753 | } |
@@ -762,18 +762,18 @@ static int iwl3945_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | |||
762 | unsigned long flags; | 762 | unsigned long flags; |
763 | 763 | ||
764 | spin_lock_irqsave(&priv->lock, flags); | 764 | spin_lock_irqsave(&priv->lock, flags); |
765 | rc = iwl_grab_restricted_access(priv); | 765 | rc = iwl_grab_nic_access(priv); |
766 | if (rc) { | 766 | if (rc) { |
767 | spin_unlock_irqrestore(&priv->lock, flags); | 767 | spin_unlock_irqrestore(&priv->lock, flags); |
768 | return rc; | 768 | return rc; |
769 | } | 769 | } |
770 | 770 | ||
771 | iwl_write_restricted(priv, FH_RCSR_RBD_BASE(0), rxq->dma_addr); | 771 | iwl_write_direct32(priv, FH_RCSR_RBD_BASE(0), rxq->dma_addr); |
772 | iwl_write_restricted(priv, FH_RCSR_RPTR_ADDR(0), | 772 | iwl_write_direct32(priv, FH_RCSR_RPTR_ADDR(0), |
773 | priv->hw_setting.shared_phys + | 773 | priv->hw_setting.shared_phys + |
774 | offsetof(struct iwl_shared, rx_read_ptr[0])); | 774 | offsetof(struct iwl_shared, rx_read_ptr[0])); |
775 | iwl_write_restricted(priv, FH_RCSR_WPTR(0), 0); | 775 | iwl_write_direct32(priv, FH_RCSR_WPTR(0), 0); |
776 | iwl_write_restricted(priv, FH_RCSR_CONFIG(0), | 776 | iwl_write_direct32(priv, FH_RCSR_CONFIG(0), |
777 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_DMA_CHNL_EN_ENABLE | | 777 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_DMA_CHNL_EN_ENABLE | |
778 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_RDRBD_EN_ENABLE | | 778 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_RDRBD_EN_ENABLE | |
779 | ALM_FH_RCSR_RX_CONFIG_REG_BIT_WR_STTS_EN | | 779 | ALM_FH_RCSR_RX_CONFIG_REG_BIT_WR_STTS_EN | |
@@ -784,9 +784,9 @@ static int iwl3945_rx_init(struct iwl_priv *priv, struct iwl_rx_queue *rxq) | |||
784 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_MSG_MODE_FH); | 784 | ALM_FH_RCSR_RX_CONFIG_REG_VAL_MSG_MODE_FH); |
785 | 785 | ||
786 | /* fake read to flush all prev I/O */ | 786 | /* fake read to flush all prev I/O */ |
787 | iwl_read_restricted(priv, FH_RSSR_CTRL); | 787 | iwl_read_direct32(priv, FH_RSSR_CTRL); |
788 | 788 | ||
789 | iwl_release_restricted_access(priv); | 789 | iwl_release_nic_access(priv); |
790 | spin_unlock_irqrestore(&priv->lock, flags); | 790 | spin_unlock_irqrestore(&priv->lock, flags); |
791 | 791 | ||
792 | return 0; | 792 | return 0; |
@@ -798,7 +798,7 @@ static int iwl3945_tx_reset(struct iwl_priv *priv) | |||
798 | unsigned long flags; | 798 | unsigned long flags; |
799 | 799 | ||
800 | spin_lock_irqsave(&priv->lock, flags); | 800 | spin_lock_irqsave(&priv->lock, flags); |
801 | rc = iwl_grab_restricted_access(priv); | 801 | rc = iwl_grab_nic_access(priv); |
802 | if (rc) { | 802 | if (rc) { |
803 | spin_unlock_irqrestore(&priv->lock, flags); | 803 | spin_unlock_irqrestore(&priv->lock, flags); |
804 | return rc; | 804 | return rc; |
@@ -818,10 +818,10 @@ static int iwl3945_tx_reset(struct iwl_priv *priv) | |||
818 | iwl_write_prph(priv, SCD_TXF4MF_REG, 0x000004); | 818 | iwl_write_prph(priv, SCD_TXF4MF_REG, 0x000004); |
819 | iwl_write_prph(priv, SCD_TXF5MF_REG, 0x000005); | 819 | iwl_write_prph(priv, SCD_TXF5MF_REG, 0x000005); |
820 | 820 | ||
821 | iwl_write_restricted(priv, FH_TSSR_CBB_BASE, | 821 | iwl_write_direct32(priv, FH_TSSR_CBB_BASE, |
822 | priv->hw_setting.shared_phys); | 822 | priv->hw_setting.shared_phys); |
823 | 823 | ||
824 | iwl_write_restricted(priv, FH_TSSR_MSG_CONFIG, | 824 | iwl_write_direct32(priv, FH_TSSR_MSG_CONFIG, |
825 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_SNOOP_RD_TXPD_ON | | 825 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_SNOOP_RD_TXPD_ON | |
826 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RD_TXPD_ON | | 826 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RD_TXPD_ON | |
827 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_MAX_FRAG_SIZE_128B | | 827 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_MAX_FRAG_SIZE_128B | |
@@ -830,7 +830,7 @@ static int iwl3945_tx_reset(struct iwl_priv *priv) | |||
830 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RSP_WAIT_TH | | 830 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_ORDER_RSP_WAIT_TH | |
831 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_RSP_WAIT_TH); | 831 | ALM_FH_TSSR_TX_MSG_CONFIG_REG_VAL_RSP_WAIT_TH); |
832 | 832 | ||
833 | iwl_release_restricted_access(priv); | 833 | iwl_release_nic_access(priv); |
834 | spin_unlock_irqrestore(&priv->lock, flags); | 834 | spin_unlock_irqrestore(&priv->lock, flags); |
835 | 835 | ||
836 | return 0; | 836 | return 0; |
@@ -896,7 +896,7 @@ int iwl_hw_nic_init(struct iwl_priv *priv) | |||
896 | return rc; | 896 | return rc; |
897 | } | 897 | } |
898 | 898 | ||
899 | rc = iwl_grab_restricted_access(priv); | 899 | rc = iwl_grab_nic_access(priv); |
900 | if (rc) { | 900 | if (rc) { |
901 | spin_unlock_irqrestore(&priv->lock, flags); | 901 | spin_unlock_irqrestore(&priv->lock, flags); |
902 | return rc; | 902 | return rc; |
@@ -907,7 +907,7 @@ int iwl_hw_nic_init(struct iwl_priv *priv) | |||
907 | udelay(20); | 907 | udelay(20); |
908 | iwl_set_bits_prph(priv, APMG_PCIDEV_STT_REG, | 908 | iwl_set_bits_prph(priv, APMG_PCIDEV_STT_REG, |
909 | APMG_PCIDEV_STT_VAL_L1_ACT_DIS); | 909 | APMG_PCIDEV_STT_VAL_L1_ACT_DIS); |
910 | iwl_release_restricted_access(priv); | 910 | iwl_release_nic_access(priv); |
911 | spin_unlock_irqrestore(&priv->lock, flags); | 911 | spin_unlock_irqrestore(&priv->lock, flags); |
912 | 912 | ||
913 | /* Determine HW type */ | 913 | /* Determine HW type */ |
@@ -998,13 +998,13 @@ int iwl_hw_nic_init(struct iwl_priv *priv) | |||
998 | iwl_rx_queue_update_write_ptr(priv, rxq); | 998 | iwl_rx_queue_update_write_ptr(priv, rxq); |
999 | */ | 999 | */ |
1000 | 1000 | ||
1001 | rc = iwl_grab_restricted_access(priv); | 1001 | rc = iwl_grab_nic_access(priv); |
1002 | if (rc) { | 1002 | if (rc) { |
1003 | spin_unlock_irqrestore(&priv->lock, flags); | 1003 | spin_unlock_irqrestore(&priv->lock, flags); |
1004 | return rc; | 1004 | return rc; |
1005 | } | 1005 | } |
1006 | iwl_write_restricted(priv, FH_RCSR_WPTR(0), rxq->write & ~7); | 1006 | iwl_write_direct32(priv, FH_RCSR_WPTR(0), rxq->write & ~7); |
1007 | iwl_release_restricted_access(priv); | 1007 | iwl_release_nic_access(priv); |
1008 | 1008 | ||
1009 | spin_unlock_irqrestore(&priv->lock, flags); | 1009 | spin_unlock_irqrestore(&priv->lock, flags); |
1010 | 1010 | ||
@@ -1037,7 +1037,7 @@ void iwl_hw_txq_ctx_stop(struct iwl_priv *priv) | |||
1037 | unsigned long flags; | 1037 | unsigned long flags; |
1038 | 1038 | ||
1039 | spin_lock_irqsave(&priv->lock, flags); | 1039 | spin_lock_irqsave(&priv->lock, flags); |
1040 | if (iwl_grab_restricted_access(priv)) { | 1040 | if (iwl_grab_nic_access(priv)) { |
1041 | spin_unlock_irqrestore(&priv->lock, flags); | 1041 | spin_unlock_irqrestore(&priv->lock, flags); |
1042 | iwl_hw_txq_ctx_free(priv); | 1042 | iwl_hw_txq_ctx_free(priv); |
1043 | return; | 1043 | return; |
@@ -1048,13 +1048,13 @@ void iwl_hw_txq_ctx_stop(struct iwl_priv *priv) | |||
1048 | 1048 | ||
1049 | /* reset TFD queues */ | 1049 | /* reset TFD queues */ |
1050 | for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) { | 1050 | for (queue = TFD_QUEUE_MIN; queue < TFD_QUEUE_MAX; queue++) { |
1051 | iwl_write_restricted(priv, FH_TCSR_CONFIG(queue), 0x0); | 1051 | iwl_write_direct32(priv, FH_TCSR_CONFIG(queue), 0x0); |
1052 | iwl_poll_restricted_bit(priv, FH_TSSR_TX_STATUS, | 1052 | iwl_poll_direct_bit(priv, FH_TSSR_TX_STATUS, |
1053 | ALM_FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(queue), | 1053 | ALM_FH_TSSR_TX_STATUS_REG_MSK_CHNL_IDLE(queue), |
1054 | 1000); | 1054 | 1000); |
1055 | } | 1055 | } |
1056 | 1056 | ||
1057 | iwl_release_restricted_access(priv); | 1057 | iwl_release_nic_access(priv); |
1058 | spin_unlock_irqrestore(&priv->lock, flags); | 1058 | spin_unlock_irqrestore(&priv->lock, flags); |
1059 | 1059 | ||
1060 | iwl_hw_txq_ctx_free(priv); | 1060 | iwl_hw_txq_ctx_free(priv); |
@@ -1108,7 +1108,7 @@ int iwl_hw_nic_reset(struct iwl_priv *priv) | |||
1108 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, | 1108 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, |
1109 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); | 1109 | CSR_GP_CNTRL_REG_FLAG_MAC_CLOCK_READY, 25000); |
1110 | 1110 | ||
1111 | rc = iwl_grab_restricted_access(priv); | 1111 | rc = iwl_grab_nic_access(priv); |
1112 | if (!rc) { | 1112 | if (!rc) { |
1113 | iwl_write_prph(priv, APMG_CLK_CTRL_REG, | 1113 | iwl_write_prph(priv, APMG_CLK_CTRL_REG, |
1114 | APMG_CLK_VAL_BSM_CLK_RQT); | 1114 | APMG_CLK_VAL_BSM_CLK_RQT); |
@@ -1133,7 +1133,7 @@ int iwl_hw_nic_reset(struct iwl_priv *priv) | |||
1133 | udelay(5); | 1133 | udelay(5); |
1134 | iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG, | 1134 | iwl_clear_bits_prph(priv, APMG_PS_CTRL_REG, |
1135 | APMG_PS_CTRL_VAL_RESET_REQ); | 1135 | APMG_PS_CTRL_VAL_RESET_REQ); |
1136 | iwl_release_restricted_access(priv); | 1136 | iwl_release_nic_access(priv); |
1137 | } | 1137 | } |
1138 | 1138 | ||
1139 | /* Clear the 'host command active' bit... */ | 1139 | /* Clear the 'host command active' bit... */ |
@@ -2096,18 +2096,18 @@ int iwl_hw_rxq_stop(struct iwl_priv *priv) | |||
2096 | unsigned long flags; | 2096 | unsigned long flags; |
2097 | 2097 | ||
2098 | spin_lock_irqsave(&priv->lock, flags); | 2098 | spin_lock_irqsave(&priv->lock, flags); |
2099 | rc = iwl_grab_restricted_access(priv); | 2099 | rc = iwl_grab_nic_access(priv); |
2100 | if (rc) { | 2100 | if (rc) { |
2101 | spin_unlock_irqrestore(&priv->lock, flags); | 2101 | spin_unlock_irqrestore(&priv->lock, flags); |
2102 | return rc; | 2102 | return rc; |
2103 | } | 2103 | } |
2104 | 2104 | ||
2105 | iwl_write_restricted(priv, FH_RCSR_CONFIG(0), 0); | 2105 | iwl_write_direct32(priv, FH_RCSR_CONFIG(0), 0); |
2106 | rc = iwl_poll_restricted_bit(priv, FH_RSSR_STATUS, (1 << 24), 1000); | 2106 | rc = iwl_poll_direct_bit(priv, FH_RSSR_STATUS, (1 << 24), 1000); |
2107 | if (rc < 0) | 2107 | if (rc < 0) |
2108 | IWL_ERROR("Can't stop Rx DMA.\n"); | 2108 | IWL_ERROR("Can't stop Rx DMA.\n"); |
2109 | 2109 | ||
2110 | iwl_release_restricted_access(priv); | 2110 | iwl_release_nic_access(priv); |
2111 | spin_unlock_irqrestore(&priv->lock, flags); | 2111 | spin_unlock_irqrestore(&priv->lock, flags); |
2112 | 2112 | ||
2113 | return 0; | 2113 | return 0; |
@@ -2124,21 +2124,21 @@ int iwl_hw_tx_queue_init(struct iwl_priv *priv, struct iwl_tx_queue *txq) | |||
2124 | shared_data->tx_base_ptr[txq_id] = cpu_to_le32((u32)txq->q.dma_addr); | 2124 | shared_data->tx_base_ptr[txq_id] = cpu_to_le32((u32)txq->q.dma_addr); |
2125 | 2125 | ||
2126 | spin_lock_irqsave(&priv->lock, flags); | 2126 | spin_lock_irqsave(&priv->lock, flags); |
2127 | rc = iwl_grab_restricted_access(priv); | 2127 | rc = iwl_grab_nic_access(priv); |
2128 | if (rc) { | 2128 | if (rc) { |
2129 | spin_unlock_irqrestore(&priv->lock, flags); | 2129 | spin_unlock_irqrestore(&priv->lock, flags); |
2130 | return rc; | 2130 | return rc; |
2131 | } | 2131 | } |
2132 | iwl_write_restricted(priv, FH_CBCC_CTRL(txq_id), 0); | 2132 | iwl_write_direct32(priv, FH_CBCC_CTRL(txq_id), 0); |
2133 | iwl_write_restricted(priv, FH_CBCC_BASE(txq_id), 0); | 2133 | iwl_write_direct32(priv, FH_CBCC_BASE(txq_id), 0); |
2134 | 2134 | ||
2135 | iwl_write_restricted(priv, FH_TCSR_CONFIG(txq_id), | 2135 | iwl_write_direct32(priv, FH_TCSR_CONFIG(txq_id), |
2136 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_NOINT | | 2136 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_RTC_NOINT | |
2137 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_TXF | | 2137 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_MSG_MODE_TXF | |
2138 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_IFTFD | | 2138 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_CIRQ_HOST_IFTFD | |
2139 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_ENABLE_VAL | | 2139 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CREDIT_ENABLE_VAL | |
2140 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_ENABLE); | 2140 | ALM_FH_TCSR_TX_CONFIG_REG_VAL_DMA_CHNL_ENABLE); |
2141 | iwl_release_restricted_access(priv); | 2141 | iwl_release_nic_access(priv); |
2142 | 2142 | ||
2143 | /* fake read to flush all prev. writes */ | 2143 | /* fake read to flush all prev. writes */ |
2144 | iwl_read32(priv, FH_TSSR_CBB_BASE); | 2144 | iwl_read32(priv, FH_TSSR_CBB_BASE); |