aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fpga/fpga-region.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/fpga/fpga-region.h')
-rw-r--r--include/linux/fpga/fpga-region.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-region.h b/include/linux/fpga/fpga-region.h
index 8a355171406b..8c8a3249f96c 100644
--- a/include/linux/fpga/fpga-region.h
+++ b/include/linux/fpga/fpga-region.h
@@ -12,6 +12,8 @@
12 * @bridge_list: list of FPGA bridges specified in region 12 * @bridge_list: list of FPGA bridges specified in region
13 * @mgr: FPGA manager 13 * @mgr: FPGA manager
14 * @info: FPGA image info 14 * @info: FPGA image info
15 * @priv: private data
16 * @get_bridges: optional function to get bridges to a list
15 */ 17 */
16struct fpga_region { 18struct fpga_region {
17 struct device dev; 19 struct device dev;
@@ -19,10 +21,15 @@ struct fpga_region {
19 struct list_head bridge_list; 21 struct list_head bridge_list;
20 struct fpga_manager *mgr; 22 struct fpga_manager *mgr;
21 struct fpga_image_info *info; 23 struct fpga_image_info *info;
24 void *priv;
25 int (*get_bridges)(struct fpga_region *region);
22}; 26};
23 27
24#define to_fpga_region(d) container_of(d, struct fpga_region, dev) 28#define to_fpga_region(d) container_of(d, struct fpga_region, dev)
25 29
26int fpga_region_program_fpga(struct fpga_region *region); 30int fpga_region_program_fpga(struct fpga_region *region);
27 31
32int fpga_region_register(struct device *dev, struct fpga_region *region);
33int fpga_region_unregister(struct fpga_region *region);
34
28#endif /* _FPGA_REGION_H */ 35#endif /* _FPGA_REGION_H */