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>
This commit is contained in:
Wu Hao 2018-06-30 08:53:09 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель c73c9ad286
Коммит 571d78bd45
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -77,6 +77,7 @@ enum fpga_mgr_states {
* @sgt: scatter/gather table containing FPGA image * @sgt: scatter/gather table containing FPGA image
* @buf: contiguous buffer containing FPGA image * @buf: contiguous buffer containing FPGA image
* @count: size of buf * @count: size of buf
* @region_id: id of target region
* @dev: device that owns this * @dev: device that owns this
* @overlay: Device Tree overlay * @overlay: Device Tree overlay
*/ */
@ -89,6 +90,7 @@ struct fpga_image_info {
struct sg_table *sgt; struct sg_table *sgt;
const char *buf; const char *buf;
size_t count; size_t count;
int region_id;
struct device *dev; struct device *dev;
#ifdef CONFIG_OF #ifdef CONFIG_OF
struct device_node *overlay; struct device_node *overlay;