.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2016 Cavium, Inc. |
---|
3 | | - * |
---|
4 | | - * This program is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of version 2 of the GNU General Public License |
---|
6 | | - * as published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #include "cptvf.h" |
---|
.. | .. |
---|
15 | 12 | mbx->msg); |
---|
16 | 13 | cpt_write_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 1), |
---|
17 | 14 | mbx->data); |
---|
18 | | -} |
---|
19 | | - |
---|
20 | | -/* ACKs PF's mailbox message |
---|
21 | | - */ |
---|
22 | | -void cptvf_mbox_send_ack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) |
---|
23 | | -{ |
---|
24 | | - mbx->msg = CPT_MBOX_MSG_TYPE_ACK; |
---|
25 | | - cptvf_send_msg_to_pf(cptvf, mbx); |
---|
26 | | -} |
---|
27 | | - |
---|
28 | | -/* NACKs PF's mailbox message that VF is not able to |
---|
29 | | - * complete the action |
---|
30 | | - */ |
---|
31 | | -void cptvf_mbox_send_nack(struct cpt_vf *cptvf, struct cpt_mbox *mbx) |
---|
32 | | -{ |
---|
33 | | - mbx->msg = CPT_MBOX_MSG_TYPE_NACK; |
---|
34 | | - cptvf_send_msg_to_pf(cptvf, mbx); |
---|
35 | 15 | } |
---|
36 | 16 | |
---|
37 | 17 | /* Interrupt handler to handle mailbox messages from VFs */ |
---|