diff options
author | Matt Carlson <mcarlson@broadcom.com> | 2011-04-05 10:22:44 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-06 14:29:06 -0400 |
commit | 1407deb1a99f7ec7ed5b09798b02abea5aa44128 (patch) | |
tree | dd4fec2dc6f92f13abfbe081bc6ff21451ab488b | |
parent | de9f52300d03915846c2baab27332ec462f7f6b0 (diff) |
tg3: 5717_PLUS => 57765_PLUS
The 57765 arrived before the 5717 and has a subset of the features
supported by the 5717. This patch renames the 5717_PLUS flag so that it
can be reintroduced to designate only 5717 and later devices.
Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/tg3.c | 42 | ||||
-rw-r--r-- | drivers/net/tg3.h | 2 |
2 files changed, 22 insertions, 22 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 8ffa5afd4141..4f8976bd2b40 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -7095,7 +7095,7 @@ static int tg3_chip_reset(struct tg3 *tp) | |||
7095 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { | 7095 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { |
7096 | /* Force PCIe 1.0a mode */ | 7096 | /* Force PCIe 1.0a mode */ |
7097 | if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && | 7097 | if (GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && |
7098 | !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && | 7098 | !(tp->tg3_flags3 & TG3_FLG3_57765_PLUS) && |
7099 | tr32(TG3_PCIE_PHY_TSTCTL) == | 7099 | tr32(TG3_PCIE_PHY_TSTCTL) == |
7100 | (TG3_PCIE_PHY_TSTCTL_PCIE10 | TG3_PCIE_PHY_TSTCTL_PSCRAM)) | 7100 | (TG3_PCIE_PHY_TSTCTL_PCIE10 | TG3_PCIE_PHY_TSTCTL_PSCRAM)) |
7101 | tw32(TG3_PCIE_PHY_TSTCTL, TG3_PCIE_PHY_TSTCTL_PSCRAM); | 7101 | tw32(TG3_PCIE_PHY_TSTCTL, TG3_PCIE_PHY_TSTCTL_PSCRAM); |
@@ -7248,7 +7248,7 @@ static int tg3_chip_reset(struct tg3 *tp) | |||
7248 | if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) && | 7248 | if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) && |
7249 | tp->pci_chip_rev_id != CHIPREV_ID_5750_A0 && | 7249 | tp->pci_chip_rev_id != CHIPREV_ID_5750_A0 && |
7250 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && | 7250 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && |
7251 | !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) { | 7251 | !(tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) { |
7252 | val = tr32(0x7c00); | 7252 | val = tr32(0x7c00); |
7253 | 7253 | ||
7254 | tw32(0x7c00, val | (1 << 25)); | 7254 | tw32(0x7c00, val | (1 << 25)); |
@@ -7958,7 +7958,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
7958 | if (err) | 7958 | if (err) |
7959 | return err; | 7959 | return err; |
7960 | 7960 | ||
7961 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 7961 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
7962 | val = tr32(TG3PCI_DMA_RW_CTRL) & | 7962 | val = tr32(TG3PCI_DMA_RW_CTRL) & |
7963 | ~DMA_RWCTRL_DIS_CACHE_ALIGNMENT; | 7963 | ~DMA_RWCTRL_DIS_CACHE_ALIGNMENT; |
7964 | if (tp->pci_chip_rev_id == CHIPREV_ID_57765_A0) | 7964 | if (tp->pci_chip_rev_id == CHIPREV_ID_57765_A0) |
@@ -8126,7 +8126,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
8126 | BDINFO_FLAGS_DISABLED); | 8126 | BDINFO_FLAGS_DISABLED); |
8127 | } | 8127 | } |
8128 | 8128 | ||
8129 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 8129 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
8130 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) | 8130 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) |
8131 | val = TG3_RX_STD_MAX_SIZE_5700; | 8131 | val = TG3_RX_STD_MAX_SIZE_5700; |
8132 | else | 8132 | else |
@@ -8147,7 +8147,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
8147 | tp->rx_jumbo_pending : 0; | 8147 | tp->rx_jumbo_pending : 0; |
8148 | tw32_rx_mbox(TG3_RX_JMB_PROD_IDX_REG, tpr->rx_jmb_prod_idx); | 8148 | tw32_rx_mbox(TG3_RX_JMB_PROD_IDX_REG, tpr->rx_jmb_prod_idx); |
8149 | 8149 | ||
8150 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 8150 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
8151 | tw32(STD_REPLENISH_LWM, 32); | 8151 | tw32(STD_REPLENISH_LWM, 32); |
8152 | tw32(JMB_REPLENISH_LWM, 16); | 8152 | tw32(JMB_REPLENISH_LWM, 16); |
8153 | } | 8153 | } |
@@ -8218,7 +8218,7 @@ static int tg3_reset_hw(struct tg3 *tp, int reset_phy) | |||
8218 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 || | 8218 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 || |
8219 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || | 8219 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || |
8220 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || | 8220 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || |
8221 | (tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) { | 8221 | (tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) { |
8222 | val = tr32(TG3_RDMA_RSRVCTRL_REG); | 8222 | val = tr32(TG3_RDMA_RSRVCTRL_REG); |
8223 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) { | 8223 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) { |
8224 | val &= ~(TG3_RDMA_RSRVCTRL_TXMRGN_MASK | | 8224 | val &= ~(TG3_RDMA_RSRVCTRL_TXMRGN_MASK | |
@@ -8866,7 +8866,7 @@ static int tg3_test_interrupt(struct tg3 *tp) | |||
8866 | * Turn off MSI one shot mode. Otherwise this test has no | 8866 | * Turn off MSI one shot mode. Otherwise this test has no |
8867 | * observable way to know whether the interrupt was delivered. | 8867 | * observable way to know whether the interrupt was delivered. |
8868 | */ | 8868 | */ |
8869 | if ((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && | 8869 | if ((tp->tg3_flags3 & TG3_FLG3_57765_PLUS) && |
8870 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { | 8870 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { |
8871 | val = tr32(MSGINT_MODE) | MSGINT_MODE_ONE_SHOT_DISABLE; | 8871 | val = tr32(MSGINT_MODE) | MSGINT_MODE_ONE_SHOT_DISABLE; |
8872 | tw32(MSGINT_MODE, val); | 8872 | tw32(MSGINT_MODE, val); |
@@ -8909,7 +8909,7 @@ static int tg3_test_interrupt(struct tg3 *tp) | |||
8909 | 8909 | ||
8910 | if (intr_ok) { | 8910 | if (intr_ok) { |
8911 | /* Reenable MSI one shot mode. */ | 8911 | /* Reenable MSI one shot mode. */ |
8912 | if ((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && | 8912 | if ((tp->tg3_flags3 & TG3_FLG3_57765_PLUS) && |
8913 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { | 8913 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { |
8914 | val = tr32(MSGINT_MODE) & ~MSGINT_MODE_ONE_SHOT_DISABLE; | 8914 | val = tr32(MSGINT_MODE) & ~MSGINT_MODE_ONE_SHOT_DISABLE; |
8915 | tw32(MSGINT_MODE, val); | 8915 | tw32(MSGINT_MODE, val); |
@@ -9212,7 +9212,7 @@ static int tg3_open(struct net_device *dev) | |||
9212 | goto err_out2; | 9212 | goto err_out2; |
9213 | } | 9213 | } |
9214 | 9214 | ||
9215 | if (!(tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && | 9215 | if (!(tp->tg3_flags3 & TG3_FLG3_57765_PLUS) && |
9216 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { | 9216 | (tp->tg3_flags2 & TG3_FLG2_USING_MSI)) { |
9217 | u32 val = tr32(PCIE_TRANSACTION_CFG); | 9217 | u32 val = tr32(PCIE_TRANSACTION_CFG); |
9218 | 9218 | ||
@@ -12470,7 +12470,7 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) | |||
12470 | if (cfg2 & (1 << 18)) | 12470 | if (cfg2 & (1 << 18)) |
12471 | tp->phy_flags |= TG3_PHYFLG_SERDES_PREEMPHASIS; | 12471 | tp->phy_flags |= TG3_PHYFLG_SERDES_PREEMPHASIS; |
12472 | 12472 | ||
12473 | if (((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) || | 12473 | if (((tp->tg3_flags3 & TG3_FLG3_57765_PLUS) || |
12474 | ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 && | 12474 | ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 && |
12475 | GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX))) && | 12475 | GET_CHIP_REV(tp->pci_chip_rev_id) != CHIPREV_5784_AX))) && |
12476 | (cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN)) | 12476 | (cfg2 & NIC_SRAM_DATA_CFG_2_APD_EN)) |
@@ -12478,7 +12478,7 @@ static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp) | |||
12478 | 12478 | ||
12479 | if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) && | 12479 | if ((tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) && |
12480 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && | 12480 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && |
12481 | !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) { | 12481 | !(tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) { |
12482 | u32 cfg3; | 12482 | u32 cfg3; |
12483 | 12483 | ||
12484 | tg3_read_mem(tp, NIC_SRAM_DATA_CFG_3, &cfg3); | 12484 | tg3_read_mem(tp, NIC_SRAM_DATA_CFG_3, &cfg3); |
@@ -13335,7 +13335,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13335 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 || | 13335 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717 || |
13336 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719 || | 13336 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719 || |
13337 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) | 13337 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765) |
13338 | tp->tg3_flags3 |= TG3_FLG3_5717_PLUS; | 13338 | tp->tg3_flags3 |= TG3_FLG3_57765_PLUS; |
13339 | 13339 | ||
13340 | /* Intentionally exclude ASIC_REV_5906 */ | 13340 | /* Intentionally exclude ASIC_REV_5906 */ |
13341 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || | 13341 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || |
@@ -13344,7 +13344,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13344 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 || | 13344 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 || |
13345 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || | 13345 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || |
13346 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || | 13346 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || |
13347 | (tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) | 13347 | (tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) |
13348 | tp->tg3_flags3 |= TG3_FLG3_5755_PLUS; | 13348 | tp->tg3_flags3 |= TG3_FLG3_5755_PLUS; |
13349 | 13349 | ||
13350 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || | 13350 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || |
@@ -13376,7 +13376,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13376 | /* Determine TSO capabilities */ | 13376 | /* Determine TSO capabilities */ |
13377 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) | 13377 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) |
13378 | ; /* Do nothing. HW bug. */ | 13378 | ; /* Do nothing. HW bug. */ |
13379 | else if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) | 13379 | else if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) |
13380 | tp->tg3_flags2 |= TG3_FLG2_HW_TSO_3; | 13380 | tp->tg3_flags2 |= TG3_FLG2_HW_TSO_3; |
13381 | else if ((tp->tg3_flags3 & TG3_FLG3_5755_PLUS) || | 13381 | else if ((tp->tg3_flags3 & TG3_FLG3_5755_PLUS) || |
13382 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) | 13382 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) |
@@ -13412,7 +13412,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13412 | tp->tg3_flags2 |= TG3_FLG2_1SHOT_MSI; | 13412 | tp->tg3_flags2 |= TG3_FLG2_1SHOT_MSI; |
13413 | } | 13413 | } |
13414 | 13414 | ||
13415 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 13415 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
13416 | tp->tg3_flags |= TG3_FLAG_SUPPORT_MSIX; | 13416 | tp->tg3_flags |= TG3_FLAG_SUPPORT_MSIX; |
13417 | tp->irq_max = TG3_IRQ_MAX_VECS; | 13417 | tp->irq_max = TG3_IRQ_MAX_VECS; |
13418 | } | 13418 | } |
@@ -13431,7 +13431,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13431 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) | 13431 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5719) |
13432 | tp->tg3_flags3 |= TG3_FLG3_LRG_PROD_RING_CAP; | 13432 | tp->tg3_flags3 |= TG3_FLG3_LRG_PROD_RING_CAP; |
13433 | 13433 | ||
13434 | if ((tp->tg3_flags3 & TG3_FLG3_5717_PLUS) && | 13434 | if ((tp->tg3_flags3 & TG3_FLG3_57765_PLUS) && |
13435 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5719) | 13435 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5719) |
13436 | tp->tg3_flags3 |= TG3_FLG3_USE_JUMBO_BDFLAG; | 13436 | tp->tg3_flags3 |= TG3_FLG3_USE_JUMBO_BDFLAG; |
13437 | 13437 | ||
@@ -13637,7 +13637,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13637 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 || | 13637 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5761 || |
13638 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || | 13638 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5785 || |
13639 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || | 13639 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57780 || |
13640 | (tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) | 13640 | (tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) |
13641 | tp->tg3_flags |= TG3_FLAG_CPMU_PRESENT; | 13641 | tp->tg3_flags |= TG3_FLAG_CPMU_PRESENT; |
13642 | 13642 | ||
13643 | /* Set up tp->grc_local_ctrl before calling tg_power_up(). | 13643 | /* Set up tp->grc_local_ctrl before calling tg_power_up(). |
@@ -13716,7 +13716,7 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
13716 | !(tp->phy_flags & TG3_PHYFLG_IS_FET) && | 13716 | !(tp->phy_flags & TG3_PHYFLG_IS_FET) && |
13717 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && | 13717 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_5785 && |
13718 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_57780 && | 13718 | GET_ASIC_REV(tp->pci_chip_rev_id) != ASIC_REV_57780 && |
13719 | !(tp->tg3_flags3 & TG3_FLG3_5717_PLUS)) { | 13719 | !(tp->tg3_flags3 & TG3_FLG3_57765_PLUS)) { |
13720 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || | 13720 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5755 || |
13721 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787 || | 13721 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787 || |
13722 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 || | 13722 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5784 || |
@@ -14052,7 +14052,7 @@ static u32 __devinit tg3_calc_dma_bndry(struct tg3 *tp, u32 val) | |||
14052 | #endif | 14052 | #endif |
14053 | #endif | 14053 | #endif |
14054 | 14054 | ||
14055 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 14055 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
14056 | val = goal ? 0 : DMA_RWCTRL_DIS_CACHE_ALIGNMENT; | 14056 | val = goal ? 0 : DMA_RWCTRL_DIS_CACHE_ALIGNMENT; |
14057 | goto out; | 14057 | goto out; |
14058 | } | 14058 | } |
@@ -14269,7 +14269,7 @@ static int __devinit tg3_test_dma(struct tg3 *tp) | |||
14269 | 14269 | ||
14270 | tp->dma_rwctrl = tg3_calc_dma_bndry(tp, tp->dma_rwctrl); | 14270 | tp->dma_rwctrl = tg3_calc_dma_bndry(tp, tp->dma_rwctrl); |
14271 | 14271 | ||
14272 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) | 14272 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) |
14273 | goto out; | 14273 | goto out; |
14274 | 14274 | ||
14275 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { | 14275 | if (tp->tg3_flags2 & TG3_FLG2_PCI_EXPRESS) { |
@@ -14444,7 +14444,7 @@ out_nofree: | |||
14444 | 14444 | ||
14445 | static void __devinit tg3_init_bufmgr_config(struct tg3 *tp) | 14445 | static void __devinit tg3_init_bufmgr_config(struct tg3 *tp) |
14446 | { | 14446 | { |
14447 | if (tp->tg3_flags3 & TG3_FLG3_5717_PLUS) { | 14447 | if (tp->tg3_flags3 & TG3_FLG3_57765_PLUS) { |
14448 | tp->bufmgr_config.mbuf_read_dma_low_water = | 14448 | tp->bufmgr_config.mbuf_read_dma_low_water = |
14449 | DEFAULT_MB_RDMA_LOW_WATER_5705; | 14449 | DEFAULT_MB_RDMA_LOW_WATER_5705; |
14450 | tp->bufmgr_config.mbuf_mac_rx_low_water = | 14450 | tp->bufmgr_config.mbuf_mac_rx_low_water = |
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h index 4c498ed66059..6f34db5d7e5e 100644 --- a/drivers/net/tg3.h +++ b/drivers/net/tg3.h | |||
@@ -2915,7 +2915,7 @@ struct tg3 { | |||
2915 | #define TG3_FLG3_SHORT_DMA_BUG 0x00200000 | 2915 | #define TG3_FLG3_SHORT_DMA_BUG 0x00200000 |
2916 | #define TG3_FLG3_USE_JUMBO_BDFLAG 0x00400000 | 2916 | #define TG3_FLG3_USE_JUMBO_BDFLAG 0x00400000 |
2917 | #define TG3_FLG3_L1PLLPD_EN 0x00800000 | 2917 | #define TG3_FLG3_L1PLLPD_EN 0x00800000 |
2918 | #define TG3_FLG3_5717_PLUS 0x01000000 | 2918 | #define TG3_FLG3_57765_PLUS 0x01000000 |
2919 | #define TG3_FLG3_APE_HAS_NCSI 0x02000000 | 2919 | #define TG3_FLG3_APE_HAS_NCSI 0x02000000 |
2920 | 2920 | ||
2921 | struct timer_list timer; | 2921 | struct timer_list timer; |