bnx2x: Initialization structure

The TPA initialization is part of the FW internal memory initialization
and so it is moved to the appropriate function

Signed-off-by: Yitchak Gertner <gertner@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Yitchak Gertner and committed by David S. Miller 3cdf1db7 46230476

+11 -11
+11 -11
drivers/net/bnx2x_main.c
··· 4606 4606 { 4607 4607 int i; 4608 4608 4609 + if (bp->flags & TPA_ENABLE_FLAG) { 4610 + struct tstorm_eth_tpa_exist tpa = {0}; 4611 + 4612 + tpa.tpa_exist = 1; 4613 + 4614 + REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_TPA_EXIST_OFFSET, 4615 + ((u32 *)&tpa)[0]); 4616 + REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_TPA_EXIST_OFFSET + 4, 4617 + ((u32 *)&tpa)[1]); 4618 + } 4619 + 4609 4620 /* Zero this manually as its initialization is 4610 4621 currently missing in the initTool */ 4611 4622 for (i = 0; i < (USTORM_AGG_DATA_SIZE >> 2); i++) ··· 5375 5364 REG_RD(bp, PXP2_REG_PXP2_INT_STS_CLR_0); 5376 5365 5377 5366 enable_blocks_attention(bp); 5378 - 5379 - if (bp->flags & TPA_ENABLE_FLAG) { 5380 - struct tstorm_eth_tpa_exist tmp = {0}; 5381 - 5382 - tmp.tpa_exist = 1; 5383 - 5384 - REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_TPA_EXIST_OFFSET, 5385 - ((u32 *)&tmp)[0]); 5386 - REG_WR(bp, BAR_TSTRORM_INTMEM + TSTORM_TPA_EXIST_OFFSET + 4, 5387 - ((u32 *)&tmp)[1]); 5388 - } 5389 5367 5390 5368 if (!BP_NOMCP(bp)) { 5391 5369 bnx2x_acquire_phy_lock(bp);