Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /* Copyright (C) 2018-2021, Intel Corporation. */
0003 
0004 #ifndef _ICE_VF_LIB_PRIVATE_H_
0005 #define _ICE_VF_LIB_PRIVATE_H_
0006 
0007 #include "ice_vf_lib.h"
0008 
0009 /* This header file is for exposing functions in ice_vf_lib.c to other files
0010  * which are also conditionally compiled depending on CONFIG_PCI_IOV.
0011  * Functions which may be used by other files should be exposed as part of
0012  * ice_vf_lib.h
0013  *
0014  * Functions in this file are exposed only when CONFIG_PCI_IOV is enabled, and
0015  * thus this header must not be included by .c files which may be compiled
0016  * with CONFIG_PCI_IOV disabled.
0017  *
0018  * To avoid this, only include this header file directly within .c files that
0019  * are conditionally enabled in the "ice-$(CONFIG_PCI_IOV)" block.
0020  */
0021 
0022 #ifndef CONFIG_PCI_IOV
0023 #warning "Only include ice_vf_lib_private.h in CONFIG_PCI_IOV virtualization files"
0024 #endif
0025 
0026 void ice_dis_vf_qs(struct ice_vf *vf);
0027 int ice_check_vf_init(struct ice_vf *vf);
0028 struct ice_port_info *ice_vf_get_port_info(struct ice_vf *vf);
0029 int ice_vsi_apply_spoofchk(struct ice_vsi *vsi, bool enable);
0030 bool ice_is_vf_trusted(struct ice_vf *vf);
0031 bool ice_vf_has_no_qs_ena(struct ice_vf *vf);
0032 bool ice_is_vf_link_up(struct ice_vf *vf);
0033 void ice_vf_rebuild_host_cfg(struct ice_vf *vf);
0034 void ice_vf_ctrl_invalidate_vsi(struct ice_vf *vf);
0035 void ice_vf_ctrl_vsi_release(struct ice_vf *vf);
0036 struct ice_vsi *ice_vf_ctrl_vsi_setup(struct ice_vf *vf);
0037 void ice_vf_invalidate_vsi(struct ice_vf *vf);
0038 void ice_vf_set_initialized(struct ice_vf *vf);
0039 
0040 #endif /* _ICE_VF_LIB_PRIVATE_H_ */