summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu Hao <hao.wu@intel.com>2018-06-30 02:53:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-07-15 13:55:44 +0200
commit571d78bd458a831cf51dff2afa1dda3309bd82b2 (patch)
tree9c1bc608a0caba77e4e1404a4e6f3934a90511b2
parentdocs: fpga: add a document for FPGA Device Feature List (DFL) Framework Overview (diff)
downloadlinux-571d78bd458a831cf51dff2afa1dda3309bd82b2.tar.xz
linux-571d78bd458a831cf51dff2afa1dda3309bd82b2.zip
fpga: mgr: add region_id to fpga_image_info
This patch adds region_id to fpga_image_info data structure, it allows driver to pass region id information to fpga-mgr via fpga_image_info for fpga reconfiguration function. 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--include/linux/fpga/fpga-mgr.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index eec7c2478b0d..3eb6b9d60d65 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -77,6 +77,7 @@ enum fpga_mgr_states {
* @sgt: scatter/gather table containing FPGA image
* @buf: contiguous buffer containing FPGA image
* @count: size of buf
+ * @region_id: id of target region
* @dev: device that owns this
* @overlay: Device Tree overlay
*/
@@ -89,6 +90,7 @@ struct fpga_image_info {
struct sg_table *sgt;
const char *buf;
size_t count;
+ int region_id;
struct device *dev;
#ifdef CONFIG_OF
struct device_node *overlay;