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>
This commit is contained in:

committed by
David S. Miller

parent
59436c9ee1
commit
03714bbb22
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user