diff options
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 94b0dcab897f..7870cefcb203 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h | |||
@@ -658,6 +658,9 @@ struct efx_filter_state; | |||
658 | * should be allocated for this NIC | 658 | * should be allocated for this NIC |
659 | * @rxq_entries: Size of receive queues requested by user. | 659 | * @rxq_entries: Size of receive queues requested by user. |
660 | * @txq_entries: Size of transmit queues requested by user. | 660 | * @txq_entries: Size of transmit queues requested by user. |
661 | * @tx_dc_base: Base qword address in SRAM of TX queue descriptor caches | ||
662 | * @rx_dc_base: Base qword address in SRAM of RX queue descriptor caches | ||
663 | * @sram_lim_qw: Qword address limit of SRAM | ||
661 | * @next_buffer_table: First available buffer table id | 664 | * @next_buffer_table: First available buffer table id |
662 | * @n_channels: Number of channels in use | 665 | * @n_channels: Number of channels in use |
663 | * @n_rx_channels: Number of channels used for RX (= number of RX queues) | 666 | * @n_rx_channels: Number of channels used for RX (= number of RX queues) |
@@ -753,6 +756,9 @@ struct efx_nic { | |||
753 | 756 | ||
754 | unsigned rxq_entries; | 757 | unsigned rxq_entries; |
755 | unsigned txq_entries; | 758 | unsigned txq_entries; |
759 | unsigned tx_dc_base; | ||
760 | unsigned rx_dc_base; | ||
761 | unsigned sram_lim_qw; | ||
756 | unsigned next_buffer_table; | 762 | unsigned next_buffer_table; |
757 | unsigned n_channels; | 763 | unsigned n_channels; |
758 | unsigned n_rx_channels; | 764 | unsigned n_rx_channels; |
@@ -839,6 +845,8 @@ static inline unsigned int efx_port_num(struct efx_nic *efx) | |||
839 | * @probe: Probe the controller | 845 | * @probe: Probe the controller |
840 | * @remove: Free resources allocated by probe() | 846 | * @remove: Free resources allocated by probe() |
841 | * @init: Initialise the controller | 847 | * @init: Initialise the controller |
848 | * @dimension_resources: Dimension controller resources (buffer table, | ||
849 | * and VIs once the available interrupt resources are clear) | ||
842 | * @fini: Shut down the controller | 850 | * @fini: Shut down the controller |
843 | * @monitor: Periodic function for polling link state and hardware monitor | 851 | * @monitor: Periodic function for polling link state and hardware monitor |
844 | * @map_reset_reason: Map ethtool reset reason to a reset method | 852 | * @map_reset_reason: Map ethtool reset reason to a reset method |
@@ -878,8 +886,6 @@ static inline unsigned int efx_port_num(struct efx_nic *efx) | |||
878 | * @phys_addr_channels: Number of channels with physically addressed | 886 | * @phys_addr_channels: Number of channels with physically addressed |
879 | * descriptors | 887 | * descriptors |
880 | * @timer_period_max: Maximum period of interrupt timer (in ticks) | 888 | * @timer_period_max: Maximum period of interrupt timer (in ticks) |
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 | ||
883 | * @offload_features: net_device feature flags for protocol offload | 889 | * @offload_features: net_device feature flags for protocol offload |
884 | * features implemented in hardware | 890 | * features implemented in hardware |
885 | */ | 891 | */ |
@@ -887,6 +893,7 @@ struct efx_nic_type { | |||
887 | int (*probe)(struct efx_nic *efx); | 893 | int (*probe)(struct efx_nic *efx); |
888 | void (*remove)(struct efx_nic *efx); | 894 | void (*remove)(struct efx_nic *efx); |
889 | int (*init)(struct efx_nic *efx); | 895 | int (*init)(struct efx_nic *efx); |
896 | void (*dimension_resources)(struct efx_nic *efx); | ||
890 | void (*fini)(struct efx_nic *efx); | 897 | void (*fini)(struct efx_nic *efx); |
891 | void (*monitor)(struct efx_nic *efx); | 898 | void (*monitor)(struct efx_nic *efx); |
892 | enum reset_type (*map_reset_reason)(enum reset_type reason); | 899 | enum reset_type (*map_reset_reason)(enum reset_type reason); |
@@ -923,8 +930,6 @@ struct efx_nic_type { | |||
923 | unsigned int max_interrupt_mode; | 930 | unsigned int max_interrupt_mode; |
924 | unsigned int phys_addr_channels; | 931 | unsigned int phys_addr_channels; |
925 | unsigned int timer_period_max; | 932 | unsigned int timer_period_max; |
926 | unsigned int tx_dc_base; | ||
927 | unsigned int rx_dc_base; | ||
928 | netdev_features_t offload_features; | 933 | netdev_features_t offload_features; |
929 | }; | 934 | }; |
930 | 935 | ||