diff options
author | Wu Hao <hao.wu@intel.com> | 2018-06-29 20:53:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-15 07:55:44 -0400 |
commit | 571d78bd458a831cf51dff2afa1dda3309bd82b2 (patch) | |
tree | 9c1bc608a0caba77e4e1404a4e6f3934a90511b2 /include/linux/fpga/fpga-mgr.h | |
parent | c73c9ad286ab01bdd23076e6751d463d9ea18f44 (diff) |
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>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
-rw-r--r-- | include/linux/fpga/fpga-mgr.h | 2 |
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 { | |||
77 | * @sgt: scatter/gather table containing FPGA image | 77 | * @sgt: scatter/gather table containing FPGA image |
78 | * @buf: contiguous buffer containing FPGA image | 78 | * @buf: contiguous buffer containing FPGA image |
79 | * @count: size of buf | 79 | * @count: size of buf |
80 | * @region_id: id of target region | ||
80 | * @dev: device that owns this | 81 | * @dev: device that owns this |
81 | * @overlay: Device Tree overlay | 82 | * @overlay: Device Tree overlay |
82 | */ | 83 | */ |
@@ -89,6 +90,7 @@ struct fpga_image_info { | |||
89 | struct sg_table *sgt; | 90 | struct sg_table *sgt; |
90 | const char *buf; | 91 | const char *buf; |
91 | size_t count; | 92 | size_t count; |
93 | int region_id; | ||
92 | struct device *dev; | 94 | struct device *dev; |
93 | #ifdef CONFIG_OF | 95 | #ifdef CONFIG_OF |
94 | struct device_node *overlay; | 96 | struct device_node *overlay; |