aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-22 14:38:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-22 14:38:22 -0500
commite30aee9e10bb5168579e047f05c3d13d09e23356 (patch)
tree12371bdcd52d2427cad838201997479e31b6a9c9 /include/linux/fpga/fpga-mgr.h
parent8ff546b801e5cca0337c0f0a7234795d0a6309a1 (diff)
parent6cf18e6927c0b224f972e3042fb85770d63cb9f8 (diff)
Merge tag 'char-misc-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc driver updates from Greg KH: "Here is the big char/misc driver patchset for 4.11-rc1. Lots of different driver subsystems updated here: rework for the hyperv subsystem to handle new platforms better, mei and w1 and extcon driver updates, as well as a number of other "minor" driver updates. All of these have been in linux-next for a while with no reported issues" * tag 'char-misc-4.11-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: (169 commits) goldfish: Sanitize the broken interrupt handler x86/platform/goldfish: Prevent unconditional loading vmbus: replace modulus operation with subtraction vmbus: constify parameters where possible vmbus: expose hv_begin/end_read vmbus: remove conditional locking of vmbus_write vmbus: add direct isr callback mode vmbus: change to per channel tasklet vmbus: put related per-cpu variable together vmbus: callback is in softirq not workqueue binder: Add support for file-descriptor arrays binder: Add support for scatter-gather binder: Add extra size to allocator binder: Refactor binder_transact() binder: Support multiple /dev instances binder: Deal with contexts in debugfs binder: Support multiple context managers binder: Split flat_binder_object auxdisplay: ht16k33: remove private workqueue auxdisplay: ht16k33: rework input device initialization ...
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
-rw-r--r--include/linux/fpga/fpga-mgr.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h
index 16551d5eac36..57beb5d09bfc 100644
--- a/include/linux/fpga/fpga-mgr.h
+++ b/include/linux/fpga/fpga-mgr.h
@@ -22,6 +22,7 @@
22#define _LINUX_FPGA_MGR_H 22#define _LINUX_FPGA_MGR_H
23 23
24struct fpga_manager; 24struct fpga_manager;
25struct sg_table;
25 26
26/** 27/**
27 * enum fpga_mgr_states - fpga framework states 28 * enum fpga_mgr_states - fpga framework states
@@ -88,6 +89,7 @@ struct fpga_image_info {
88 * @state: returns an enum value of the FPGA's state 89 * @state: returns an enum value of the FPGA's state
89 * @write_init: prepare the FPGA to receive confuration data 90 * @write_init: prepare the FPGA to receive confuration data
90 * @write: write count bytes of configuration data to the FPGA 91 * @write: write count bytes of configuration data to the FPGA
92 * @write_sg: write the scatter list of configuration data to the FPGA
91 * @write_complete: set FPGA to operating state after writing is done 93 * @write_complete: set FPGA to operating state after writing is done
92 * @fpga_remove: optional: Set FPGA into a specific state during driver remove 94 * @fpga_remove: optional: Set FPGA into a specific state during driver remove
93 * 95 *
@@ -102,6 +104,7 @@ struct fpga_manager_ops {
102 struct fpga_image_info *info, 104 struct fpga_image_info *info,
103 const char *buf, size_t count); 105 const char *buf, size_t count);
104 int (*write)(struct fpga_manager *mgr, const char *buf, size_t count); 106 int (*write)(struct fpga_manager *mgr, const char *buf, size_t count);
107 int (*write_sg)(struct fpga_manager *mgr, struct sg_table *sgt);
105 int (*write_complete)(struct fpga_manager *mgr, 108 int (*write_complete)(struct fpga_manager *mgr,
106 struct fpga_image_info *info); 109 struct fpga_image_info *info);
107 void (*fpga_remove)(struct fpga_manager *mgr); 110 void (*fpga_remove)(struct fpga_manager *mgr);
@@ -129,6 +132,8 @@ struct fpga_manager {
129 132
130int fpga_mgr_buf_load(struct fpga_manager *mgr, struct fpga_image_info *info, 133int fpga_mgr_buf_load(struct fpga_manager *mgr, struct fpga_image_info *info,
131 const char *buf, size_t count); 134 const char *buf, size_t count);
135int fpga_mgr_buf_load_sg(struct fpga_manager *mgr, struct fpga_image_info *info,
136 struct sg_table *sgt);
132 137
133int fpga_mgr_firmware_load(struct fpga_manager *mgr, 138int fpga_mgr_firmware_load(struct fpga_manager *mgr,
134 struct fpga_image_info *info, 139 struct fpga_image_info *info,