aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/tg3.c')
-rw-r--r--drivers/net/tg3.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c
index 40f52897cf9b..fe5c565a5284 100644
--- a/drivers/net/tg3.c
+++ b/drivers/net/tg3.c
@@ -8306,14 +8306,24 @@ static int tg3_test_memory(struct tg3 *tp)
8306 { 0x00008000, 0x02000}, 8306 { 0x00008000, 0x02000},
8307 { 0x00010000, 0x0e000}, 8307 { 0x00010000, 0x0e000},
8308 { 0xffffffff, 0x00000} 8308 { 0xffffffff, 0x00000}
8309 }, mem_tbl_5755[] = {
8310 { 0x00000200, 0x00008},
8311 { 0x00004000, 0x00800},
8312 { 0x00006000, 0x00800},
8313 { 0x00008000, 0x02000},
8314 { 0x00010000, 0x0c000},
8315 { 0xffffffff, 0x00000}
8309 }; 8316 };
8310 struct mem_entry *mem_tbl; 8317 struct mem_entry *mem_tbl;
8311 int err = 0; 8318 int err = 0;
8312 int i; 8319 int i;
8313 8320
8314 if (tp->tg3_flags2 & TG3_FLG2_5705_PLUS) 8321 if (tp->tg3_flags2 & TG3_FLG2_5705_PLUS) {
8315 mem_tbl = mem_tbl_5705; 8322 if (GET_ASIC_REV(tp->pci_chip_rev_id) == ASIC_REV_5787)
8316 else 8323 mem_tbl = mem_tbl_5755;
8324 else
8325 mem_tbl = mem_tbl_5705;
8326 } else
8317 mem_tbl = mem_tbl_570x; 8327 mem_tbl = mem_tbl_570x;
8318 8328
8319 for (i = 0; mem_tbl[i].offset != 0xffffffff; i++) { 8329 for (i = 0; mem_tbl[i].offset != 0xffffffff; i++) {