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/efx.h | |
parent | 59436c9ee18d7faad0cd1875c9d8322668f98611 (diff) |
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/efx.h')
-rw-r--r-- | drivers/net/ethernet/sfc/efx.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h index 52c84b782901..16da3e9a6000 100644 --- a/drivers/net/ethernet/sfc/efx.h +++ b/drivers/net/ethernet/sfc/efx.h @@ -14,11 +14,6 @@ #include "net_driver.h" #include "filter.h" -/* All controllers use BAR 0 for I/O space and BAR 2(&3) for memory */ -/* All VFs use BAR 0/1 for memory */ -#define EFX_MEM_BAR 2 -#define EFX_MEM_VF_BAR 0 - int efx_net_open(struct net_device *net_dev); int efx_net_stop(struct net_device *net_dev); |