tree 5bce9bd2fd887fc5091e9bb234d2cd99c931413c
parent fcf026936c613fc6ca4685677a461100d87eec81
author John W. Linville <[EMAIL PROTECTED]> Fri, 22 Apr 2005 07:00:52 -0700
committer David S. Miller <[EMAIL PROTECTED]> Fri, 22 Apr 2005 07:00:52 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
net/tg3.c | 4 ++++
net/tg3.h | 1 +
2 files changed, 5 insertions(+)
Index: drivers/net/tg3.c
===================================================================
--- a666b7538467be00b16bcc2f33b1dcdbfdffe277/drivers/net/tg3.c (mode:100644
sha1:7ff598c9a0ca1db91b2494b8e8309aafbea01c4f)
+++ 5bce9bd2fd887fc5091e9bb234d2cd99c931413c/drivers/net/tg3.c (mode:100644
sha1:7b21b074ced947c5f0cfc565a5e08166c472dab7)
@@ -7951,6 +7951,10 @@ static int __devinit tg3_get_invariants(
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)
Index: drivers/net/tg3.h
===================================================================
--- a666b7538467be00b16bcc2f33b1dcdbfdffe277/drivers/net/tg3.h (mode:100644
sha1:820df83ec6cbd2257e0ba42641027bdbe3b7890d)
+++ 5bce9bd2fd887fc5091e9bb234d2cd99c931413c/drivers/net/tg3.h (mode:100644
sha1:0cce4044530be9c68a22c670c9becb12a3caf51c)
@@ -2101,6 +2101,7 @@ struct tg3 {
#define TG3_FLG2_HW_TSO 0x00010000
#define TG3_FLG2_SERDES_PREEMPHASIS 0x00020000
#define TG3_FLG2_5705_PLUS 0x00040000
+#define TG3_FLG2_5750_PLUS 0x00080000
u32 split_mode_max_reqs;
#define SPLIT_MODE_5704_MAX_REQ 3
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html