aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/bnx2x.h4
-rw-r--r--drivers/net/bnx2x_fw_defs.h7
-rw-r--r--drivers/net/bnx2x_hsi.h10
-rw-r--r--drivers/net/bnx2x_init_ops.h13
-rw-r--r--drivers/net/bnx2x_main.c2
-rw-r--r--firmware/Makefile2
-rw-r--r--firmware/WHENCE6
7 files changed, 28 insertions, 16 deletions
diff --git a/drivers/net/bnx2x.h b/drivers/net/bnx2x.h
index 602ab86b6392..d997d8472ee5 100644
--- a/drivers/net/bnx2x.h
+++ b/drivers/net/bnx2x.h
@@ -1,6 +1,6 @@
1/* bnx2x.h: Broadcom Everest network driver. 1/* bnx2x.h: Broadcom Everest network driver.
2 * 2 *
3 * Copyright (c) 2007-2009 Broadcom Corporation 3 * Copyright (c) 2007-2010 Broadcom Corporation
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
@@ -130,7 +130,7 @@
130 offset, len32); \ 130 offset, len32); \
131 } while (0) 131 } while (0)
132 132
133#define VIRT_WR_DMAE_LEN(bp, data, addr, len32) \ 133#define VIRT_WR_DMAE_LEN(bp, data, addr, len32, le32_swap) \
134 do { \ 134 do { \
135 memcpy(GUNZIP_BUF(bp), data, (len32) * 4); \ 135 memcpy(GUNZIP_BUF(bp), data, (len32) * 4); \
136 bnx2x_write_big_buf_wb(bp, addr, len32); \ 136 bnx2x_write_big_buf_wb(bp, addr, len32); \
diff --git a/drivers/net/bnx2x_fw_defs.h b/drivers/net/bnx2x_fw_defs.h
index 931dcace5628..08d71bf438d6 100644
--- a/drivers/net/bnx2x_fw_defs.h
+++ b/drivers/net/bnx2x_fw_defs.h
@@ -1,6 +1,6 @@
1/* bnx2x_fw_defs.h: Broadcom Everest network driver. 1/* bnx2x_fw_defs.h: Broadcom Everest network driver.
2 * 2 *
3 * Copyright (c) 2007-2009 Broadcom Corporation 3 * Copyright (c) 2007-2010 Broadcom Corporation
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
@@ -471,6 +471,11 @@
471 471
472 472
473/* Host coalescing constants */ 473/* Host coalescing constants */
474#define HC_IGU_BC_MODE 0
475#define HC_IGU_NBC_MODE 1
476
477#define HC_REGULAR_SEGMENT 0
478#define HC_DEFAULT_SEGMENT 1
474 479
475/* index numbers */ 480/* index numbers */
476#define HC_USTORM_DEF_SB_NUM_INDICES 8 481#define HC_USTORM_DEF_SB_NUM_INDICES 8
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h
index 52585338ada8..760069345b11 100644
--- a/drivers/net/bnx2x_hsi.h
+++ b/drivers/net/bnx2x_hsi.h
@@ -1,6 +1,6 @@
1/* bnx2x_hsi.h: Broadcom Everest network driver. 1/* bnx2x_hsi.h: Broadcom Everest network driver.
2 * 2 *
3 * Copyright (c) 2007-2009 Broadcom Corporation 3 * Copyright (c) 2007-2010 Broadcom Corporation
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
@@ -1261,7 +1261,7 @@ struct host_func_stats {
1261 1261
1262#define BCM_5710_FW_MAJOR_VERSION 5 1262#define BCM_5710_FW_MAJOR_VERSION 5
1263#define BCM_5710_FW_MINOR_VERSION 2 1263#define BCM_5710_FW_MINOR_VERSION 2
1264#define BCM_5710_FW_REVISION_VERSION 7 1264#define BCM_5710_FW_REVISION_VERSION 13
1265#define BCM_5710_FW_ENGINEERING_VERSION 0 1265#define BCM_5710_FW_ENGINEERING_VERSION 0
1266#define BCM_5710_FW_COMPILE_FLAGS 1 1266#define BCM_5710_FW_COMPILE_FLAGS 1
1267 1267
@@ -2433,8 +2433,10 @@ struct common_ramrod_eth_rx_cqe {
2433 u8 ramrod_type; 2433 u8 ramrod_type;
2434#define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x1<<0) 2434#define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x1<<0)
2435#define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0 2435#define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0
2436#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x7F<<1) 2436#define COMMON_RAMROD_ETH_RX_CQE_ERROR (0x1<<1)
2437#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 1 2437#define COMMON_RAMROD_ETH_RX_CQE_ERROR_SHIFT 1
2438#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x3F<<2)
2439#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 2
2438 u8 conn_type; 2440 u8 conn_type;
2439 __le16 reserved1; 2441 __le16 reserved1;
2440 __le32 conn_and_cmd_data; 2442 __le32 conn_and_cmd_data;
diff --git a/drivers/net/bnx2x_init_ops.h b/drivers/net/bnx2x_init_ops.h
index 38b970a14fd7..2b1363a6fe78 100644
--- a/drivers/net/bnx2x_init_ops.h
+++ b/drivers/net/bnx2x_init_ops.h
@@ -2,7 +2,7 @@
2 * Static functions needed during the initialization. 2 * Static functions needed during the initialization.
3 * This file is "included" in bnx2x_main.c. 3 * This file is "included" in bnx2x_main.c.
4 * 4 *
5 * Copyright (c) 2007-2009 Broadcom Corporation 5 * Copyright (c) 2007-2010 Broadcom Corporation
6 * 6 *
7 * This program is free software; you can redistribute it and/or modify 7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by 8 * it under the terms of the GNU General Public License as published by
@@ -138,11 +138,16 @@ static void bnx2x_write_big_buf_wb(struct bnx2x *bp, u32 addr, u32 len)
138static void bnx2x_init_wr_wb(struct bnx2x *bp, u32 addr, const u32 *data, 138static void bnx2x_init_wr_wb(struct bnx2x *bp, u32 addr, const u32 *data,
139 u32 len) 139 u32 len)
140{ 140{
141 const u32 *old_data = data;
142
141 data = (const u32 *)bnx2x_sel_blob(bp, addr, (const u8 *)data); 143 data = (const u32 *)bnx2x_sel_blob(bp, addr, (const u8 *)data);
142 144
143 if (bp->dmae_ready) 145 if (bp->dmae_ready) {
144 VIRT_WR_DMAE_LEN(bp, data, addr, len); 146 if (old_data != data)
145 else 147 VIRT_WR_DMAE_LEN(bp, data, addr, len, 1);
148 else
149 VIRT_WR_DMAE_LEN(bp, data, addr, len, 0);
150 } else
146 bnx2x_init_ind_wr(bp, addr, data, len); 151 bnx2x_init_ind_wr(bp, addr, data, len);
147} 152}
148 153
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 24fe083ee1be..164a5e875d4f 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -1,6 +1,6 @@
1/* bnx2x_main.c: Broadcom Everest network driver. 1/* bnx2x_main.c: Broadcom Everest network driver.
2 * 2 *
3 * Copyright (c) 2007-2009 Broadcom Corporation 3 * Copyright (c) 2007-2010 Broadcom Corporation
4 * 4 *
5 * This program is free software; you can redistribute it and/or modify 5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by 6 * it under the terms of the GNU General Public License as published by
diff --git a/firmware/Makefile b/firmware/Makefile
index 1c0be73c8082..8af0fc7210b1 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -32,7 +32,7 @@ fw-shipped-$(CONFIG_ADAPTEC_STARFIRE) += adaptec/starfire_rx.bin \
32 adaptec/starfire_tx.bin 32 adaptec/starfire_tx.bin
33fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin 33fw-shipped-$(CONFIG_ATARI_DSP56K) += dsp56k/bootstrap.bin
34fw-shipped-$(CONFIG_ATM_AMBASSADOR) += atmsar11.fw 34fw-shipped-$(CONFIG_ATM_AMBASSADOR) += atmsar11.fw
35fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.2.7.0.fw bnx2x-e1h-5.2.7.0.fw 35fw-shipped-$(CONFIG_BNX2X) += bnx2x-e1-5.2.13.0.fw bnx2x-e1h-5.2.13.0.fw
36fw-shipped-$(CONFIG_BNX2) += bnx2/bnx2-mips-09-5.0.0.j9.fw \ 36fw-shipped-$(CONFIG_BNX2) += bnx2/bnx2-mips-09-5.0.0.j9.fw \
37 bnx2/bnx2-rv2p-09-5.0.0.j10.fw \ 37 bnx2/bnx2-rv2p-09-5.0.0.j10.fw \
38 bnx2/bnx2-rv2p-09ax-5.0.0.j10.fw \ 38 bnx2/bnx2-rv2p-09ax-5.0.0.j10.fw \
diff --git a/firmware/WHENCE b/firmware/WHENCE
index ac174feda7cb..e8e550fa2423 100644
--- a/firmware/WHENCE
+++ b/firmware/WHENCE
@@ -679,11 +679,11 @@ Found in hex form in kernel source.
679 679
680Driver: bnx2x: Broadcom Everest 680Driver: bnx2x: Broadcom Everest
681 681
682File: bnx2x-e1-5.2.7.0.fw.ihex 682File: bnx2x-e1-5.2.13.0.fw
683File: bnx2x-e1h-5.2.7.0.fw.ihex 683File: bnx2x-e1h-5.2.13.0.fw
684 684
685License: 685License:
686 Copyright (c) 2007-2009 Broadcom Corporation 686 Copyright (c) 2007-2010 Broadcom Corporation
687 687
688 This file contains firmware data derived from proprietary unpublished 688 This file contains firmware data derived from proprietary unpublished
689 source code, Copyright (c) 2007-2009 Broadcom Corporation. 689 source code, Copyright (c) 2007-2009 Broadcom Corporation.