[PATCH] : define TG3_FLG2_5750_PLUS flag

Linux Kernel Mailing List <[email protected]> Tue, 24 May 2005 12:38:33 +0000
Newsgroups gmane.linux.kernel.commits.2-4
Message-ID <[email protected]>
ChangeSet 1.1531, 2005/05/24 09:38:33-03:00, [email protected]

	[PATCH] : define TG3_FLG2_5750_PLUS flag
	
	[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]>



 tg3.c |    4 ++++
 tg3.h |    1 +
 2 files changed, 5 insertions(+)


diff -Nru a/drivers/net/tg3.c b/drivers/net/tg3.c
--- a/drivers/net/tg3.c	2005-05-24 14:04:47 -07:00
+++ b/drivers/net/tg3.c	2005-05-24 14:04:47 -07:00
@@ -7916,6 +7916,10 @@
 
 	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)
diff -Nru a/drivers/net/tg3.h b/drivers/net/tg3.h
--- a/drivers/net/tg3.h	2005-05-24 14:04:47 -07:00
+++ b/drivers/net/tg3.h	2005-05-24 14:04:47 -07:00
@@ -2115,6 +2115,7 @@
 #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