diff options
author | Edward Cree <ecree@solarflare.com> | 2017-12-18 16:56:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-12-18 13:07:49 -0500 |
commit | 71827443017789da691b402090c6be6138f43157 (patch) | |
tree | c4fe0cc5068136d27ea3e19a80a17c4476a69b91 /drivers/net/ethernet/sfc/net_driver.h | |
parent | sfc: make mem_bar a function rather than a constant (diff) | |
download | linux-dev-71827443017789da691b402090c6be6138f43157.tar.xz linux-dev-71827443017789da691b402090c6be6138f43157.zip |
sfc: support VI strides other than 8k
Medford2 can also have 16k or 64k VI stride. This is reported by MCDI in
GET_CAPABILITIES, which fortunately is called before the driver does
anything sensitive to the VI stride (such as accessing or even allocating
VIs past the zeroth).
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/net_driver.h b/drivers/net/ethernet/sfc/net_driver.h index 2b6599f8d9fa..2e41f2c39c4a 100644 --- a/drivers/net/ethernet/sfc/net_driver.h +++ b/drivers/net/ethernet/sfc/net_driver.h @@ -708,6 +708,7 @@ struct vfdi_status; * @reset_work: Scheduled reset workitem * @membase_phys: Memory BAR value as physical address * @membase: Memory BAR value + * @vi_stride: step between per-VI registers / memory regions * @interrupt_mode: Interrupt mode * @timer_quantum_ns: Interrupt timer quantum, in nanoseconds * @timer_max_ns: Interrupt timer maximum value, in nanoseconds @@ -842,6 +843,8 @@ struct efx_nic { resource_size_t membase_phys; void __iomem *membase; + unsigned int vi_stride; + enum efx_int_mode interrupt_mode; unsigned int timer_quantum_ns; unsigned int timer_max_ns; |