diff options
author | Vadim Pasternak <vadimp@mellanox.com> | 2019-03-03 09:12:11 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-03 22:23:00 -0800 |
commit | e5ba7803baea3dda36251ed2e2f55b884b0e18fa (patch) | |
tree | 4234662eccbccedb2c57fc966c60df8d28d65cf8 /drivers/net/ethernet/mellanox/mlxsw/core.h | |
parent | c100e47caa8efe818f92c55f50933632f0af0e93 (diff) | |
download | linux-stable-e5ba7803baea3dda36251ed2e2f55b884b0e18fa.tar.gz linux-stable-e5ba7803baea3dda36251ed2e2f55b884b0e18fa.tar.bz2 linux-stable-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 |