]> Git Repo - linux.git/blobdiff - include/linux/fpga/fpga-mgr.h
Merge tag 'pci-v4.16-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaa...
[linux.git] / include / linux / fpga / fpga-mgr.h
index cb5615c875047569da85005d7ca17078a9439ddd..3c6de23aabdfd27e471dbcf4ba679a297152990d 100644 (file)
@@ -89,6 +89,7 @@ enum fpga_mgr_states {
  * @buf: contiguous buffer containing FPGA image
  * @count: size of buf
  * @dev: device that owns this
+ * @overlay: Device Tree overlay
  */
 struct fpga_image_info {
        u32 flags;
@@ -100,6 +101,9 @@ struct fpga_image_info {
        const char *buf;
        size_t count;
        struct device *dev;
+#ifdef CONFIG_OF
+       struct device_node *overlay;
+#endif
 };
 
 /**
@@ -111,6 +115,7 @@ struct fpga_image_info {
  * @write_sg: write the scatter list of configuration data to the FPGA
  * @write_complete: set FPGA to operating state after writing is done
  * @fpga_remove: optional: Set FPGA into a specific state during driver remove
+ * @groups: optional attribute groups.
  *
  * fpga_manager_ops are the low level functions implemented by a specific
  * fpga manager driver.  The optional ones are tested for NULL before being
@@ -127,6 +132,7 @@ struct fpga_manager_ops {
        int (*write_complete)(struct fpga_manager *mgr,
                              struct fpga_image_info *info);
        void (*fpga_remove)(struct fpga_manager *mgr);
+       const struct attribute_group **groups;
 };
 
 /**
This page took 0.035692 seconds and 4 git commands to generate.