diff options
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r-- | drivers/net/sfc/net_driver.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index bc6fb2b29664..6b05d69429ee 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -388,6 +388,12 @@ struct efx_channel { | |||
388 | 388 | ||
389 | }; | 389 | }; |
390 | 390 | ||
391 | enum efx_led_mode { | ||
392 | EFX_LED_OFF = 0, | ||
393 | EFX_LED_ON = 1, | ||
394 | EFX_LED_DEFAULT = 2 | ||
395 | }; | ||
396 | |||
391 | /** | 397 | /** |
392 | * struct efx_board - board information | 398 | * struct efx_board - board information |
393 | * @type: Board model type | 399 | * @type: Board model type |
@@ -395,13 +401,9 @@ struct efx_channel { | |||
395 | * @minor: Minor rev. (0, 1, ...) | 401 | * @minor: Minor rev. (0, 1, ...) |
396 | * @init: Initialisation function | 402 | * @init: Initialisation function |
397 | * @init_leds: Sets up board LEDs. May be called repeatedly. | 403 | * @init_leds: Sets up board LEDs. May be called repeatedly. |
398 | * @set_id_led: Turns the identification LED on or off | 404 | * @set_id_led: Set state of identifying LED or revert to automatic function |
399 | * @blink: Starts/stops blinking | ||
400 | * @monitor: Board-specific health check function | 405 | * @monitor: Board-specific health check function |
401 | * @fini: Cleanup function | 406 | * @fini: Cleanup function |
402 | * @blink_state: Current blink state | ||
403 | * @blink_resubmit: Blink timer resubmission flag | ||
404 | * @blink_timer: Blink timer | ||
405 | * @hwmon_client: I2C client for hardware monitor | 407 | * @hwmon_client: I2C client for hardware monitor |
406 | * @ioexp_client: I2C client for power/port control | 408 | * @ioexp_client: I2C client for power/port control |
407 | */ | 409 | */ |
@@ -414,13 +416,9 @@ struct efx_board { | |||
414 | * have a separate init callback that happens later than | 416 | * have a separate init callback that happens later than |
415 | * board init. */ | 417 | * board init. */ |
416 | void (*init_leds)(struct efx_nic *efx); | 418 | void (*init_leds)(struct efx_nic *efx); |
417 | void (*set_id_led) (struct efx_nic *efx, bool state); | 419 | void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode); |
418 | int (*monitor) (struct efx_nic *nic); | 420 | int (*monitor) (struct efx_nic *nic); |
419 | void (*blink) (struct efx_nic *efx, bool start); | ||
420 | void (*fini) (struct efx_nic *nic); | 421 | void (*fini) (struct efx_nic *nic); |
421 | bool blink_state; | ||
422 | bool blink_resubmit; | ||
423 | struct timer_list blink_timer; | ||
424 | struct i2c_client *hwmon_client, *ioexp_client; | 422 | struct i2c_client *hwmon_client, *ioexp_client; |
425 | }; | 423 | }; |
426 | 424 | ||