diff options
author | John W. Linville <linville@tuxdriver.com> | 2005-04-21 20:03:18 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-04-21 20:03:18 -0400 |
commit | 1b440c568e28186956ef765c69ab124401088663 (patch) | |
tree | f7d34015aaccfe11e667c36c8055ebe28cf93301 /drivers/net/tg3.c | |
parent | bb7064dc09ff90015ddc7d818dd8fefb8ca5b936 (diff) |
[TG3]: check TG3_FLG2_5750_PLUS flag to set TG3_FLG2_5705_PLUS flag
Use check of TG3_FLG2_5750_PLUS in tg3_get_invariants to set
TG3_FLG2_5705_PLUS flag.
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 | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index f47b30569192..0951a9605577 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c | |||
@@ -7928,15 +7928,14 @@ static int __devinit tg3_get_invariants(struct tg3 *tp) | |||
7928 | tp->pci_hdr_type = (cacheline_sz_reg >> 16) & 0xff; | 7928 | tp->pci_hdr_type = (cacheline_sz_reg >> 16) & 0xff; |
7929 | tp->pci_bist = (cacheline_sz_reg >> 24) & 0xff; | 7929 | tp->pci_bist = (cacheline_sz_reg >> 24) & 0xff; |
7930 | 7930 | ||
7931 | if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) || | ||
7932 | (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750) || | ||
7933 | (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752)) | ||
7934 | tp->tg3_flags2 |= TG3_FLG2_5705_PLUS; | ||
7935 | |||
7936 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || | 7931 | if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || |
7937 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) | 7932 | GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) |
7938 | tp->tg3_flags2 |= TG3_FLG2_5750_PLUS; | 7933 | tp->tg3_flags2 |= TG3_FLG2_5750_PLUS; |
7939 | 7934 | ||
7935 | if ((GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5705) || | ||
7936 | (tp->tg3_flags2 & TG3_FLG2_5750_PLUS)) | ||
7937 | tp->tg3_flags2 |= TG3_FLG2_5705_PLUS; | ||
7938 | |||
7940 | if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) | 7939 | if (tp->tg3_flags2 & TG3_FLG2_5750_PLUS) |
7941 | tp->tg3_flags2 |= TG3_FLG2_HW_TSO; | 7940 | tp->tg3_flags2 |= TG3_FLG2_HW_TSO; |
7942 | 7941 | ||