devlink.h 1011 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* Copyright (c) 2019, Intel Corporation. */
  3. #ifndef _ICE_DEVLINK_H_
  4. #define _ICE_DEVLINK_H_
  5. struct ice_pf *ice_allocate_pf(struct device *dev);
  6. struct ice_sf_priv *ice_allocate_sf(struct device *dev, struct ice_pf *pf);
  7. void ice_devlink_register(struct ice_pf *pf);
  8. void ice_devlink_unregister(struct ice_pf *pf);
  9. int ice_devlink_register_params(struct ice_pf *pf);
  10. void ice_devlink_unregister_params(struct ice_pf *pf);
  11. int ice_devlink_create_pf_port(struct ice_pf *pf);
  12. void ice_devlink_destroy_pf_port(struct ice_pf *pf);
  13. int ice_devlink_create_vf_port(struct ice_vf *vf);
  14. void ice_devlink_destroy_vf_port(struct ice_vf *vf);
  15. void ice_devlink_init_regions(struct ice_pf *pf);
  16. void ice_devlink_destroy_regions(struct ice_pf *pf);
  17. int ice_devlink_rate_init_tx_topology(struct devlink *devlink, struct ice_vsi *vsi);
  18. void ice_tear_down_devlink_rate_tree(struct ice_pf *pf);
  19. void ice_devlink_rate_clear_tx_topology(struct ice_vsi *vsi);
  20. #endif /* _ICE_DEVLINK_H_ */