aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJohn W. Linville <linville@tuxdriver.com>2005-04-21 20:00:52 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2005-04-21 20:00:52 -0400
commit6708e5cc103ba045fca035b4d8df236ca31fb8bc (patch)
tree5bce9bd2fd887fc5091e9bb234d2cd99c931413c /drivers
parentfcf026936c613fc6ca4685677a461100d87eec81 (diff)
[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')
-rw-r--r--drivers/net/tg3.c4
-rw-r--r--drivers/net/tg3.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 7ff598c9a0ca..7b21b074ced9 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -7951,6 +7951,10 @@ static int __devinit tg3_get_invariants(struct tg3 *tp)
7951 7951
7952 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 || 7952 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 ||
7953 GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752) 7953 GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752)
7954 tp->tg3_flags2 |= TG3_FLG2_5750_PLUS;
7955
7956 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5750 ||
7957 GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5752)
7954 tp->tg3_flags2 |= TG3_FLG2_HW_TSO; 7958 tp->tg3_flags2 |= TG3_FLG2_HW_TSO;
7955 7959
7956 if (pci_find_capability(tp->pdev, PCI_CAP_ID_EXP) != 0) 7960 if (pci_find_capability(tp->pdev, PCI_CAP_ID_EXP) != 0)
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 820df83ec6cb..0cce4044530b 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2101,6 +2101,7 @@ struct tg3 {
2101#define TG3_FLG2_HW_TSO 0x00010000 2101#define TG3_FLG2_HW_TSO 0x00010000
2102#define TG3_FLG2_SERDES_PREEMPHASIS 0x00020000 2102#define TG3_FLG2_SERDES_PREEMPHASIS 0x00020000
2103#define TG3_FLG2_5705_PLUS 0x00040000 2103#define TG3_FLG2_5705_PLUS 0x00040000
2104#define TG3_FLG2_5750_PLUS 0x00080000
2104 2105
2105 u32 split_mode_max_reqs; 2106 u32 split_mode_max_reqs;
2106#define SPLIT_MODE_5704_MAX_REQ 3 2107#define SPLIT_MODE_5704_MAX_REQ 3