diff options
author | Wu Hao <hao.wu@intel.com> | 2018-06-29 20:53:12 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-15 07:55:44 -0400 |
commit | 41a8b2c56470b7e4e3e2db93324d50bbbf60cdc4 (patch) | |
tree | 4e3314c007e056d39805aa8e49cd42678ac9926a /include/linux/fpga/fpga-region.h | |
parent | 99a560bde313892f87ca81db568a829d3d205882 (diff) |
fpga: region: add compat_id support
This patch introduces a compat_id pointer member and sysfs interface
for each fpga region, similar as compat_id for fpga manager, it allows
applications to read the per region compat_id for compatibility
checking before other actions on this fpga-region (e.g. PR).
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Alan Tull <atull@kernel.org>
Acked-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-region.h')
-rw-r--r-- | include/linux/fpga/fpga-region.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-region.h b/include/linux/fpga/fpga-region.h index d7071cddd727..0521b7f577a4 100644 --- a/include/linux/fpga/fpga-region.h +++ b/include/linux/fpga/fpga-region.h | |||
@@ -14,6 +14,7 @@ | |||
14 | * @bridge_list: list of FPGA bridges specified in region | 14 | * @bridge_list: list of FPGA bridges specified in region |
15 | * @mgr: FPGA manager | 15 | * @mgr: FPGA manager |
16 | * @info: FPGA image info | 16 | * @info: FPGA image info |
17 | * @compat_id: FPGA region id for compatibility check. | ||
17 | * @priv: private data | 18 | * @priv: private data |
18 | * @get_bridges: optional function to get bridges to a list | 19 | * @get_bridges: optional function to get bridges to a list |
19 | */ | 20 | */ |
@@ -23,6 +24,7 @@ struct fpga_region { | |||
23 | struct list_head bridge_list; | 24 | struct list_head bridge_list; |
24 | struct fpga_manager *mgr; | 25 | struct fpga_manager *mgr; |
25 | struct fpga_image_info *info; | 26 | struct fpga_image_info *info; |
27 | struct fpga_compat_id *compat_id; | ||
26 | void *priv; | 28 | void *priv; |
27 | int (*get_bridges)(struct fpga_region *region); | 29 | int (*get_bridges)(struct fpga_region *region); |
28 | }; | 30 | }; |