aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/tg3.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 7a36bf4dc968..44ac9e233bef 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -10659,12 +10659,27 @@ static int tg3_test_memory(struct tg3 *tp)
10659 { 0x00008000, 0x01000}, 10659 { 0x00008000, 0x01000},
10660 { 0x00010000, 0x01000}, 10660 { 0x00010000, 0x01000},
10661 { 0xffffffff, 0x00000} 10661 { 0xffffffff, 0x00000}
10662 }, mem_tbl_5717[] = {
10663 { 0x00000200, 0x00008},
10664 { 0x00010000, 0x0a000},
10665 { 0x00020000, 0x13c00},
10666 { 0xffffffff, 0x00000}
10667 }, mem_tbl_57765[] = {
10668 { 0x00000200, 0x00008},
10669 { 0x00004000, 0x00800},
10670 { 0x00006000, 0x09800},
10671 { 0x00010000, 0x0a000},
10672 { 0xffffffff, 0x00000}
10662 }; 10673 };
10663 struct mem_entry *mem_tbl; 10674 struct mem_entry *mem_tbl;
10664 int err = 0; 10675 int err = 0;
10665 int i; 10676 int i;
10666 10677
10667 if (tp->tg3_flags3 & TG3_FLG3_5755_PLUS) 10678 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5717)
10679 mem_tbl = mem_tbl_5717;
10680 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_57765)
10681 mem_tbl = mem_tbl_57765;
10682 else if (tp->tg3_flags3 & TG3_FLG3_5755_PLUS)
10668 mem_tbl = mem_tbl_5755; 10683 mem_tbl = mem_tbl_5755;
10669 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906) 10684 else if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5906)
10670 mem_tbl = mem_tbl_5906; 10685 mem_tbl = mem_tbl_5906;