1 /* SPDX-License-Identifier: GPL-2.0-only
2 * Copyright (C) 2020 Marvell.
9 #include "otx2_cptlf.h"
11 struct otx2_cptvf_dev {
12 void __iomem *reg_base; /* Register start address */
13 void __iomem *pfvf_mbox_base; /* PF-VF mbox start address */
14 struct pci_dev *pdev; /* PCI device handle */
15 struct otx2_cptlfs_info lfs; /* CPT LFs attached to this VF */
16 u8 vf_id; /* Virtual function index */
19 struct otx2_mbox pfvf_mbox;
20 struct work_struct pfvf_mbox_work;
21 struct workqueue_struct *pfvf_mbox_wq;
23 unsigned long cap_flag;
26 irqreturn_t otx2_cptvf_pfvf_mbox_intr(int irq, void *arg);
27 void otx2_cptvf_pfvf_mbox_handler(struct work_struct *work);
28 int otx2_cptvf_send_eng_grp_num_msg(struct otx2_cptvf_dev *cptvf, int eng_type);
29 int otx2_cptvf_send_kvf_limits_msg(struct otx2_cptvf_dev *cptvf);
30 int otx2_cpt_mbox_bbuf_init(struct otx2_cptvf_dev *cptvf, struct pci_dev *pdev);
32 #endif /* __OTX2_CPTVF_H */