aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_hsi.h
diff options
context:
space:
mode:
authorAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
committerAndrea Bastoni <bastoni@cs.unc.edu>2010-05-30 19:16:45 -0400
commitada47b5fe13d89735805b566185f4885f5a3f750 (patch)
tree644b88f8a71896307d71438e9b3af49126ffb22b /drivers/net/bnx2x_hsi.h
parent43e98717ad40a4ae64545b5ba047c7b86aa44f4f (diff)
parent3280f21d43ee541f97f8cda5792150d2dbec20d5 (diff)
Merge branch 'wip-2.6.34' into old-private-masterarchived-private-master
Diffstat (limited to 'drivers/net/bnx2x_hsi.h')
-rw-r--r--drivers/net/bnx2x_hsi.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h
index 8e2261fad485..760069345b11 100644
--- a/drivers/net/bnx2x_hsi.h
+++ b/drivers/net/bnx2x_hsi.h
@@ -1,12 +1,26 @@
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
7 * the Free Software Foundation. 7 * the Free Software Foundation.
8 */ 8 */
9 9
10struct license_key {
11 u32 reserved[6];
12
13#if defined(__BIG_ENDIAN)
14 u16 max_iscsi_init_conn;
15 u16 max_iscsi_trgt_conn;
16#elif defined(__LITTLE_ENDIAN)
17 u16 max_iscsi_trgt_conn;
18 u16 max_iscsi_init_conn;
19#endif
20
21 u32 reserved_a[6];
22};
23
10 24
11#define PORT_0 0 25#define PORT_0 0
12#define PORT_1 1 26#define PORT_1 1
@@ -250,6 +264,7 @@ struct port_hw_cfg { /* port 0: 0x12c port 1: 0x2bc */
250#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SFX7101 0x00000800 264#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_SFX7101 0x00000800
251#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727 0x00000900 265#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727 0x00000900
252#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727_NOC 0x00000a00 266#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM8727_NOC 0x00000a00
267#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_BCM84823 0x00000b00
253#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_FAILURE 0x0000fd00 268#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_FAILURE 0x0000fd00
254#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN 0x0000ff00 269#define PORT_HW_CFG_XGXS_EXT_PHY_TYPE_NOT_CONN 0x0000ff00
255 270
@@ -881,7 +896,7 @@ struct shmem_region { /* SharedMem Offset (size) */
881 896
882 struct shm_dev_info dev_info; /* 0x8 (0x438) */ 897 struct shm_dev_info dev_info; /* 0x8 (0x438) */
883 898
884 u8 reserved[52*PORT_MAX]; 899 struct license_key drv_lic_key[PORT_MAX]; /* 0x440 (52*2=0x68) */
885 900
886 /* FW information (for internal FW use) */ 901 /* FW information (for internal FW use) */
887 u32 fw_info_fio_offset; /* 0x4a8 (0x4) */ 902 u32 fw_info_fio_offset; /* 0x4a8 (0x4) */
@@ -1245,8 +1260,8 @@ struct host_func_stats {
1245 1260
1246 1261
1247#define BCM_5710_FW_MAJOR_VERSION 5 1262#define BCM_5710_FW_MAJOR_VERSION 5
1248#define BCM_5710_FW_MINOR_VERSION 0 1263#define BCM_5710_FW_MINOR_VERSION 2
1249#define BCM_5710_FW_REVISION_VERSION 21 1264#define BCM_5710_FW_REVISION_VERSION 13
1250#define BCM_5710_FW_ENGINEERING_VERSION 0 1265#define BCM_5710_FW_ENGINEERING_VERSION 0
1251#define BCM_5710_FW_COMPILE_FLAGS 1 1266#define BCM_5710_FW_COMPILE_FLAGS 1
1252 1267
@@ -2418,8 +2433,10 @@ struct common_ramrod_eth_rx_cqe {
2418 u8 ramrod_type; 2433 u8 ramrod_type;
2419#define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x1<<0) 2434#define COMMON_RAMROD_ETH_RX_CQE_TYPE (0x1<<0)
2420#define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0 2435#define COMMON_RAMROD_ETH_RX_CQE_TYPE_SHIFT 0
2421#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x7F<<1) 2436#define COMMON_RAMROD_ETH_RX_CQE_ERROR (0x1<<1)
2422#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
2423 u8 conn_type; 2440 u8 conn_type;
2424 __le16 reserved1; 2441 __le16 reserved1;
2425 __le32 conn_and_cmd_data; 2442 __le32 conn_and_cmd_data;