aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorAlan Tull <atull@kernel.org>2017-11-15 15:20:19 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-28 10:30:37 -0500
commit61c32102391ff38dfd4aba835dd0f99db6b46908 (patch)
tree511334facdfa6d898fab5f692fdd56e8fb0fdfdc /include/linux/fpga/fpga-mgr.h
parented81f5fc3c35c22d0fc62813cfa4e11b6aea0a64 (diff)
fpga: region: use image info as parameter for programming region
Use FPGA image info (region->info) when region code is programming the FPGA to pass in multiple parameters. This is a baby step in refactoring the FPGA region code to separate out common FPGA region code from FPGA region Device Tree overlay support. Signed-off-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-mgr.h')
-rw-r--r--include/linux/fpga/fpga-mgr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index cb5615c87504..4fb706bd9aba 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -89,6 +89,7 @@ enum fpga_mgr_states {
89 * @buf: contiguous buffer containing FPGA image 89 * @buf: contiguous buffer containing FPGA image
90 * @count: size of buf 90 * @count: size of buf
91 * @dev: device that owns this 91 * @dev: device that owns this
92 * @overlay: Device Tree overlay
92 */ 93 */
93struct fpga_image_info { 94struct fpga_image_info {
94 u32 flags; 95 u32 flags;
@@ -100,6 +101,9 @@ struct fpga_image_info {
100 const char *buf; 101 const char *buf;
101 size_t count; 102 size_t count;
102 struct device *dev; 103 struct device *dev;
104#ifdef CONFIG_OF
105 struct device_node *overlay;
106#endif
103}; 107};
104 108
105/** 109/**