diff options
author | Edward Cree <ecree@solarflare.com> | 2017-12-18 16:55:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-18 13:07:49 -0500 |
commit | 03714bbb22ebe00bc07d83c526b16377c67daa3f (patch) | |
tree | 19399ea52e41cae79037652a5c725d8a05f250f5 /drivers/net/ethernet/sfc/net_driver.h | |
parent | 59436c9ee18d7faad0cd1875c9d8322668f98611 (diff) | |
download | linux-03714bbb22ebe00bc07d83c526b16377c67daa3f.tar.gz linux-03714bbb22ebe00bc07d83c526b16377c67daa3f.tar.bz2 linux-03714bbb22ebe00bc07d83c526b16377c67daa3f.zip |
sfc: make mem_bar a function rather than a constant
Support using BAR 0 on SFC9250, even though the driver doesn't bind to such
devices yet.
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
-rw-r--r-- | drivers/net/ethernet/sfc/net_driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index c0537ea06c9a..2b6599f8d9fa 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -1154,7 +1154,7 @@ struct efx_udp_tunnel { */ struct efx_nic_type { bool is_vf; - unsigned int mem_bar; + unsigned int (*mem_bar)(struct efx_nic *efx); unsigned int (*mem_map_size)(struct efx_nic *efx); int (*probe)(struct efx_nic *efx); void (*remove)(struct efx_nic *efx); |