blob: 8fcdac56047d679d3354c3a67a5dc81157aaf5b8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001From 49878e0759161d357782802f954886bae7bcc83b Mon Sep 17 00:00:00 2001
2From: Diana Craciun <diana.craciun@nxp.com>
3Date: Thu, 21 Nov 2019 15:06:47 +0200
4Subject: [PATCH] bus/fsl-mc: Extend functions from the bus driver to be used
5 by vfio-mc
6
7The bus/dpcr driver use some common functions, export those
8functions to be accessible from the vfio-mc driver.
9
10Signed-off-by: Diana Craciun <diana.craciun@nxp.com>
11---
12 drivers/bus/fsl-mc/fsl-mc-private.h | 8 --------
13 include/linux/fsl/mc.h | 8 ++++++++
14 2 files changed, 8 insertions(+), 8 deletions(-)
15
16--- a/drivers/bus/fsl-mc/fsl-mc-private.h
17+++ b/drivers/bus/fsl-mc/fsl-mc-private.h
18@@ -182,14 +182,6 @@ int fsl_mc_msi_domain_alloc_irqs(struct
19
20 void fsl_mc_msi_domain_free_irqs(struct device *dev);
21
22-int __must_check fsl_create_mc_io(struct device *dev,
23- phys_addr_t mc_portal_phys_addr,
24- u32 mc_portal_size,
25- struct fsl_mc_device *dpmcp_dev,
26- u32 flags, struct fsl_mc_io **new_mc_io);
27-
28-void fsl_destroy_mc_io(struct fsl_mc_io *mc_io);
29-
30 bool fsl_mc_is_root_dprc(struct device *dev);
31
32 #ifdef CONFIG_FSL_MC_UAPI_SUPPORT
33--- a/include/linux/fsl/mc.h
34+++ b/include/linux/fsl/mc.h
35@@ -1013,6 +1013,14 @@ int dprc_scan_objects(struct fsl_mc_devi
36 bool alloc_interrupts,
37 unsigned int *total_irq_count);
38
39+int __must_check fsl_create_mc_io(struct device *dev,
40+ phys_addr_t mc_portal_phys_addr,
41+ u32 mc_portal_size,
42+ struct fsl_mc_device *dpmcp_dev,
43+ u32 flags, struct fsl_mc_io **new_mc_io);
44+
45+void fsl_destroy_mc_io(struct fsl_mc_io *mc_io);
46+
47 int fsl_mc_find_msi_domain(struct device *mc_platform_dev,
48 struct irq_domain **mc_msi_domain);
49