diff options
author | Yaniv Rosner <yaniv.rosner@broadcom.com> | 2010-09-07 13:41:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-07 22:15:42 +0200 |
commit | 7f02c4ad2182ee7820edecbaf6c510728ee8bbb3 (patch) | |
tree | 4d66175482b31739bedd44e77fbe353e879379c9 /drivers/net/bnx2x/bnx2x_link.h | |
parent | bnx2x: Add dual-media changes (diff) | |
download | linux-7f02c4ad2182ee7820edecbaf6c510728ee8bbb3.tar.xz linux-7f02c4ad2182ee7820edecbaf6c510728ee8bbb3.zip |
bnx2x: Change LED scheme for dual-media
Change LED scheme for dual-media
Signed-off-by: Yaniv Rosner <yanivr@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_link.h')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_link.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/net/bnx2x/bnx2x_link.h b/drivers/net/bnx2x/bnx2x_link.h index 9115c125aeaf..e98ea3d19471 100644 --- a/drivers/net/bnx2x/bnx2x_link.h +++ b/drivers/net/bnx2x/bnx2x_link.h @@ -296,9 +296,12 @@ u8 bnx2x_get_ext_phy_fw_version(struct link_params *params, u8 driver_loaded, Basically, the CLC takes care of the led for the link, but in case one needs to set/unset the led unnaturally, set the "mode" to LED_MODE_OPER to blink the led, and LED_MODE_OFF to set the led off.*/ -u8 bnx2x_set_led(struct link_params *params, u8 mode, u32 speed); -#define LED_MODE_OFF 0 -#define LED_MODE_OPER 2 +u8 bnx2x_set_led(struct link_params *params, struct link_vars *vars, + u8 mode, u32 speed); +#define LED_MODE_OFF 0 +#define LED_MODE_ON 1 +#define LED_MODE_OPER 2 +#define LED_MODE_FRONT_PANEL_OFF 3 u8 bnx2x_override_led_value(struct bnx2x *bp, u8 port, u32 led_idx, u32 value); |