mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-06 13:09:58 +00:00

Allocate devlink for subfunction instance. Create header file for subfunction device. Define subfunction device structure there as it is needed for devlink allocation. Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Piotr Raczynski <piotr.raczynski@intel.com> Signed-off-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Tested-by: Rafal Romanowski <rafal.romanowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
27 lines
1011 B
C
27 lines
1011 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2019, Intel Corporation. */
|
|
|
|
#ifndef _ICE_DEVLINK_H_
|
|
#define _ICE_DEVLINK_H_
|
|
|
|
struct ice_pf *ice_allocate_pf(struct device *dev);
|
|
struct ice_sf_priv *ice_allocate_sf(struct device *dev, struct ice_pf *pf);
|
|
|
|
void ice_devlink_register(struct ice_pf *pf);
|
|
void ice_devlink_unregister(struct ice_pf *pf);
|
|
int ice_devlink_register_params(struct ice_pf *pf);
|
|
void ice_devlink_unregister_params(struct ice_pf *pf);
|
|
int ice_devlink_create_pf_port(struct ice_pf *pf);
|
|
void ice_devlink_destroy_pf_port(struct ice_pf *pf);
|
|
int ice_devlink_create_vf_port(struct ice_vf *vf);
|
|
void ice_devlink_destroy_vf_port(struct ice_vf *vf);
|
|
|
|
void ice_devlink_init_regions(struct ice_pf *pf);
|
|
void ice_devlink_destroy_regions(struct ice_pf *pf);
|
|
|
|
int ice_devlink_rate_init_tx_topology(struct devlink *devlink, struct ice_vsi *vsi);
|
|
void ice_tear_down_devlink_rate_tree(struct ice_pf *pf);
|
|
void ice_devlink_rate_clear_tx_topology(struct ice_vsi *vsi);
|
|
|
|
#endif /* _ICE_DEVLINK_H_ */
|