diff options
author | Vadim Pasternak | 2019-03-03 10:12:11 +0100 |
---|---|---|
committer | David S. Miller | 2019-03-04 07:23:00 +0100 |
commit | e5ba7803baea3dda36251ed2e2f55b884b0e18fa (patch) | |
tree | 4234662eccbccedb2c57fc966c60df8d28d65cf8 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | mlxsw: minimal: Add ethtool support (diff) | |
download | kernel-qcow2-linux-e5ba7803baea3dda36251ed2e2f55b884b0e18fa.tar.gz kernel-qcow2-linux-e5ba7803baea3dda36251ed2e2f55b884b0e18fa.tar.xz kernel-qcow2-linux-e5ba7803baea3dda36251ed2e2f55b884b0e18fa.zip |
mlxsw: core: Move resource query API to common location
Move mlxsw_pci_resources_query() to a common location to allow reuse by
the different drivers and over all the supported physical buses. Rename
it to mlxsw_core_resources_query().
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/core.h')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core.h b/drivers/net/ethernet/mellanox/mlxsw/core.h index cd0c6aa0dff9..8ec53f027575 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core.h +++ b/drivers/net/ethernet/mellanox/mlxsw/core.h @@ -182,6 +182,8 @@ int mlxsw_core_port_get_phys_port_name(struct mlxsw_core *mlxsw_core, int mlxsw_core_schedule_dw(struct delayed_work *dwork, unsigned long delay); bool mlxsw_core_schedule_work(struct work_struct *work); void mlxsw_core_flush_owq(void); +int mlxsw_core_resources_query(struct mlxsw_core *mlxsw_core, char *mbox, + struct mlxsw_res *res); #define MLXSW_CONFIG_PROFILE_SWID_COUNT 8 |