2020-03-11 18:58:15 -07:00
|
|
|
/* 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);
|
|
|
|
|
2021-09-22 11:58:03 +03:00
|
|
|
void ice_devlink_register(struct ice_pf *pf);
|
2020-03-11 18:58:15 -07:00
|
|
|
void ice_devlink_unregister(struct ice_pf *pf);
|
2021-10-18 18:16:02 -05:00
|
|
|
int ice_devlink_register_params(struct ice_pf *pf);
|
|
|
|
void ice_devlink_unregister_params(struct ice_pf *pf);
|
2021-08-19 17:08:49 -07:00
|
|
|
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);
|
2020-03-11 18:58:15 -07:00
|
|
|
|
2020-03-26 11:37:18 -07:00
|
|
|
void ice_devlink_init_regions(struct ice_pf *pf);
|
|
|
|
void ice_devlink_destroy_regions(struct ice_pf *pf);
|
|
|
|
|
2020-03-11 18:58:15 -07:00
|
|
|
#endif /* _ICE_DEVLINK_H_ */
|