aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2008-07-15 01:39:03 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-15 01:39:03 -0400
commit7c62e83beb1446d690ed921beddb0dcf34c9baa9 (patch)
tree1961273dd946f6b82bb7831dbcd56a422d83c97f /drivers/net/bnx2.h
parenta2f138900d5c342742c369293edaf92d2173c92e (diff)
bnx2: Allow flexible VLAN tag settings.
Negotiate with boot code and ASF firmware to see if it can support keeping VLAN tags in the RX packets. If supported by firmware, the VLAN tag will be kept in the RX packet unless VLAN acceleration is registered. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2.h')
-rw-r--r--drivers/net/bnx2.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index efa0ca9a8fd3..7b882fd9d57f 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6670,6 +6670,7 @@ struct bnx2 {
6670#define BNX2_FLAG_USING_MSI_OR_MSIX (BNX2_FLAG_USING_MSI | \ 6670#define BNX2_FLAG_USING_MSI_OR_MSIX (BNX2_FLAG_USING_MSI | \
6671 BNX2_FLAG_USING_MSIX) 6671 BNX2_FLAG_USING_MSIX)
6672#define BNX2_FLAG_JUMBO_BROKEN 0x00000800 6672#define BNX2_FLAG_JUMBO_BROKEN 0x00000800
6673#define BNX2_FLAG_CAN_KEEP_VLAN 0x00001000
6673 6674
6674 struct bnx2_napi bnx2_napi[BNX2_MAX_MSIX_VEC]; 6675 struct bnx2_napi bnx2_napi[BNX2_MAX_MSIX_VEC];
6675 6676
@@ -6951,6 +6952,7 @@ struct fw_info {
6951#define BNX2_DRV_MSG_CODE_DIAG 0x07000000 6952#define BNX2_DRV_MSG_CODE_DIAG 0x07000000
6952#define BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL 0x09000000 6953#define BNX2_DRV_MSG_CODE_SUSPEND_NO_WOL 0x09000000
6953#define BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN 0x0b000000 6954#define BNX2_DRV_MSG_CODE_UNLOAD_LNK_DN 0x0b000000
6955#define BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE 0x0d000000
6954#define BNX2_DRV_MSG_CODE_CMD_SET_LINK 0x10000000 6956#define BNX2_DRV_MSG_CODE_CMD_SET_LINK 0x10000000
6955 6957
6956#define BNX2_DRV_MSG_DATA 0x00ff0000 6958#define BNX2_DRV_MSG_DATA 0x00ff0000
@@ -7279,6 +7281,10 @@ struct fw_info {
7279#define BNX2_FW_CAP_SIGNATURE_MASK 0xffff0000 7281#define BNX2_FW_CAP_SIGNATURE_MASK 0xffff0000
7280#define BNX2_FW_CAP_REMOTE_PHY_CAPABLE 0x00000001 7282#define BNX2_FW_CAP_REMOTE_PHY_CAPABLE 0x00000001
7281#define BNX2_FW_CAP_REMOTE_PHY_PRESENT 0x00000002 7283#define BNX2_FW_CAP_REMOTE_PHY_PRESENT 0x00000002
7284#define BNX2_FW_CAP_MFW_CAN_KEEP_VLAN 0x00000008
7285#define BNX2_FW_CAP_BC_CAN_KEEP_VLAN 0x00000010
7286#define BNX2_FW_CAP_CAN_KEEP_VLAN (BNX2_FW_CAP_BC_CAN_KEEP_VLAN | \
7287 BNX2_FW_CAP_MFW_CAN_KEEP_VLAN)
7282 7288
7283#define BNX2_RPHY_SIGNATURE 0x36c 7289#define BNX2_RPHY_SIGNATURE 0x36c
7284#define BNX2_RPHY_LOAD_SIGNATURE 0x5a5a5a5a 7290#define BNX2_RPHY_LOAD_SIGNATURE 0x5a5a5a5a