projects/linux·commit 6708e5cc

[TG3]: define TG3_FLG2_5750_PLUS flag

6708e5cc · John W. Linville <[email protected]> · 2005-04-21 17:00:52 -07:00

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]>
Commit
6708e5cc103ba045fca035b4d8df236ca31fb8bc
Parents
fcf02693

Changes

2 files changed · +5 −0

FileStatusAddDelContent
drivers/net/tg3.cmodified+4−0View file
drivers/net/tg3.hmodified+1−0View file

drivers/net/tg3.c

View file
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)

drivers/net/tg3.h

View file
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 820df83..0cce404 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -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