aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:04:23 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:58:40 -0500
commit981fc1b4b8cc6bfe8c6f0c07052e25738d959c68 (patch)
treeb55aa171ae37e4eff14b6750f61f667a213b518e /drivers/net/sfc/net_driver.h
parent398468ed1b5c61fe8bcbc8cc1ed323e3c23b58ef (diff)
sfc: Rename efx_board::init_leds to init_phy and use for SFN4111T
efx_board::init_leds was introduced as a second stage of initialisation because of the inter-dependency between the board and PHY. We want to move board initialisation into NIC probing, which is too early to use MDIO, so SFN4111T initialisation also needs to be split. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sfc/net_driver.h')
-rw-r--r--drivers/net/sfc/net_driver.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index 6b05d69429e..e1df589dff6 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -399,11 +399,11 @@ enum efx_led_mode {
399 * @type: Board model type 399 * @type: Board model type
400 * @major: Major rev. ('A', 'B' ...) 400 * @major: Major rev. ('A', 'B' ...)
401 * @minor: Minor rev. (0, 1, ...) 401 * @minor: Minor rev. (0, 1, ...)
402 * @init: Initialisation function 402 * @init: Allocate resources and initialise peripheral hardware
403 * @init_leds: Sets up board LEDs. May be called repeatedly. 403 * @init_phy: Do board-specific PHY initialisation
404 * @set_id_led: Set state of identifying LED or revert to automatic function 404 * @set_id_led: Set state of identifying LED or revert to automatic function
405 * @monitor: Board-specific health check function 405 * @monitor: Board-specific health check function
406 * @fini: Cleanup function 406 * @fini: Shut down hardware and free resources
407 * @hwmon_client: I2C client for hardware monitor 407 * @hwmon_client: I2C client for hardware monitor
408 * @ioexp_client: I2C client for power/port control 408 * @ioexp_client: I2C client for power/port control
409 */ 409 */
@@ -412,10 +412,7 @@ struct efx_board {
412 int major; 412 int major;
413 int minor; 413 int minor;
414 int (*init) (struct efx_nic *nic); 414 int (*init) (struct efx_nic *nic);
415 /* As the LEDs are typically attached to the PHY, LEDs 415 void (*init_phy) (struct efx_nic *efx);
416 * have a separate init callback that happens later than
417 * board init. */
418 void (*init_leds)(struct efx_nic *efx);
419 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode); 416 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode);
420 int (*monitor) (struct efx_nic *nic); 417 int (*monitor) (struct efx_nic *nic);
421 void (*fini) (struct efx_nic *nic); 418 void (*fini) (struct efx_nic *nic);