aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlcnic/qlcnic.h
diff options
context:
space:
mode:
authorSony Chacko <sony.chacko@qlogic.com>2011-04-28 07:48:19 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-29 16:00:00 -0400
commit7e610caaa5b32d3be9216f040f178e4a23b678b2 (patch)
tree993a027d6619dfe2ad3ca2d4e223a08a710e7260 /drivers/net/qlcnic/qlcnic.h
parentf94bc1e70281c5a587049015af8f3e024d45ad66 (diff)
qlcnic: Support for GBE port settings
Enable setting speed and auto negotiation parameters for GbE ports. Hardware do not support half duplex setting currently. o Update driver version to 5.0.17. Signed-off-by: Sony Chacko <sony.chacko@qlogic.com> Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlcnic/qlcnic.h')
-rw-r--r--drivers/net/qlcnic/qlcnic.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/qlcnic/qlcnic.h b/drivers/net/qlcnic/qlcnic.h
index 1934ed9a1aad..f729363b3fc3 100644
--- a/drivers/net/qlcnic/qlcnic.h
+++ b/drivers/net/qlcnic/qlcnic.h
@@ -36,8 +36,8 @@
36 36
37#define _QLCNIC_LINUX_MAJOR 5 37#define _QLCNIC_LINUX_MAJOR 5
38#define _QLCNIC_LINUX_MINOR 0 38#define _QLCNIC_LINUX_MINOR 0
39#define _QLCNIC_LINUX_SUBVERSION 16 39#define _QLCNIC_LINUX_SUBVERSION 17
40#define QLCNIC_LINUX_VERSIONID "5.0.16" 40#define QLCNIC_LINUX_VERSIONID "5.0.17"
41#define QLCNIC_DRV_IDC_VER 0x01 41#define QLCNIC_DRV_IDC_VER 0x01
42#define QLCNIC_DRIVER_VERSION ((_QLCNIC_LINUX_MAJOR << 16) |\ 42#define QLCNIC_DRIVER_VERSION ((_QLCNIC_LINUX_MAJOR << 16) |\
43 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION)) 43 (_QLCNIC_LINUX_MINOR << 8) | (_QLCNIC_LINUX_SUBVERSION))
@@ -573,8 +573,10 @@ struct qlcnic_recv_context {
573#define QLCNIC_CDRP_CMD_CONFIGURE_ESWITCH 0x00000028 573#define QLCNIC_CDRP_CMD_CONFIGURE_ESWITCH 0x00000028
574#define QLCNIC_CDRP_CMD_GET_ESWITCH_PORT_CONFIG 0x00000029 574#define QLCNIC_CDRP_CMD_GET_ESWITCH_PORT_CONFIG 0x00000029
575#define QLCNIC_CDRP_CMD_GET_ESWITCH_STATS 0x0000002a 575#define QLCNIC_CDRP_CMD_GET_ESWITCH_STATS 0x0000002a
576#define QLCNIC_CDRP_CMD_CONFIG_PORT 0x0000002E
576 577
577#define QLCNIC_RCODE_SUCCESS 0 578#define QLCNIC_RCODE_SUCCESS 0
579#define QLCNIC_RCODE_NOT_SUPPORTED 9
578#define QLCNIC_RCODE_TIMEOUT 17 580#define QLCNIC_RCODE_TIMEOUT 17
579#define QLCNIC_DESTROY_CTX_RESET 0 581#define QLCNIC_DESTROY_CTX_RESET 0
580 582
@@ -1155,8 +1157,7 @@ struct qlcnic_esw_statistics {
1155 struct __qlcnic_esw_statistics tx; 1157 struct __qlcnic_esw_statistics tx;
1156}; 1158};
1157 1159
1158int qlcnic_fw_cmd_query_phy(struct qlcnic_adapter *adapter, u32 reg, u32 *val); 1160int qlcnic_fw_cmd_set_port(struct qlcnic_adapter *adapter, u32 config);
1159int qlcnic_fw_cmd_set_phy(struct qlcnic_adapter *adapter, u32 reg, u32 val);
1160 1161
1161u32 qlcnic_hw_read_wx_2M(struct qlcnic_adapter *adapter, ulong off); 1162u32 qlcnic_hw_read_wx_2M(struct qlcnic_adapter *adapter, ulong off);
1162int qlcnic_hw_write_wx_2M(struct qlcnic_adapter *, ulong off, u32 data); 1163int qlcnic_hw_write_wx_2M(struct qlcnic_adapter *, ulong off, u32 data);