struct pci_driver pointer is an input into the pci_iov_get_pf_drvdata(). Introduce helpers to retrieve the ACC PF dev struct pci_driver pointers as we use this in ACC vfio migration driver.
Showing the changes to include (1 of 4 files). Show all
Unified · Split
| @@ -476,4 +476,9 @@ void hisi_qm_pm_init(struct hisi_qm *qm); · 475 unmodified lines | ||
| 476 | 476 | int hisi_qm_get_dfx_access(struct hisi_qm *qm); |
| 477 | 477 | void hisi_qm_put_dfx_access(struct hisi_qm *qm); |
| 478 | 478 | void hisi_qm_regs_dump(struct seq_file *s, struct debugfs_regset32 *regset); |
| 479 | + | |
| 480 | +/* Used by VFIO ACC live migration driver */ | |
| 481 | +struct pci_driver *hisi_sec_get_pf_driver(void); | |
| 482 | +struct pci_driver *hisi_hpre_get_pf_driver(void); | |
| 483 | +struct pci_driver *hisi_zip_get_pf_driver(void); | |
| 479 | 484 | #endif |