#include <linux/clk.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/fpga/fpga-bridge.h>
#define CTRL_CMD_DECOUPLE …
#define CTRL_CMD_COUPLE …
#define CTRL_OFFSET …
struct xlnx_config_data { … };
struct xlnx_pr_decoupler_data { … };
static inline void xlnx_pr_decoupler_write(struct xlnx_pr_decoupler_data *d,
u32 offset, u32 val)
{ … }
static inline u32 xlnx_pr_decouple_read(const struct xlnx_pr_decoupler_data *d,
u32 offset)
{ … }
static int xlnx_pr_decoupler_enable_set(struct fpga_bridge *bridge, bool enable)
{ … }
static int xlnx_pr_decoupler_enable_show(struct fpga_bridge *bridge)
{ … }
static const struct fpga_bridge_ops xlnx_pr_decoupler_br_ops = …;
static const struct xlnx_config_data decoupler_config = …;
static const struct xlnx_config_data shutdown_config = …;
static const struct of_device_id xlnx_pr_decoupler_of_match[] = …;
MODULE_DEVICE_TABLE(of, xlnx_pr_decoupler_of_match);
static int xlnx_pr_decoupler_probe(struct platform_device *pdev)
{ … }
static void xlnx_pr_decoupler_remove(struct platform_device *pdev)
{ … }
static struct platform_driver xlnx_pr_decoupler_driver = …;
module_platform_driver(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_LICENSE(…) …;