#include <linux/dma-mapping.h>
#include <linux/fpga/fpga-mgr.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/string.h>
#include <linux/firmware/xlnx-zynqmp.h>
#define IXR_FPGA_DONE_MASK …
struct zynqmp_fpga_priv { … };
static int zynqmp_fpga_ops_write_init(struct fpga_manager *mgr,
struct fpga_image_info *info,
const char *buf, size_t size)
{ … }
static int zynqmp_fpga_ops_write(struct fpga_manager *mgr,
const char *buf, size_t size)
{ … }
static enum fpga_mgr_states zynqmp_fpga_ops_state(struct fpga_manager *mgr)
{ … }
static ssize_t status_show(struct device *dev,
struct device_attribute *attr, char *buf)
{ … }
static DEVICE_ATTR_RO(status);
static struct attribute *zynqmp_fpga_attrs[] = …;
ATTRIBUTE_GROUPS(…);
static const struct fpga_manager_ops zynqmp_fpga_ops = …;
static int zynqmp_fpga_probe(struct platform_device *pdev)
{ … }
#ifdef CONFIG_OF
static const struct of_device_id zynqmp_fpga_of_match[] = …;
MODULE_DEVICE_TABLE(of, zynqmp_fpga_of_match);
#endif
static struct platform_driver zynqmp_fpga_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;