// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2016 Cavium, Inc. */ #include "cptvf.h" static void cptvf_send_msg_to_pf(struct cpt_vf *cptvf, struct cpt_mbox *mbx) { … } /* Interrupt handler to handle mailbox messages from VFs */ void cptvf_handle_mbox_intr(struct cpt_vf *cptvf) { … } static int cptvf_send_msg_to_pf_timeout(struct cpt_vf *cptvf, struct cpt_mbox *mbx) { … } /* * Checks if VF is able to comminicate with PF * and also gets the CPT number this VF is associated to. */ int cptvf_check_pf_ready(struct cpt_vf *cptvf) { … } /* * Communicate VQs size to PF to program CPT(0)_PF_Q(0-15)_CTL of the VF. * Must be ACKed. */ int cptvf_send_vq_size_msg(struct cpt_vf *cptvf) { … } /* * Communicate VF group required to PF and get the VQ binded to that group */ int cptvf_send_vf_to_grp_msg(struct cpt_vf *cptvf) { … } /* * Communicate VF group required to PF and get the VQ binded to that group */ int cptvf_send_vf_priority_msg(struct cpt_vf *cptvf) { … } /* * Communicate to PF that VF is UP and running */ int cptvf_send_vf_up(struct cpt_vf *cptvf) { … } /* * Communicate to PF that VF is DOWN and running */ int cptvf_send_vf_down(struct cpt_vf *cptvf) { … }