diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-04-22 00:00:52 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-04-22 00:00:52 (GMT) |
commit | 6708e5cc103ba045fca035b4d8df236ca31fb8bc (patch) | |
tree | 5bce9bd2fd887fc5091e9bb234d2cd99c931413c /drivers/net/tg3.c | |
parent | fcf026936c613fc6ca4685677a461100d87eec81 (diff) | |
download | linux-6708e5cc103ba045fca035b4d8df236ca31fb8bc.tar.xz |
[TG3]: define TG3_FLG2_5750_PLUS flag
Define TG3_FLG2_5750_PLUS flag and set it in tg3_get_invariants for
ASIC_REV_5750 or ASIC_REV_5752.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r-- | drivers/net/tg3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 7ff598c..7b21b07 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -7951,6 +7951,10 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) + tp->tg3_flags2 |= TG3_FLG2_5750_PLUS; + + if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || + GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) tp->tg3_flags2 |= TG3_FLG2_HW_TSO; if (pci_find_capability(tp->pdev, PCI_CAP_ID_EXP) != 0) |