]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
fpga: mgr: add region_id to fpga_image_info
authorWu Hao <hao.wu@intel.com>
Sat, 30 Jun 2018 00:53:09 +0000 (08:53 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 15 Jul 2018 11:55:44 +0000 (13:55 +0200)
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>
include/linux/fpga/fpga-mgr.h

index eec7c2478b0dab4a28d8735042e3e01336a89582..3eb6b9d60d655b65d423f5215fe1186a84fc9bec 100644 (file)
@@ -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;