diff options
-rw-r--r-- | drivers/staging/et131x/et1310_jagcore.c | 8 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_mac.c | 32 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_phy.c | 4 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_pm.c | 10 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_rx.c | 26 | ||||
-rw-r--r-- | drivers/staging/et131x/et1310_tx.c | 20 | ||||
-rw-r--r-- | drivers/staging/et131x/et131x_adapter.h | 2 | ||||
-rw-r--r-- | drivers/staging/et131x/et131x_debug.c | 8 | ||||
-rw-r--r-- | drivers/staging/et131x/et131x_initpci.c | 20 | ||||
-rw-r--r-- | drivers/staging/et131x/et131x_isr.c | 6 | ||||
-rw-r--r-- | drivers/staging/et131x/et131x_netdev.c | 8 |
11 files changed, 72 insertions, 72 deletions
diff --git a/drivers/staging/et131x/et1310_jagcore.c b/drivers/staging/et131x/et1310_jagcore.c index 3b4b273496c6..403258924640 100644 --- a/drivers/staging/et131x/et1310_jagcore.c +++ b/drivers/staging/et131x/et1310_jagcore.c | |||
@@ -101,7 +101,7 @@ extern dbg_info_t *et131x_dbginfo; | |||
101 | */ | 101 | */ |
102 | void ConfigGlobalRegs(struct et131x_adapter *etdev) | 102 | void ConfigGlobalRegs(struct et131x_adapter *etdev) |
103 | { | 103 | { |
104 | struct _GLOBAL_t __iomem *pGbl = &etdev->CSRAddress->global; | 104 | struct _GLOBAL_t __iomem *pGbl = &etdev->regs->global; |
105 | 105 | ||
106 | DBG_ENTER(et131x_dbginfo); | 106 | DBG_ENTER(et131x_dbginfo); |
107 | 107 | ||
@@ -188,7 +188,7 @@ void ConfigMMCRegs(struct et131x_adapter *etdev) | |||
188 | mmc_ctrl.bits.arb_disable = 0x0; | 188 | mmc_ctrl.bits.arb_disable = 0x0; |
189 | mmc_ctrl.bits.mmc_enable = 0x1; | 189 | mmc_ctrl.bits.mmc_enable = 0x1; |
190 | 190 | ||
191 | writel(mmc_ctrl.value, &etdev->CSRAddress->mmc.mmc_ctrl.value); | 191 | writel(mmc_ctrl.value, &etdev->regs->mmc.mmc_ctrl.value); |
192 | 192 | ||
193 | DBG_LEAVE(et131x_dbginfo); | 193 | DBG_LEAVE(et131x_dbginfo); |
194 | } | 194 | } |
@@ -207,12 +207,12 @@ void et131x_enable_interrupts(struct et131x_adapter *adapter) | |||
207 | MaskValue |= 0x10000; | 207 | MaskValue |= 0x10000; |
208 | 208 | ||
209 | adapter->CachedMaskValue.value = MaskValue; | 209 | adapter->CachedMaskValue.value = MaskValue; |
210 | writel(MaskValue, &adapter->CSRAddress->global.int_mask.value); | 210 | writel(MaskValue, &adapter->regs->global.int_mask.value); |
211 | } | 211 | } |
212 | 212 | ||
213 | void et131x_disable_interrupts(struct et131x_adapter *adapter) | 213 | void et131x_disable_interrupts(struct et131x_adapter *adapter) |
214 | { | 214 | { |
215 | /* Disable all global interrupts */ | 215 | /* Disable all global interrupts */ |
216 | adapter->CachedMaskValue.value = INT_MASK_DISABLE; | 216 | adapter->CachedMaskValue.value = INT_MASK_DISABLE; |
217 | writel(INT_MASK_DISABLE, &adapter->CSRAddress->global.int_mask.value); | 217 | writel(INT_MASK_DISABLE, &adapter->regs->global.int_mask.value); |
218 | } | 218 | } |
diff --git a/drivers/staging/et131x/et1310_mac.c b/drivers/staging/et131x/et1310_mac.c index 4cb4cfc40439..9461a2d25217 100644 --- a/drivers/staging/et131x/et1310_mac.c +++ b/drivers/staging/et131x/et1310_mac.c | |||
@@ -103,7 +103,7 @@ extern dbg_info_t *et131x_dbginfo; | |||
103 | */ | 103 | */ |
104 | void ConfigMACRegs1(struct et131x_adapter *etdev) | 104 | void ConfigMACRegs1(struct et131x_adapter *etdev) |
105 | { | 105 | { |
106 | struct _MAC_t __iomem *pMac = &etdev->CSRAddress->mac; | 106 | struct _MAC_t __iomem *pMac = &etdev->regs->mac; |
107 | MAC_STATION_ADDR1_t station1; | 107 | MAC_STATION_ADDR1_t station1; |
108 | MAC_STATION_ADDR2_t station2; | 108 | MAC_STATION_ADDR2_t station2; |
109 | MAC_IPG_t ipg; | 109 | MAC_IPG_t ipg; |
@@ -182,7 +182,7 @@ void ConfigMACRegs1(struct et131x_adapter *etdev) | |||
182 | void ConfigMACRegs2(struct et131x_adapter *etdev) | 182 | void ConfigMACRegs2(struct et131x_adapter *etdev) |
183 | { | 183 | { |
184 | int32_t delay = 0; | 184 | int32_t delay = 0; |
185 | struct _MAC_t __iomem *pMac = &etdev->CSRAddress->mac; | 185 | struct _MAC_t __iomem *pMac = &etdev->regs->mac; |
186 | MAC_CFG1_t cfg1; | 186 | MAC_CFG1_t cfg1; |
187 | MAC_CFG2_t cfg2; | 187 | MAC_CFG2_t cfg2; |
188 | MAC_IF_CTRL_t ifctrl; | 188 | MAC_IF_CTRL_t ifctrl; |
@@ -190,7 +190,7 @@ void ConfigMACRegs2(struct et131x_adapter *etdev) | |||
190 | 190 | ||
191 | DBG_ENTER(et131x_dbginfo); | 191 | DBG_ENTER(et131x_dbginfo); |
192 | 192 | ||
193 | ctl.value = readl(&etdev->CSRAddress->txmac.ctl.value); | 193 | ctl.value = readl(&etdev->regs->txmac.ctl.value); |
194 | cfg1.value = readl(&pMac->cfg1.value); | 194 | cfg1.value = readl(&pMac->cfg1.value); |
195 | cfg2.value = readl(&pMac->cfg2.value); | 195 | cfg2.value = readl(&pMac->cfg2.value); |
196 | ifctrl.value = readl(&pMac->if_ctrl.value); | 196 | ifctrl.value = readl(&pMac->if_ctrl.value); |
@@ -269,7 +269,7 @@ void ConfigMACRegs2(struct et131x_adapter *etdev) | |||
269 | /* Enable TXMAC */ | 269 | /* Enable TXMAC */ |
270 | ctl.bits.txmac_en = 0x1; | 270 | ctl.bits.txmac_en = 0x1; |
271 | ctl.bits.fc_disable = 0x1; | 271 | ctl.bits.fc_disable = 0x1; |
272 | writel(ctl.value, &etdev->CSRAddress->txmac.ctl.value); | 272 | writel(ctl.value, &etdev->regs->txmac.ctl.value); |
273 | 273 | ||
274 | /* Ready to start the RXDMA/TXDMA engine */ | 274 | /* Ready to start the RXDMA/TXDMA engine */ |
275 | if (!MP_TEST_FLAG(etdev, fMP_ADAPTER_LOWER_POWER)) { | 275 | if (!MP_TEST_FLAG(etdev, fMP_ADAPTER_LOWER_POWER)) { |
@@ -285,7 +285,7 @@ void ConfigMACRegs2(struct et131x_adapter *etdev) | |||
285 | 285 | ||
286 | void ConfigRxMacRegs(struct et131x_adapter *etdev) | 286 | void ConfigRxMacRegs(struct et131x_adapter *etdev) |
287 | { | 287 | { |
288 | struct _RXMAC_t __iomem *pRxMac = &etdev->CSRAddress->rxmac; | 288 | struct _RXMAC_t __iomem *pRxMac = &etdev->regs->rxmac; |
289 | RXMAC_WOL_SA_LO_t sa_lo; | 289 | RXMAC_WOL_SA_LO_t sa_lo; |
290 | RXMAC_WOL_SA_HI_t sa_hi; | 290 | RXMAC_WOL_SA_HI_t sa_hi; |
291 | RXMAC_PF_CTRL_t pf_ctrl = { 0 }; | 291 | RXMAC_PF_CTRL_t pf_ctrl = { 0 }; |
@@ -427,7 +427,7 @@ void ConfigRxMacRegs(struct et131x_adapter *etdev) | |||
427 | 427 | ||
428 | void ConfigTxMacRegs(struct et131x_adapter *etdev) | 428 | void ConfigTxMacRegs(struct et131x_adapter *etdev) |
429 | { | 429 | { |
430 | struct _TXMAC_t __iomem *pTxMac = &etdev->CSRAddress->txmac; | 430 | struct _TXMAC_t __iomem *pTxMac = &etdev->regs->txmac; |
431 | TXMAC_CF_PARAM_t Local; | 431 | TXMAC_CF_PARAM_t Local; |
432 | 432 | ||
433 | DBG_ENTER(et131x_dbginfo); | 433 | DBG_ENTER(et131x_dbginfo); |
@@ -450,7 +450,7 @@ void ConfigTxMacRegs(struct et131x_adapter *etdev) | |||
450 | void ConfigMacStatRegs(struct et131x_adapter *etdev) | 450 | void ConfigMacStatRegs(struct et131x_adapter *etdev) |
451 | { | 451 | { |
452 | struct _MAC_STAT_t __iomem *pDevMacStat = | 452 | struct _MAC_STAT_t __iomem *pDevMacStat = |
453 | &etdev->CSRAddress->macStat; | 453 | &etdev->regs->macStat; |
454 | 454 | ||
455 | DBG_ENTER(et131x_dbginfo); | 455 | DBG_ENTER(et131x_dbginfo); |
456 | 456 | ||
@@ -581,7 +581,7 @@ void UpdateMacStatHostCounters(struct et131x_adapter *etdev) | |||
581 | { | 581 | { |
582 | struct _ce_stats_t *stats = &etdev->Stats; | 582 | struct _ce_stats_t *stats = &etdev->Stats; |
583 | struct _MAC_STAT_t __iomem *pDevMacStat = | 583 | struct _MAC_STAT_t __iomem *pDevMacStat = |
584 | &etdev->CSRAddress->macStat; | 584 | &etdev->regs->macStat; |
585 | 585 | ||
586 | stats->collisions += readl(&pDevMacStat->TNcl); | 586 | stats->collisions += readl(&pDevMacStat->TNcl); |
587 | stats->first_collision += readl(&pDevMacStat->TScl); | 587 | stats->first_collision += readl(&pDevMacStat->TScl); |
@@ -619,11 +619,11 @@ void HandleMacStatInterrupt(struct et131x_adapter *etdev) | |||
619 | /* Read the interrupt bits from the register(s). These are Clear On | 619 | /* Read the interrupt bits from the register(s). These are Clear On |
620 | * Write. | 620 | * Write. |
621 | */ | 621 | */ |
622 | Carry1.value = readl(&etdev->CSRAddress->macStat.Carry1.value); | 622 | Carry1.value = readl(&etdev->regs->macStat.Carry1.value); |
623 | Carry2.value = readl(&etdev->CSRAddress->macStat.Carry2.value); | 623 | Carry2.value = readl(&etdev->regs->macStat.Carry2.value); |
624 | 624 | ||
625 | writel(Carry1.value, &etdev->CSRAddress->macStat.Carry1.value); | 625 | writel(Carry1.value, &etdev->regs->macStat.Carry1.value); |
626 | writel(Carry2.value, &etdev->CSRAddress->macStat.Carry2.value); | 626 | writel(Carry2.value, &etdev->regs->macStat.Carry2.value); |
627 | 627 | ||
628 | /* We need to do update the host copy of all the MAC_STAT counters. | 628 | /* We need to do update the host copy of all the MAC_STAT counters. |
629 | * For each counter, check it's overflow bit. If the overflow bit is | 629 | * For each counter, check it's overflow bit. If the overflow bit is |
@@ -665,7 +665,7 @@ void HandleMacStatInterrupt(struct et131x_adapter *etdev) | |||
665 | 665 | ||
666 | void SetupDeviceForMulticast(struct et131x_adapter *etdev) | 666 | void SetupDeviceForMulticast(struct et131x_adapter *etdev) |
667 | { | 667 | { |
668 | struct _RXMAC_t __iomem *rxmac = &etdev->CSRAddress->rxmac; | 668 | struct _RXMAC_t __iomem *rxmac = &etdev->regs->rxmac; |
669 | uint32_t nIndex; | 669 | uint32_t nIndex; |
670 | uint32_t result; | 670 | uint32_t result; |
671 | uint32_t hash1 = 0; | 671 | uint32_t hash1 = 0; |
@@ -718,7 +718,7 @@ void SetupDeviceForMulticast(struct et131x_adapter *etdev) | |||
718 | } | 718 | } |
719 | 719 | ||
720 | /* Write out the new hash to the device */ | 720 | /* Write out the new hash to the device */ |
721 | pm_csr.value = readl(&etdev->CSRAddress->global.pm_csr.value); | 721 | pm_csr.value = readl(&etdev->regs->global.pm_csr.value); |
722 | if (pm_csr.bits.pm_phy_sw_coma == 0) { | 722 | if (pm_csr.bits.pm_phy_sw_coma == 0) { |
723 | writel(hash1, &rxmac->multi_hash1); | 723 | writel(hash1, &rxmac->multi_hash1); |
724 | writel(hash2, &rxmac->multi_hash2); | 724 | writel(hash2, &rxmac->multi_hash2); |
@@ -731,7 +731,7 @@ void SetupDeviceForMulticast(struct et131x_adapter *etdev) | |||
731 | 731 | ||
732 | void SetupDeviceForUnicast(struct et131x_adapter *etdev) | 732 | void SetupDeviceForUnicast(struct et131x_adapter *etdev) |
733 | { | 733 | { |
734 | struct _RXMAC_t __iomem *rxmac = &etdev->CSRAddress->rxmac; | 734 | struct _RXMAC_t __iomem *rxmac = &etdev->regs->rxmac; |
735 | RXMAC_UNI_PF_ADDR1_t uni_pf1; | 735 | RXMAC_UNI_PF_ADDR1_t uni_pf1; |
736 | RXMAC_UNI_PF_ADDR2_t uni_pf2; | 736 | RXMAC_UNI_PF_ADDR2_t uni_pf2; |
737 | RXMAC_UNI_PF_ADDR3_t uni_pf3; | 737 | RXMAC_UNI_PF_ADDR3_t uni_pf3; |
@@ -763,7 +763,7 @@ void SetupDeviceForUnicast(struct et131x_adapter *etdev) | |||
763 | uni_pf1.bits.addr1_5 = etdev->CurrentAddress[4]; | 763 | uni_pf1.bits.addr1_5 = etdev->CurrentAddress[4]; |
764 | uni_pf1.bits.addr1_6 = etdev->CurrentAddress[5]; | 764 | uni_pf1.bits.addr1_6 = etdev->CurrentAddress[5]; |
765 | 765 | ||
766 | pm_csr.value = readl(&etdev->CSRAddress->global.pm_csr.value); | 766 | pm_csr.value = readl(&etdev->regs->global.pm_csr.value); |
767 | if (pm_csr.bits.pm_phy_sw_coma == 0) { | 767 | if (pm_csr.bits.pm_phy_sw_coma == 0) { |
768 | writel(uni_pf1.value, &rxmac->uni_pf_addr1.value); | 768 | writel(uni_pf1.value, &rxmac->uni_pf_addr1.value); |
769 | writel(uni_pf2.value, &rxmac->uni_pf_addr2.value); | 769 | writel(uni_pf2.value, &rxmac->uni_pf_addr2.value); |
diff --git a/drivers/staging/et131x/et1310_phy.c b/drivers/staging/et131x/et1310_phy.c index 63a23b9e94a1..d0a3c831ca07 100644 --- a/drivers/staging/et131x/et1310_phy.c +++ b/drivers/staging/et131x/et1310_phy.c | |||
@@ -118,7 +118,7 @@ static int et131x_xcvr_init(struct et131x_adapter *adapter); | |||
118 | int PhyMiRead(struct et131x_adapter *adapter, uint8_t xcvrAddr, | 118 | int PhyMiRead(struct et131x_adapter *adapter, uint8_t xcvrAddr, |
119 | uint8_t xcvrReg, uint16_t *value) | 119 | uint8_t xcvrReg, uint16_t *value) |
120 | { | 120 | { |
121 | struct _MAC_t __iomem *mac = &adapter->CSRAddress->mac; | 121 | struct _MAC_t __iomem *mac = &adapter->regs->mac; |
122 | int status = 0; | 122 | int status = 0; |
123 | uint32_t delay; | 123 | uint32_t delay; |
124 | MII_MGMT_ADDR_t miiAddr; | 124 | MII_MGMT_ADDR_t miiAddr; |
@@ -202,7 +202,7 @@ int PhyMiRead(struct et131x_adapter *adapter, uint8_t xcvrAddr, | |||
202 | */ | 202 | */ |
203 | int MiWrite(struct et131x_adapter *adapter, uint8_t xcvrReg, uint16_t value) | 203 | int MiWrite(struct et131x_adapter *adapter, uint8_t xcvrReg, uint16_t value) |
204 | { | 204 | { |
205 | struct _MAC_t __iomem *mac = &adapter->CSRAddress->mac; | 205 | struct _MAC_t __iomem *mac = &adapter->regs->mac; |
206 | int status = 0; | 206 | int status = 0; |
207 | uint8_t xcvrAddr = adapter->Stats.xcvr_addr; | 207 | uint8_t xcvrAddr = adapter->Stats.xcvr_addr; |
208 | uint32_t delay; | 208 | uint32_t delay; |
diff --git a/drivers/staging/et131x/et1310_pm.c b/drivers/staging/et131x/et1310_pm.c index 848d6b0a1ec7..846c80b2c57a 100644 --- a/drivers/staging/et131x/et1310_pm.c +++ b/drivers/staging/et131x/et1310_pm.c | |||
@@ -125,7 +125,7 @@ void EnablePhyComa(struct et131x_adapter *etdev) | |||
125 | 125 | ||
126 | DBG_ENTER(et131x_dbginfo); | 126 | DBG_ENTER(et131x_dbginfo); |
127 | 127 | ||
128 | GlobalPmCSR.value = readl(&etdev->CSRAddress->global.pm_csr.value); | 128 | GlobalPmCSR.value = readl(&etdev->regs->global.pm_csr.value); |
129 | 129 | ||
130 | /* Save the GbE PHY speed and duplex modes. Need to restore this | 130 | /* Save the GbE PHY speed and duplex modes. Need to restore this |
131 | * when cable is plugged back in | 131 | * when cable is plugged back in |
@@ -144,11 +144,11 @@ void EnablePhyComa(struct et131x_adapter *etdev) | |||
144 | GlobalPmCSR.bits.pm_sysclk_gate = 0; | 144 | GlobalPmCSR.bits.pm_sysclk_gate = 0; |
145 | GlobalPmCSR.bits.pm_txclk_gate = 0; | 145 | GlobalPmCSR.bits.pm_txclk_gate = 0; |
146 | GlobalPmCSR.bits.pm_rxclk_gate = 0; | 146 | GlobalPmCSR.bits.pm_rxclk_gate = 0; |
147 | writel(GlobalPmCSR.value, &etdev->CSRAddress->global.pm_csr.value); | 147 | writel(GlobalPmCSR.value, &etdev->regs->global.pm_csr.value); |
148 | 148 | ||
149 | /* Program gigE PHY in to Coma mode */ | 149 | /* Program gigE PHY in to Coma mode */ |
150 | GlobalPmCSR.bits.pm_phy_sw_coma = 1; | 150 | GlobalPmCSR.bits.pm_phy_sw_coma = 1; |
151 | writel(GlobalPmCSR.value, &etdev->CSRAddress->global.pm_csr.value); | 151 | writel(GlobalPmCSR.value, &etdev->regs->global.pm_csr.value); |
152 | 152 | ||
153 | DBG_LEAVE(et131x_dbginfo); | 153 | DBG_LEAVE(et131x_dbginfo); |
154 | } | 154 | } |
@@ -163,14 +163,14 @@ void DisablePhyComa(struct et131x_adapter *etdev) | |||
163 | 163 | ||
164 | DBG_ENTER(et131x_dbginfo); | 164 | DBG_ENTER(et131x_dbginfo); |
165 | 165 | ||
166 | GlobalPmCSR.value = readl(&etdev->CSRAddress->global.pm_csr.value); | 166 | GlobalPmCSR.value = readl(&etdev->regs->global.pm_csr.value); |
167 | 167 | ||
168 | /* Disable phy_sw_coma register and re-enable JAGCore clocks */ | 168 | /* Disable phy_sw_coma register and re-enable JAGCore clocks */ |
169 | GlobalPmCSR.bits.pm_sysclk_gate = 1; | 169 | GlobalPmCSR.bits.pm_sysclk_gate = 1; |
170 | GlobalPmCSR.bits.pm_txclk_gate = 1; | 170 | GlobalPmCSR.bits.pm_txclk_gate = 1; |
171 | GlobalPmCSR.bits.pm_rxclk_gate = 1; | 171 | GlobalPmCSR.bits.pm_rxclk_gate = 1; |
172 | GlobalPmCSR.bits.pm_phy_sw_coma = 0; | 172 | GlobalPmCSR.bits.pm_phy_sw_coma = 0; |
173 | writel(GlobalPmCSR.value, &etdev->CSRAddress->global.pm_csr.value); | 173 | writel(GlobalPmCSR.value, &etdev->regs->global.pm_csr.value); |
174 | 174 | ||
175 | /* Restore the GbE PHY speed and duplex modes; | 175 | /* Restore the GbE PHY speed and duplex modes; |
176 | * Reset JAGCore; re-configure and initialize JAGCore and gigE PHY | 176 | * Reset JAGCore; re-configure and initialize JAGCore and gigE PHY |
diff --git a/drivers/staging/et131x/et1310_rx.c b/drivers/staging/et131x/et1310_rx.c index 6423552b37c2..c60e05e99a1a 100644 --- a/drivers/staging/et131x/et1310_rx.c +++ b/drivers/staging/et131x/et1310_rx.c | |||
@@ -680,7 +680,7 @@ void et131x_rfd_resources_free(struct et131x_adapter *adapter, MP_RFD *pMpRfd) | |||
680 | */ | 680 | */ |
681 | void ConfigRxDmaRegs(struct et131x_adapter *etdev) | 681 | void ConfigRxDmaRegs(struct et131x_adapter *etdev) |
682 | { | 682 | { |
683 | struct _RXDMA_t __iomem *pRxDma = &etdev->CSRAddress->rxdma; | 683 | struct _RXDMA_t __iomem *pRxDma = &etdev->regs->rxdma; |
684 | struct _rx_ring_t *pRxLocal = &etdev->RxRing; | 684 | struct _rx_ring_t *pRxLocal = &etdev->RxRing; |
685 | PFBR_DESC_t pFbrEntry; | 685 | PFBR_DESC_t pFbrEntry; |
686 | uint32_t iEntry; | 686 | uint32_t iEntry; |
@@ -817,8 +817,8 @@ void SetRxDmaTimer(struct et131x_adapter *etdev) | |||
817 | */ | 817 | */ |
818 | if ((etdev->uiLinkSpeed == TRUEPHY_SPEED_100MBPS) || | 818 | if ((etdev->uiLinkSpeed == TRUEPHY_SPEED_100MBPS) || |
819 | (etdev->uiLinkSpeed == TRUEPHY_SPEED_10MBPS)) { | 819 | (etdev->uiLinkSpeed == TRUEPHY_SPEED_10MBPS)) { |
820 | writel(0, &etdev->CSRAddress->rxdma.max_pkt_time.value); | 820 | writel(0, &etdev->regs->rxdma.max_pkt_time.value); |
821 | writel(1, &etdev->CSRAddress->rxdma.num_pkt_done.value); | 821 | writel(1, &etdev->regs->rxdma.num_pkt_done.value); |
822 | } | 822 | } |
823 | } | 823 | } |
824 | 824 | ||
@@ -833,11 +833,11 @@ void et131x_rx_dma_disable(struct et131x_adapter *etdev) | |||
833 | DBG_ENTER(et131x_dbginfo); | 833 | DBG_ENTER(et131x_dbginfo); |
834 | 834 | ||
835 | /* Setup the receive dma configuration register */ | 835 | /* Setup the receive dma configuration register */ |
836 | writel(0x00002001, &etdev->CSRAddress->rxdma.csr.value); | 836 | writel(0x00002001, &etdev->regs->rxdma.csr.value); |
837 | csr.value = readl(&etdev->CSRAddress->rxdma.csr.value); | 837 | csr.value = readl(&etdev->regs->rxdma.csr.value); |
838 | if (csr.bits.halt_status != 1) { | 838 | if (csr.bits.halt_status != 1) { |
839 | udelay(5); | 839 | udelay(5); |
840 | csr.value = readl(&etdev->CSRAddress->rxdma.csr.value); | 840 | csr.value = readl(&etdev->regs->rxdma.csr.value); |
841 | if (csr.bits.halt_status != 1) | 841 | if (csr.bits.halt_status != 1) |
842 | DBG_ERROR(et131x_dbginfo, | 842 | DBG_ERROR(et131x_dbginfo, |
843 | "RX Dma failed to enter halt state. CSR 0x%08x\n", | 843 | "RX Dma failed to enter halt state. CSR 0x%08x\n", |
@@ -857,7 +857,7 @@ void et131x_rx_dma_enable(struct et131x_adapter *etdev) | |||
857 | 857 | ||
858 | if (etdev->RegistryPhyLoopbk) | 858 | if (etdev->RegistryPhyLoopbk) |
859 | /* RxDMA is disabled for loopback operation. */ | 859 | /* RxDMA is disabled for loopback operation. */ |
860 | writel(0x1, &etdev->CSRAddress->rxdma.csr.value); | 860 | writel(0x1, &etdev->regs->rxdma.csr.value); |
861 | else { | 861 | else { |
862 | /* Setup the receive dma configuration register for normal operation */ | 862 | /* Setup the receive dma configuration register for normal operation */ |
863 | RXDMA_CSR_t csr = { 0 }; | 863 | RXDMA_CSR_t csr = { 0 }; |
@@ -878,12 +878,12 @@ void et131x_rx_dma_enable(struct et131x_adapter *etdev) | |||
878 | else if (etdev->RxRing.Fbr0BufferSize == 1024) | 878 | else if (etdev->RxRing.Fbr0BufferSize == 1024) |
879 | csr.bits.fbr0_size = 3; | 879 | csr.bits.fbr0_size = 3; |
880 | #endif | 880 | #endif |
881 | writel(csr.value, &etdev->CSRAddress->rxdma.csr.value); | 881 | writel(csr.value, &etdev->regs->rxdma.csr.value); |
882 | 882 | ||
883 | csr.value = readl(&etdev->CSRAddress->rxdma.csr.value); | 883 | csr.value = readl(&etdev->regs->rxdma.csr.value); |
884 | if (csr.bits.halt_status != 0) { | 884 | if (csr.bits.halt_status != 0) { |
885 | udelay(5); | 885 | udelay(5); |
886 | csr.value = readl(&etdev->CSRAddress->rxdma.csr.value); | 886 | csr.value = readl(&etdev->regs->rxdma.csr.value); |
887 | if (csr.bits.halt_status != 0) { | 887 | if (csr.bits.halt_status != 0) { |
888 | DBG_ERROR(et131x_dbginfo, | 888 | DBG_ERROR(et131x_dbginfo, |
889 | "RX Dma failed to exit halt state. CSR 0x%08x\n", | 889 | "RX Dma failed to exit halt state. CSR 0x%08x\n", |
@@ -978,7 +978,7 @@ PMP_RFD nic_rx_pkts(struct et131x_adapter *etdev) | |||
978 | } | 978 | } |
979 | 979 | ||
980 | writel(pRxLocal->local_psr_full.value, | 980 | writel(pRxLocal->local_psr_full.value, |
981 | &etdev->CSRAddress->rxdma.psr_full_offset.value); | 981 | &etdev->regs->rxdma.psr_full_offset.value); |
982 | 982 | ||
983 | #ifndef USE_FBR0 | 983 | #ifndef USE_FBR0 |
984 | if (ringIndex != 1) { | 984 | if (ringIndex != 1) { |
@@ -1273,7 +1273,7 @@ void et131x_handle_recv_interrupt(struct et131x_adapter *etdev) | |||
1273 | if ((PacketArrayCount == NUM_PACKETS_HANDLED) || TempUnfinishedRec) { | 1273 | if ((PacketArrayCount == NUM_PACKETS_HANDLED) || TempUnfinishedRec) { |
1274 | etdev->RxRing.UnfinishedReceives = true; | 1274 | etdev->RxRing.UnfinishedReceives = true; |
1275 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, | 1275 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, |
1276 | &etdev->CSRAddress->global.watchdog_timer); | 1276 | &etdev->regs->global.watchdog_timer); |
1277 | } else { | 1277 | } else { |
1278 | /* Watchdog timer will disable itself if appropriate. */ | 1278 | /* Watchdog timer will disable itself if appropriate. */ |
1279 | etdev->RxRing.UnfinishedReceives = false; | 1279 | etdev->RxRing.UnfinishedReceives = false; |
@@ -1290,7 +1290,7 @@ void et131x_handle_recv_interrupt(struct et131x_adapter *etdev) | |||
1290 | void nic_return_rfd(struct et131x_adapter *etdev, PMP_RFD pMpRfd) | 1290 | void nic_return_rfd(struct et131x_adapter *etdev, PMP_RFD pMpRfd) |
1291 | { | 1291 | { |
1292 | struct _rx_ring_t *pRxLocal = &etdev->RxRing; | 1292 | struct _rx_ring_t *pRxLocal = &etdev->RxRing; |
1293 | struct _RXDMA_t __iomem *pRxDma = &etdev->CSRAddress->rxdma; | 1293 | struct _RXDMA_t __iomem *pRxDma = &etdev->regs->rxdma; |
1294 | uint16_t bi = pMpRfd->iBufferIndex; | 1294 | uint16_t bi = pMpRfd->iBufferIndex; |
1295 | uint8_t ri = pMpRfd->iRingIndex; | 1295 | uint8_t ri = pMpRfd->iRingIndex; |
1296 | unsigned long flags; | 1296 | unsigned long flags; |
diff --git a/drivers/staging/et131x/et1310_tx.c b/drivers/staging/et131x/et1310_tx.c index 43f5b62ab33b..0dbb82465c3c 100644 --- a/drivers/staging/et131x/et1310_tx.c +++ b/drivers/staging/et131x/et1310_tx.c | |||
@@ -249,7 +249,7 @@ void et131x_tx_dma_memory_free(struct et131x_adapter *adapter) | |||
249 | */ | 249 | */ |
250 | void ConfigTxDmaRegs(struct et131x_adapter *etdev) | 250 | void ConfigTxDmaRegs(struct et131x_adapter *etdev) |
251 | { | 251 | { |
252 | struct _TXDMA_t __iomem *pTxDma = &etdev->CSRAddress->txdma; | 252 | struct _TXDMA_t __iomem *pTxDma = &etdev->regs->txdma; |
253 | 253 | ||
254 | DBG_ENTER(et131x_dbginfo); | 254 | DBG_ENTER(et131x_dbginfo); |
255 | 255 | ||
@@ -289,7 +289,7 @@ void et131x_tx_dma_disable(struct et131x_adapter *etdev) | |||
289 | DBG_ENTER(et131x_dbginfo); | 289 | DBG_ENTER(et131x_dbginfo); |
290 | 290 | ||
291 | /* Setup the tramsmit dma configuration register */ | 291 | /* Setup the tramsmit dma configuration register */ |
292 | writel(0x101, &etdev->CSRAddress->txdma.csr.value); | 292 | writel(0x101, &etdev->regs->txdma.csr.value); |
293 | 293 | ||
294 | DBG_LEAVE(et131x_dbginfo); | 294 | DBG_LEAVE(et131x_dbginfo); |
295 | } | 295 | } |
@@ -306,7 +306,7 @@ void et131x_tx_dma_enable(struct et131x_adapter *etdev) | |||
306 | 306 | ||
307 | if (etdev->RegistryPhyLoopbk) { | 307 | if (etdev->RegistryPhyLoopbk) { |
308 | /* TxDMA is disabled for loopback operation. */ | 308 | /* TxDMA is disabled for loopback operation. */ |
309 | writel(0x101, &etdev->CSRAddress->txdma.csr.value); | 309 | writel(0x101, &etdev->regs->txdma.csr.value); |
310 | } else { | 310 | } else { |
311 | TXDMA_CSR_t csr = { 0 }; | 311 | TXDMA_CSR_t csr = { 0 }; |
312 | 312 | ||
@@ -316,7 +316,7 @@ void et131x_tx_dma_enable(struct et131x_adapter *etdev) | |||
316 | csr.bits.sngl_epkt_mode = 1; | 316 | csr.bits.sngl_epkt_mode = 1; |
317 | csr.bits.halt = 0; | 317 | csr.bits.halt = 0; |
318 | csr.bits.cache_thrshld = etdev->RegistryDMACache; | 318 | csr.bits.cache_thrshld = etdev->RegistryDMACache; |
319 | writel(csr.value, &etdev->CSRAddress->txdma.csr.value); | 319 | writel(csr.value, &etdev->regs->txdma.csr.value); |
320 | } | 320 | } |
321 | 321 | ||
322 | DBG_LEAVE(et131x_dbginfo); | 322 | DBG_LEAVE(et131x_dbginfo); |
@@ -788,14 +788,14 @@ static int nic_send_packet(struct et131x_adapter *etdev, PMP_TCB pMpTcb) | |||
788 | 788 | ||
789 | /* Write the new write pointer back to the device. */ | 789 | /* Write the new write pointer back to the device. */ |
790 | writel(etdev->TxRing.txDmaReadyToSend.value, | 790 | writel(etdev->TxRing.txDmaReadyToSend.value, |
791 | &etdev->CSRAddress->txdma.service_request.value); | 791 | &etdev->regs->txdma.service_request.value); |
792 | 792 | ||
793 | /* For Gig only, we use Tx Interrupt coalescing. Enable the software | 793 | /* For Gig only, we use Tx Interrupt coalescing. Enable the software |
794 | * timer to wake us up if this packet isn't followed by N more. | 794 | * timer to wake us up if this packet isn't followed by N more. |
795 | */ | 795 | */ |
796 | if (etdev->uiLinkSpeed == TRUEPHY_SPEED_1000MBPS) { | 796 | if (etdev->uiLinkSpeed == TRUEPHY_SPEED_1000MBPS) { |
797 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, | 797 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, |
798 | &etdev->CSRAddress->global.watchdog_timer); | 798 | &etdev->regs->global.watchdog_timer); |
799 | } | 799 | } |
800 | 800 | ||
801 | spin_unlock_irqrestore(&etdev->SendHWLock, flags); | 801 | spin_unlock_irqrestore(&etdev->SendHWLock, flags); |
@@ -837,7 +837,7 @@ static int nic_send_packet(struct et131x_adapter *etdev, PMP_TCB pMpTcb) | |||
837 | DBG_TX_ENTER(et131x_dbginfo); | 837 | DBG_TX_ENTER(et131x_dbginfo); |
838 | 838 | ||
839 | ServiceComplete.value = | 839 | ServiceComplete.value = |
840 | readl(&etdev->CSRAddress->txdma.NewServiceComplete.value); | 840 | readl(&etdev->regs->txdma.NewServiceComplete.value); |
841 | 841 | ||
842 | /* | 842 | /* |
843 | * Attempt to fix TWO hardware bugs: | 843 | * Attempt to fix TWO hardware bugs: |
@@ -1202,7 +1202,7 @@ static int nic_send_packet(struct et131x_adapter *etdev, PMP_TCB pMpTcb) | |||
1202 | 1202 | ||
1203 | /* Write the new write pointer back to the device. */ | 1203 | /* Write the new write pointer back to the device. */ |
1204 | writel(etdev->TxRing.txDmaReadyToSend.value, | 1204 | writel(etdev->TxRing.txDmaReadyToSend.value, |
1205 | &etdev->CSRAddress->txdma.service_request.value); | 1205 | &etdev->regs->txdma.service_request.value); |
1206 | 1206 | ||
1207 | #ifdef CONFIG_ET131X_DEBUG | 1207 | #ifdef CONFIG_ET131X_DEBUG |
1208 | DumpDeviceBlock(DBG_TX_ON, etdev, 1); | 1208 | DumpDeviceBlock(DBG_TX_ON, etdev, 1); |
@@ -1213,7 +1213,7 @@ static int nic_send_packet(struct et131x_adapter *etdev, PMP_TCB pMpTcb) | |||
1213 | */ | 1213 | */ |
1214 | if (etdev->uiLinkSpeed == TRUEPHY_SPEED_1000MBPS) { | 1214 | if (etdev->uiLinkSpeed == TRUEPHY_SPEED_1000MBPS) { |
1215 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, | 1215 | writel(etdev->RegistryTxTimeInterval * NANO_IN_A_MICRO, |
1216 | &etdev->CSRAddress->global.watchdog_timer); | 1216 | &etdev->regs->global.watchdog_timer); |
1217 | } | 1217 | } |
1218 | 1218 | ||
1219 | spin_unlock_irqrestore(&etdev->SendHWLock, flags); | 1219 | spin_unlock_irqrestore(&etdev->SendHWLock, flags); |
@@ -1434,7 +1434,7 @@ static void et131x_update_tcb_list(struct et131x_adapter *etdev) | |||
1434 | PMP_TCB pMpTcb; | 1434 | PMP_TCB pMpTcb; |
1435 | 1435 | ||
1436 | ServiceComplete.value = | 1436 | ServiceComplete.value = |
1437 | readl(&etdev->CSRAddress->txdma.NewServiceComplete.value); | 1437 | readl(&etdev->regs->txdma.NewServiceComplete.value); |
1438 | 1438 | ||
1439 | /* Has the ring wrapped? Process any descriptors that do not have | 1439 | /* Has the ring wrapped? Process any descriptors that do not have |
1440 | * the same "wrap" indicator as the current completion indicator | 1440 | * the same "wrap" indicator as the current completion indicator |
diff --git a/drivers/staging/et131x/et131x_adapter.h b/drivers/staging/et131x/et131x_adapter.h index 69509d71cfc1..70a90b89c92c 100644 --- a/drivers/staging/et131x/et131x_adapter.h +++ b/drivers/staging/et131x/et131x_adapter.h | |||
@@ -248,7 +248,7 @@ struct et131x_adapter { | |||
248 | TXMAC_TXTEST_t TxMacTest; | 248 | TXMAC_TXTEST_t TxMacTest; |
249 | 249 | ||
250 | /* Pointer to the device's PCI register space */ | 250 | /* Pointer to the device's PCI register space */ |
251 | ADDRESS_MAP_t __iomem *CSRAddress; | 251 | ADDRESS_MAP_t __iomem *regs; |
252 | 252 | ||
253 | /* Registry parameters */ | 253 | /* Registry parameters */ |
254 | u8 SpeedDuplex; /* speed/duplex */ | 254 | u8 SpeedDuplex; /* speed/duplex */ |
diff --git a/drivers/staging/et131x/et131x_debug.c b/drivers/staging/et131x/et131x_debug.c index 2730b9cd3a15..4346c8223a7f 100644 --- a/drivers/staging/et131x/et131x_debug.c +++ b/drivers/staging/et131x/et131x_debug.c | |||
@@ -110,7 +110,7 @@ extern dbg_info_t *et131x_dbginfo; | |||
110 | */ | 110 | */ |
111 | void DumpTxQueueContents(int dbgLvl, struct et131x_adapter *etdev) | 111 | void DumpTxQueueContents(int dbgLvl, struct et131x_adapter *etdev) |
112 | { | 112 | { |
113 | MMC_t __iomem *mmc = &etdev->CSRAddress->mmc; | 113 | MMC_t __iomem *mmc = &etdev->regs->mmc; |
114 | uint32_t TxQueueAddr; | 114 | uint32_t TxQueueAddr; |
115 | 115 | ||
116 | if (DBG_FLAGS(et131x_dbginfo) & dbgLvl) { | 116 | if (DBG_FLAGS(et131x_dbginfo) & dbgLvl) { |
@@ -134,7 +134,7 @@ void DumpTxQueueContents(int dbgLvl, struct et131x_adapter *etdev) | |||
134 | } | 134 | } |
135 | 135 | ||
136 | DBG_PRINT("Shadow Pointers 0x%08x\n", | 136 | DBG_PRINT("Shadow Pointers 0x%08x\n", |
137 | readl(&etdev->CSRAddress->txmac.shadow_ptr.value)); | 137 | readl(&etdev->regs->txmac.shadow_ptr.value)); |
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
@@ -151,7 +151,7 @@ void DumpDeviceBlock(int dbgLvl, struct et131x_adapter *etdev, | |||
151 | { | 151 | { |
152 | uint32_t Address1, Address2; | 152 | uint32_t Address1, Address2; |
153 | uint32_t __iomem *BigDevicePointer = | 153 | uint32_t __iomem *BigDevicePointer = |
154 | (uint32_t __iomem *) etdev->CSRAddress; | 154 | (uint32_t __iomem *) etdev->regs; |
155 | const char *BlockNames[NUM_BLOCKS] = { | 155 | const char *BlockNames[NUM_BLOCKS] = { |
156 | "Global", "Tx DMA", "Rx DMA", "Tx MAC", | 156 | "Global", "Tx DMA", "Rx DMA", "Tx MAC", |
157 | "Rx MAC", "MAC", "MAC Stat", "MMC" | 157 | "Rx MAC", "MAC", "MAC Stat", "MMC" |
@@ -189,7 +189,7 @@ void DumpDeviceReg(int dbgLvl, struct et131x_adapter *etdev) | |||
189 | uint32_t Address1, Address2; | 189 | uint32_t Address1, Address2; |
190 | uint32_t Block; | 190 | uint32_t Block; |
191 | uint32_t __iomem *BigDevicePointer = | 191 | uint32_t __iomem *BigDevicePointer = |
192 | (uint32_t __iomem *) etdev->CSRAddress; | 192 | (uint32_t __iomem *) etdev->regs; |
193 | uint32_t __iomem *Pointer; | 193 | uint32_t __iomem *Pointer; |
194 | const char *BlockNames[NUM_BLOCKS] = { | 194 | const char *BlockNames[NUM_BLOCKS] = { |
195 | "Global", "Tx DMA", "Rx DMA", "Tx MAC", | 195 | "Global", "Tx DMA", "Rx DMA", "Tx MAC", |
diff --git a/drivers/staging/et131x/et131x_initpci.c b/drivers/staging/et131x/et131x_initpci.c index 5485dd7ee4ee..4d4594198621 100644 --- a/drivers/staging/et131x/et131x_initpci.c +++ b/drivers/staging/et131x/et131x_initpci.c | |||
@@ -440,7 +440,7 @@ void et131x_error_timer_handler(unsigned long data) | |||
440 | struct et131x_adapter *etdev = (struct et131x_adapter *) data; | 440 | struct et131x_adapter *etdev = (struct et131x_adapter *) data; |
441 | PM_CSR_t pm_csr; | 441 | PM_CSR_t pm_csr; |
442 | 442 | ||
443 | pm_csr.value = readl(&etdev->CSRAddress->global.pm_csr.value); | 443 | pm_csr.value = readl(&etdev->regs->global.pm_csr.value); |
444 | 444 | ||
445 | if (pm_csr.bits.pm_phy_sw_coma == 0) { | 445 | if (pm_csr.bits.pm_phy_sw_coma == 0) { |
446 | if (etdev->RegistryMACStat) | 446 | if (etdev->RegistryMACStat) |
@@ -615,12 +615,12 @@ void et131x_soft_reset(struct et131x_adapter *adapter) | |||
615 | DBG_ENTER(et131x_dbginfo); | 615 | DBG_ENTER(et131x_dbginfo); |
616 | 616 | ||
617 | /* Disable MAC Core */ | 617 | /* Disable MAC Core */ |
618 | writel(0xc00f0000, &adapter->CSRAddress->mac.cfg1.value); | 618 | writel(0xc00f0000, &adapter->regs->mac.cfg1.value); |
619 | 619 | ||
620 | /* Set everything to a reset value */ | 620 | /* Set everything to a reset value */ |
621 | writel(0x7F, &adapter->CSRAddress->global.sw_reset.value); | 621 | writel(0x7F, &adapter->regs->global.sw_reset.value); |
622 | writel(0x000f0000, &adapter->CSRAddress->mac.cfg1.value); | 622 | writel(0x000f0000, &adapter->regs->mac.cfg1.value); |
623 | writel(0x00000000, &adapter->CSRAddress->mac.cfg1.value); | 623 | writel(0x00000000, &adapter->regs->mac.cfg1.value); |
624 | 624 | ||
625 | DBG_LEAVE(et131x_dbginfo); | 625 | DBG_LEAVE(et131x_dbginfo); |
626 | } | 626 | } |
@@ -741,7 +741,7 @@ void __devexit et131x_pci_remove(struct pci_dev *pdev) | |||
741 | /* Perform device cleanup */ | 741 | /* Perform device cleanup */ |
742 | unregister_netdev(netdev); | 742 | unregister_netdev(netdev); |
743 | et131x_adapter_memory_free(adapter); | 743 | et131x_adapter_memory_free(adapter); |
744 | iounmap(adapter->CSRAddress); | 744 | iounmap(adapter->regs); |
745 | pci_dev_put(adapter->pdev); | 745 | pci_dev_put(adapter->pdev); |
746 | free_netdev(netdev); | 746 | free_netdev(netdev); |
747 | pci_release_regions(pdev); | 747 | pci_release_regions(pdev); |
@@ -915,9 +915,9 @@ int __devinit et131x_pci_setup(struct pci_dev *pdev, | |||
915 | DBG_TRACE(et131x_dbginfo, | 915 | DBG_TRACE(et131x_dbginfo, |
916 | "Mapping bus-relative registers to virtual memory...\n"); | 916 | "Mapping bus-relative registers to virtual memory...\n"); |
917 | 917 | ||
918 | adapter->CSRAddress = ioremap_nocache(pci_resource_start(pdev, 0), | 918 | adapter->regs = ioremap_nocache(pci_resource_start(pdev, 0), |
919 | pci_resource_len(pdev, 0)); | 919 | pci_resource_len(pdev, 0)); |
920 | if (adapter->CSRAddress == NULL) { | 920 | if (adapter->regs == NULL) { |
921 | DBG_ERROR(et131x_dbginfo, "Cannot map device registers\n"); | 921 | DBG_ERROR(et131x_dbginfo, "Cannot map device registers\n"); |
922 | result = -ENOMEM; | 922 | result = -ENOMEM; |
923 | goto err_free_dev; | 923 | goto err_free_dev; |
@@ -933,7 +933,7 @@ int __devinit et131x_pci_setup(struct pci_dev *pdev, | |||
933 | GlobalPmCSR.bits.pm_txclk_gate = 1; | 933 | GlobalPmCSR.bits.pm_txclk_gate = 1; |
934 | GlobalPmCSR.bits.pm_rxclk_gate = 1; | 934 | GlobalPmCSR.bits.pm_rxclk_gate = 1; |
935 | writel(GlobalPmCSR.value, | 935 | writel(GlobalPmCSR.value, |
936 | &adapter->CSRAddress->global.pm_csr.value); | 936 | &adapter->regs->global.pm_csr.value); |
937 | } | 937 | } |
938 | 938 | ||
939 | /* Issue a global reset to the et1310 */ | 939 | /* Issue a global reset to the et1310 */ |
@@ -1021,7 +1021,7 @@ out: | |||
1021 | err_mem_free: | 1021 | err_mem_free: |
1022 | et131x_adapter_memory_free(adapter); | 1022 | et131x_adapter_memory_free(adapter); |
1023 | err_iounmap: | 1023 | err_iounmap: |
1024 | iounmap(adapter->CSRAddress); | 1024 | iounmap(adapter->regs); |
1025 | err_free_dev: | 1025 | err_free_dev: |
1026 | pci_dev_put(pdev); | 1026 | pci_dev_put(pdev); |
1027 | free_netdev(netdev); | 1027 | free_netdev(netdev); |
diff --git a/drivers/staging/et131x/et131x_isr.c b/drivers/staging/et131x/et131x_isr.c index f9687b344159..478569fcab12 100644 --- a/drivers/staging/et131x/et131x_isr.c +++ b/drivers/staging/et131x/et131x_isr.c | |||
@@ -129,7 +129,7 @@ irqreturn_t et131x_isr(int irq, void *dev_id) | |||
129 | /* Get a copy of the value in the interrupt status register | 129 | /* Get a copy of the value in the interrupt status register |
130 | * so we can process the interrupting section | 130 | * so we can process the interrupting section |
131 | */ | 131 | */ |
132 | status.value = readl(&adapter->CSRAddress->global.int_status.value); | 132 | status.value = readl(&adapter->regs->global.int_status.value); |
133 | 133 | ||
134 | if (adapter->FlowControl == TxOnly || | 134 | if (adapter->FlowControl == TxOnly || |
135 | adapter->FlowControl == Both) { | 135 | adapter->FlowControl == Both) { |
@@ -168,7 +168,7 @@ irqreturn_t et131x_isr(int irq, void *dev_id) | |||
168 | if (adapter->RxRing.UnfinishedReceives) | 168 | if (adapter->RxRing.UnfinishedReceives) |
169 | status.bits.rxdma_xfr_done = 1; | 169 | status.bits.rxdma_xfr_done = 1; |
170 | else if (pMpTcb == NULL) | 170 | else if (pMpTcb == NULL) |
171 | writel(0, &adapter->CSRAddress->global.watchdog_timer); | 171 | writel(0, &adapter->regs->global.watchdog_timer); |
172 | 172 | ||
173 | status.bits.watchdog_interrupt = 0; | 173 | status.bits.watchdog_interrupt = 0; |
174 | #ifdef CONFIG_ET131X_DEBUG | 174 | #ifdef CONFIG_ET131X_DEBUG |
@@ -214,7 +214,7 @@ void et131x_isr_handler(struct work_struct *work) | |||
214 | struct et131x_adapter *etdev = | 214 | struct et131x_adapter *etdev = |
215 | container_of(work, struct et131x_adapter, task); | 215 | container_of(work, struct et131x_adapter, task); |
216 | INTERRUPT_t GlobStatus = etdev->Stats.InterruptStatus; | 216 | INTERRUPT_t GlobStatus = etdev->Stats.InterruptStatus; |
217 | ADDRESS_MAP_t __iomem *iomem = etdev->CSRAddress; | 217 | ADDRESS_MAP_t __iomem *iomem = etdev->regs; |
218 | 218 | ||
219 | /* | 219 | /* |
220 | * These first two are by far the most common. Once handled, we clear | 220 | * These first two are by far the most common. Once handled, we clear |
diff --git a/drivers/staging/et131x/et131x_netdev.c b/drivers/staging/et131x/et131x_netdev.c index 74ba1774206b..fec3f8693656 100644 --- a/drivers/staging/et131x/et131x_netdev.c +++ b/drivers/staging/et131x/et131x_netdev.c | |||
@@ -393,8 +393,8 @@ int et131x_set_packet_filter(struct et131x_adapter *adapter) | |||
393 | 393 | ||
394 | DBG_ENTER(et131x_dbginfo); | 394 | DBG_ENTER(et131x_dbginfo); |
395 | 395 | ||
396 | ctrl.value = readl(&adapter->CSRAddress->rxmac.ctrl.value); | 396 | ctrl.value = readl(&adapter->regs->rxmac.ctrl.value); |
397 | pf_ctrl.value = readl(&adapter->CSRAddress->rxmac.pf_ctrl.value); | 397 | pf_ctrl.value = readl(&adapter->regs->rxmac.pf_ctrl.value); |
398 | 398 | ||
399 | /* Default to disabled packet filtering. Enable it in the individual | 399 | /* Default to disabled packet filtering. Enable it in the individual |
400 | * case statements that require the device to filter something | 400 | * case statements that require the device to filter something |
@@ -450,8 +450,8 @@ int et131x_set_packet_filter(struct et131x_adapter *adapter) | |||
450 | * in the control reg. | 450 | * in the control reg. |
451 | */ | 451 | */ |
452 | writel(pf_ctrl.value, | 452 | writel(pf_ctrl.value, |
453 | &adapter->CSRAddress->rxmac.pf_ctrl.value); | 453 | &adapter->regs->rxmac.pf_ctrl.value); |
454 | writel(ctrl.value, &adapter->CSRAddress->rxmac.ctrl.value); | 454 | writel(ctrl.value, &adapter->regs->rxmac.ctrl.value); |
455 | } | 455 | } |
456 | 456 | ||
457 | DBG_LEAVE(et131x_dbginfo); | 457 | DBG_LEAVE(et131x_dbginfo); |