summaryrefslogtreecommitdiff
path: root/drivers/fpga/dfl-afu.h
diff options
context:
space:
mode:
authorWu Hao <hao.wu@intel.com>2019-08-12 10:50:00 +0800
committerMoritz Fischer <mdf@kernel.org>2019-09-03 19:35:41 -0700
commit95844372f4f3df1852118438977e0048fdabc18b (patch)
tree9e26391ab855ad44454805992ee39d48fe47de93 /drivers/fpga/dfl-afu.h
parentf09991adfb3454530598586424ece3082e95fb0b (diff)
fpga: dfl: afu: expose __afu_port_enable/disable function.
As these two functions are used by other private features within the same driver module but different driver files. e.g. in error reporting private feature, it requires to clear errors when port is in reset. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Wu Hao <hao.wu@intel.com> Acked-by: Moritz Fischer <mdf@kernel.org> Acked-by: Alan Tull <atull@kernel.org> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'drivers/fpga/dfl-afu.h')
-rw-r--r--drivers/fpga/dfl-afu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/fpga/dfl-afu.h b/drivers/fpga/dfl-afu.h
index 0c7630ae3cda..83683f2e02cc 100644
--- a/drivers/fpga/dfl-afu.h
+++ b/drivers/fpga/dfl-afu.h
@@ -79,6 +79,10 @@ struct dfl_afu {
struct dfl_feature_platform_data *pdata;
};
+/* hold pdata->lock when call __afu_port_enable/disable */
+void __afu_port_enable(struct platform_device *pdev);
+int __afu_port_disable(struct platform_device *pdev);
+
void afu_mmio_region_init(struct dfl_feature_platform_data *pdata);
int afu_mmio_region_add(struct dfl_feature_platform_data *pdata,
u32 region_index, u64 region_size, u64 phys, u32 flags);