xref: /openbmc/linux/drivers/net/ethernet/intel/ice/ice_devlink.h (revision 47327e198d42c77322dbe175817499d2d7ddc26a)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright (c) 2019, Intel Corporation. */
3 
4 #ifndef _ICE_DEVLINK_H_
5 #define _ICE_DEVLINK_H_
6 
7 enum ice_devlink_param_id {
8 	ICE_DEVLINK_PARAM_ID_BASE = DEVLINK_PARAM_GENERIC_ID_MAX,
9 };
10 
11 struct ice_pf *ice_allocate_pf(struct device *dev);
12 
13 void ice_devlink_register(struct ice_pf *pf);
14 void ice_devlink_unregister(struct ice_pf *pf);
15 int ice_devlink_register_params(struct ice_pf *pf);
16 void ice_devlink_unregister_params(struct ice_pf *pf);
17 int ice_devlink_create_pf_port(struct ice_pf *pf);
18 void ice_devlink_destroy_pf_port(struct ice_pf *pf);
19 int ice_devlink_create_vf_port(struct ice_vf *vf);
20 void ice_devlink_destroy_vf_port(struct ice_vf *vf);
21 
22 void ice_devlink_init_regions(struct ice_pf *pf);
23 void ice_devlink_destroy_regions(struct ice_pf *pf);
24 
25 #endif /* _ICE_DEVLINK_H_ */
26