mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 23:21:46 +00:00
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>
This commit is contained in:
parent
1cd9ecbbe6
commit
02246a7f96
9 changed files with 176 additions and 16 deletions
|
@ -1089,6 +1089,7 @@ struct efx_mtd_partition {
|
|||
|
||||
/**
|
||||
* struct efx_nic_type - Efx device type definition
|
||||
* @mem_bar: Get the memory BAR
|
||||
* @mem_map_size: Get memory BAR mapped size
|
||||
* @probe: Probe the controller
|
||||
* @remove: Free resources allocated by probe()
|
||||
|
@ -1223,6 +1224,7 @@ struct efx_mtd_partition {
|
|||
* @hwtstamp_filters: Mask of hardware timestamp filter types supported
|
||||
*/
|
||||
struct efx_nic_type {
|
||||
unsigned int mem_bar;
|
||||
unsigned int (*mem_map_size)(struct efx_nic *efx);
|
||||
int (*probe)(struct efx_nic *efx);
|
||||
void (*remove)(struct efx_nic *efx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue