aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-11-23 11:05:45 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-24 13:58:48 -0500
commit3759433db2f7340ddec3abd55ebb1178600d014e (patch)
tree7681280a1dbac4a4898b1f615c0185b751eb853e /drivers/net/sfc/net_driver.h
parent5c16a96c4f31a0be287c5db3f36d1099dea9b2bd (diff)
sfc: Move struct falcon_board into struct falcon_nic_data
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.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h
index 9b84c3ae5ed0..fdc9e157e513 100644
--- a/drivers/net/sfc/net_driver.h
+++ b/drivers/net/sfc/net_driver.h
@@ -394,31 +394,6 @@ enum efx_led_mode {
394 EFX_LED_DEFAULT = 2 394 EFX_LED_DEFAULT = 2
395}; 395};
396 396
397/**
398 * struct falcon_board - board information
399 * @type: Board model type
400 * @major: Major rev. ('A', 'B' ...)
401 * @minor: Minor rev. (0, 1, ...)
402 * @init: Allocate resources and initialise peripheral hardware
403 * @init_phy: Do board-specific PHY initialisation
404 * @set_id_led: Set state of identifying LED or revert to automatic function
405 * @monitor: Board-specific health check function
406 * @fini: Shut down hardware and free resources
407 * @hwmon_client: I2C client for hardware monitor
408 * @ioexp_client: I2C client for power/port control
409 */
410struct falcon_board {
411 int type;
412 int major;
413 int minor;
414 int (*init) (struct efx_nic *nic);
415 void (*init_phy) (struct efx_nic *efx);
416 void (*set_id_led) (struct efx_nic *efx, enum efx_led_mode mode);
417 int (*monitor) (struct efx_nic *nic);
418 void (*fini) (struct efx_nic *nic);
419 struct i2c_client *hwmon_client, *ioexp_client;
420};
421
422#define STRING_TABLE_LOOKUP(val, member) \ 397#define STRING_TABLE_LOOKUP(val, member) \
423 member ## _names[val] 398 member ## _names[val]
424 399
@@ -665,7 +640,6 @@ union efx_multicast_hash {
665 * @irq_rx_adaptive: Adaptive IRQ moderation enabled for RX event queues 640 * @irq_rx_adaptive: Adaptive IRQ moderation enabled for RX event queues
666 * @irq_rx_moderation: IRQ moderation time for RX event queues 641 * @irq_rx_moderation: IRQ moderation time for RX event queues
667 * @i2c_adap: I2C adapter 642 * @i2c_adap: I2C adapter
668 * @board_info: Board-level information
669 * @state: Device state flag. Serialised by the rtnl_lock. 643 * @state: Device state flag. Serialised by the rtnl_lock.
670 * @reset_pending: Pending reset method (normally RESET_TYPE_NONE) 644 * @reset_pending: Pending reset method (normally RESET_TYPE_NONE)
671 * @tx_queue: TX DMA queues 645 * @tx_queue: TX DMA queues
@@ -752,7 +726,6 @@ struct efx_nic {
752 unsigned int irq_rx_moderation; 726 unsigned int irq_rx_moderation;
753 727
754 struct i2c_adapter i2c_adap; 728 struct i2c_adapter i2c_adap;
755 struct falcon_board board_info;
756 729
757 enum nic_state state; 730 enum nic_state state;
758 enum reset_type reset_pending; 731 enum reset_type reset_pending;