summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/efx.h
diff options
context:
space:
mode:
authorShradha Shah <sshah@solarflare.com>2015-05-06 02:58:14 +0300
committerDavid S. Miller <davem@davemloft.net>2015-05-09 23:16:47 +0300
commit02246a7f966c2e66ff0453d12d9b8d1bff895cf9 (patch)
tree81e42c59db4509aae03f30f76b4d195d238029f2 /drivers/net/ethernet/sfc/efx.h
parent1cd9ecbbe6e9261578510962ad899415053acc1d (diff)
downloadlinux-02246a7f966c2e66ff0453d12d9b8d1bff895cf9.tar.xz
sfc: Prepare to bind the sfc driver to the VF.
Added efx_nic_type structure for VF. Mapped a different BAR for VF as it uses BAR 0 for memory. Added functions sriov_init and sriov_fini. Signed-off-by: Shradha Shah <sshah@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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/efx.h b/drivers/net/ethernet/sfc/efx.h
index bc4e4b3e6aad..946607fbc0cc 100644
--- a/drivers/net/ethernet/sfc/efx.h
+++ b/drivers/net/ethernet/sfc/efx.h
@@ -15,7 +15,9 @@
#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
/* TX */
int efx_probe_tx_queue(struct efx_tx_queue *tx_queue);