diff options
author | Vladislav Zolotarov <vladz@broadcom.com> | 2010-12-13 00:44:18 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-16 16:15:55 -0500 |
commit | e4901dde12d92b70dd13fa8b3bbc9df7a6129aab (patch) | |
tree | da436a7a43cf5f212485cc9691592d90e01478db /drivers/net/bnx2x/bnx2x.h | |
parent | 8307fa3e86a83924dd7f8310ce1e051f34986fe8 (diff) |
bnx2x: add DCB support
Adding DCB initialization and handling on 57712 FW/HW
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Shmulik Ravid-Rabinovitz <shmulikr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/bnx2x/bnx2x.h b/drivers/net/bnx2x/bnx2x.h index 475725c566d7..66b3b6055cef 100644 --- a/drivers/net/bnx2x/bnx2x.h +++ b/drivers/net/bnx2x/bnx2x.h | |||
@@ -50,6 +50,7 @@ | |||
50 | #include "bnx2x_fw_defs.h" | 50 | #include "bnx2x_fw_defs.h" |
51 | #include "bnx2x_hsi.h" | 51 | #include "bnx2x_hsi.h" |
52 | #include "bnx2x_link.h" | 52 | #include "bnx2x_link.h" |
53 | #include "bnx2x_dcb.h" | ||
53 | #include "bnx2x_stats.h" | 54 | #include "bnx2x_stats.h" |
54 | 55 | ||
55 | /* error/debug prints */ | 56 | /* error/debug prints */ |
@@ -820,6 +821,8 @@ struct bnx2x_slowpath { | |||
820 | 821 | ||
821 | u32 wb_comp; | 822 | u32 wb_comp; |
822 | u32 wb_data[4]; | 823 | u32 wb_data[4]; |
824 | /* pfc configuration for DCBX ramrod */ | ||
825 | struct flow_control_configuration pfc_config; | ||
823 | }; | 826 | }; |
824 | 827 | ||
825 | #define bnx2x_sp(bp, var) (&bp->slowpath->var) | 828 | #define bnx2x_sp(bp, var) (&bp->slowpath->var) |
@@ -1180,6 +1183,18 @@ struct bnx2x { | |||
1180 | 1183 | ||
1181 | char fw_ver[32]; | 1184 | char fw_ver[32]; |
1182 | const struct firmware *firmware; | 1185 | const struct firmware *firmware; |
1186 | /* LLDP params */ | ||
1187 | struct bnx2x_config_lldp_params lldp_config_params; | ||
1188 | |||
1189 | /* DCBX params */ | ||
1190 | struct bnx2x_config_dcbx_params dcbx_config_params; | ||
1191 | |||
1192 | struct bnx2x_dcbx_port_params dcbx_port_params; | ||
1193 | int dcb_version; | ||
1194 | |||
1195 | /* DCBX Negotation results */ | ||
1196 | struct dcbx_features dcbx_local_feat; | ||
1197 | u32 dcbx_error; | ||
1183 | }; | 1198 | }; |
1184 | 1199 | ||
1185 | /** | 1200 | /** |