diff options
author | Ajit Khaparde <ajitk@serverengines.com> | 2010-06-30 23:51:00 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-02 01:45:53 -0400 |
commit | ee3cb6295144b0adfa75ccaca307643a6998b1e2 (patch) | |
tree | be53541071540edaa0ef6a1e2802a07cdd52618d /drivers/net/benet/be_cmds.h | |
parent | 3d8009c780ee90fccb5c171caf30aff839f13547 (diff) |
be2net: changes to properly provide phy details
be2net driver is currently not showing correct phy details in certain cases.
This patch fixes it.
Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/benet/be_cmds.h')
-rw-r--r-- | drivers/net/benet/be_cmds.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/drivers/net/benet/be_cmds.h b/drivers/net/benet/be_cmds.h index 763dc199e337..912a0586f060 100644 --- a/drivers/net/benet/be_cmds.h +++ b/drivers/net/benet/be_cmds.h | |||
@@ -144,6 +144,7 @@ struct be_mcc_mailbox { | |||
144 | #define OPCODE_COMMON_ENABLE_DISABLE_BEACON 69 | 144 | #define OPCODE_COMMON_ENABLE_DISABLE_BEACON 69 |
145 | #define OPCODE_COMMON_GET_BEACON_STATE 70 | 145 | #define OPCODE_COMMON_GET_BEACON_STATE 70 |
146 | #define OPCODE_COMMON_READ_TRANSRECV_DATA 73 | 146 | #define OPCODE_COMMON_READ_TRANSRECV_DATA 73 |
147 | #define OPCODE_COMMON_GET_PHY_DETAILS 102 | ||
147 | 148 | ||
148 | #define OPCODE_ETH_ACPI_CONFIG 2 | 149 | #define OPCODE_ETH_ACPI_CONFIG 2 |
149 | #define OPCODE_ETH_PROMISCUOUS 3 | 150 | #define OPCODE_ETH_PROMISCUOUS 3 |
@@ -869,6 +870,30 @@ struct be_cmd_resp_seeprom_read { | |||
869 | u8 seeprom_data[BE_READ_SEEPROM_LEN]; | 870 | u8 seeprom_data[BE_READ_SEEPROM_LEN]; |
870 | }; | 871 | }; |
871 | 872 | ||
873 | enum { | ||
874 | PHY_TYPE_CX4_10GB = 0, | ||
875 | PHY_TYPE_XFP_10GB, | ||
876 | PHY_TYPE_SFP_1GB, | ||
877 | PHY_TYPE_SFP_PLUS_10GB, | ||
878 | PHY_TYPE_KR_10GB, | ||
879 | PHY_TYPE_KX4_10GB, | ||
880 | PHY_TYPE_BASET_10GB, | ||
881 | PHY_TYPE_BASET_1GB, | ||
882 | PHY_TYPE_DISABLED = 255 | ||
883 | }; | ||
884 | |||
885 | struct be_cmd_req_get_phy_info { | ||
886 | struct be_cmd_req_hdr hdr; | ||
887 | u8 rsvd0[24]; | ||
888 | }; | ||
889 | struct be_cmd_resp_get_phy_info { | ||
890 | struct be_cmd_req_hdr hdr; | ||
891 | u16 phy_type; | ||
892 | u16 interface_type; | ||
893 | u32 misc_params; | ||
894 | u32 future_use[4]; | ||
895 | }; | ||
896 | |||
872 | extern int be_pci_fnum_get(struct be_adapter *adapter); | 897 | extern int be_pci_fnum_get(struct be_adapter *adapter); |
873 | extern int be_cmd_POST(struct be_adapter *adapter); | 898 | extern int be_cmd_POST(struct be_adapter *adapter); |
874 | extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, | 899 | extern int be_cmd_mac_addr_query(struct be_adapter *adapter, u8 *mac_addr, |
@@ -947,4 +972,6 @@ extern int be_cmd_get_seeprom_data(struct be_adapter *adapter, | |||
947 | struct be_dma_mem *nonemb_cmd); | 972 | struct be_dma_mem *nonemb_cmd); |
948 | extern int be_cmd_set_loopback(struct be_adapter *adapter, u8 port_num, | 973 | extern int be_cmd_set_loopback(struct be_adapter *adapter, u8 port_num, |
949 | u8 loopback_type, u8 enable); | 974 | u8 loopback_type, u8 enable); |
975 | extern int be_cmd_get_phy_info(struct be_adapter *adapter, | ||
976 | struct be_dma_mem *cmd); | ||
950 | 977 | ||