diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2009-11-28 22:43:15 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-29 19:46:29 -0500 |
commit | eb9f6744cbfa97674c13263802259b5aa0034594 (patch) | |
tree | ae57310bc8fd9b7b21e6d6ca63853bcae002a5c2 /drivers/net/sfc/net_driver.h | |
parent | 89c758fa47b54d8ce10d2b39ed09de6da0ba4324 (diff) |
sfc: Implement ethtool reset operation
Refactor efx_reset_down() and efx_reset_up() accordingly.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/sfc/net_driver.h b/drivers/net/sfc/net_driver.h index a9fde82aeeae..58bf761d7317 100644 --- a/drivers/net/sfc/net_driver.h +++ b/drivers/net/sfc/net_driver.h | |||
@@ -880,6 +880,8 @@ static inline const char *efx_dev_name(struct efx_nic *efx) | |||
880 | * descriptors | 880 | * descriptors |
881 | * @tx_dc_base: Base address in SRAM of TX queue descriptor caches | 881 | * @tx_dc_base: Base address in SRAM of TX queue descriptor caches |
882 | * @rx_dc_base: Base address in SRAM of RX queue descriptor caches | 882 | * @rx_dc_base: Base address in SRAM of RX queue descriptor caches |
883 | * @reset_world_flags: Flags for additional components covered by | ||
884 | * reset method RESET_TYPE_WORLD | ||
883 | */ | 885 | */ |
884 | struct efx_nic_type { | 886 | struct efx_nic_type { |
885 | int (*probe)(struct efx_nic *efx); | 887 | int (*probe)(struct efx_nic *efx); |
@@ -915,6 +917,7 @@ struct efx_nic_type { | |||
915 | unsigned int phys_addr_channels; | 917 | unsigned int phys_addr_channels; |
916 | unsigned int tx_dc_base; | 918 | unsigned int tx_dc_base; |
917 | unsigned int rx_dc_base; | 919 | unsigned int rx_dc_base; |
920 | u32 reset_world_flags; | ||
918 | }; | 921 | }; |
919 | 922 | ||
920 | /************************************************************************** | 923 | /************************************************************************** |