diff options
author | Sucheta Chakraborty <sucheta.chakraborty@qlogic.com> | 2011-08-29 08:50:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-08-29 22:52:50 -0400 |
commit | 728a98b831eecada40b36df53420d57e9292c880 (patch) | |
tree | e4bac789f65990bc6bcc5e82cd71f6a32ceca732 /drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | |
parent | 9254b751492c7fc08497a5c0e0cd668ddd269ea2 (diff) |
qlcnic: add beacon test support.
Beacon test flashes both port LEDs instead of just 1 LED of a port.
Updated driver version to 5.0.23.
Signed-off-by: Sucheta Chakraborty <sucheta.chakraborty@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic.h')
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h index 2a3e552e9ffb..04c70153833f 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic.h +++ b/drivers/net/ethernet/qlogic/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 22 | 39 | #define _QLCNIC_LINUX_SUBVERSION 23 |
40 | #define QLCNIC_LINUX_VERSIONID "5.0.22" | 40 | #define QLCNIC_LINUX_VERSIONID "5.0.23" |
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)) |
@@ -457,6 +457,8 @@ struct qlcnic_hardware_context { | |||
457 | u16 port_type; | 457 | u16 port_type; |
458 | u16 board_type; | 458 | u16 board_type; |
459 | 459 | ||
460 | u8 beacon_state; | ||
461 | |||
460 | struct qlcnic_nic_intr_coalesce coal; | 462 | struct qlcnic_nic_intr_coalesce coal; |
461 | struct qlcnic_fw_dump fw_dump; | 463 | struct qlcnic_fw_dump fw_dump; |
462 | }; | 464 | }; |
@@ -931,6 +933,7 @@ struct qlcnic_ipaddr { | |||
931 | #define __QLCNIC_START_FW 4 | 933 | #define __QLCNIC_START_FW 4 |
932 | #define __QLCNIC_AER 5 | 934 | #define __QLCNIC_AER 5 |
933 | #define __QLCNIC_DIAG_RES_ALLOC 6 | 935 | #define __QLCNIC_DIAG_RES_ALLOC 6 |
936 | #define __QLCNIC_LED_ENABLE 7 | ||
934 | 937 | ||
935 | #define QLCNIC_INTERRUPT_TEST 1 | 938 | #define QLCNIC_INTERRUPT_TEST 1 |
936 | #define QLCNIC_LOOPBACK_TEST 2 | 939 | #define QLCNIC_LOOPBACK_TEST 2 |
@@ -1397,6 +1400,9 @@ void qlcnic_pcie_sem_unlock(struct qlcnic_adapter *, int); | |||
1397 | #define crb_win_unlock(a) \ | 1400 | #define crb_win_unlock(a) \ |
1398 | qlcnic_pcie_sem_unlock((a), 7) | 1401 | qlcnic_pcie_sem_unlock((a), 7) |
1399 | 1402 | ||
1403 | #define __QLCNIC_MAX_LED_RATE 0xf | ||
1404 | #define __QLCNIC_MAX_LED_STATE 0x2 | ||
1405 | |||
1400 | int qlcnic_get_board_info(struct qlcnic_adapter *adapter); | 1406 | int qlcnic_get_board_info(struct qlcnic_adapter *adapter); |
1401 | int qlcnic_wol_supported(struct qlcnic_adapter *adapter); | 1407 | int qlcnic_wol_supported(struct qlcnic_adapter *adapter); |
1402 | int qlcnic_config_led(struct qlcnic_adapter *adapter, u32 state, u32 rate); | 1408 | int qlcnic_config_led(struct qlcnic_adapter *adapter, u32 state, u32 rate); |