#include <linux/delay.h>
#include <linux/fpga/fpga-mgr.h>
#include <linux/gpio/consumer.h>
#include <linux/iopoll.h>
#include "lattice-sysconfig.h"
static int sysconfig_cmd_write(struct sysconfig_priv *priv, const void *buf,
size_t buf_len)
{ … }
static int sysconfig_cmd_read(struct sysconfig_priv *priv, const void *tx_buf,
size_t tx_len, void *rx_buf, size_t rx_len)
{ … }
static int sysconfig_read_busy(struct sysconfig_priv *priv)
{ … }
static int sysconfig_poll_busy(struct sysconfig_priv *priv)
{ … }
static int sysconfig_read_status(struct sysconfig_priv *priv, u32 *status)
{ … }
static int sysconfig_poll_status(struct sysconfig_priv *priv, u32 *status)
{ … }
static int sysconfig_poll_gpio(struct gpio_desc *gpio, bool is_active)
{ … }
static int sysconfig_gpio_refresh(struct sysconfig_priv *priv)
{ … }
static int sysconfig_lsc_refresh(struct sysconfig_priv *priv)
{ … }
static int sysconfig_refresh(struct sysconfig_priv *priv)
{ … }
static int sysconfig_isc_enable(struct sysconfig_priv *priv)
{ … }
static int sysconfig_isc_erase(struct sysconfig_priv *priv)
{ … }
static int sysconfig_isc_init(struct sysconfig_priv *priv)
{ … }
static int sysconfig_lsc_init_addr(struct sysconfig_priv *priv)
{ … }
static int sysconfig_burst_write_init(struct sysconfig_priv *priv)
{ … }
static int sysconfig_burst_write_complete(struct sysconfig_priv *priv)
{ … }
static int sysconfig_bitstream_burst_write(struct sysconfig_priv *priv,
const char *buf, size_t count)
{ … }
static int sysconfig_isc_disable(struct sysconfig_priv *priv)
{ … }
static void sysconfig_cleanup(struct sysconfig_priv *priv)
{ … }
static int sysconfig_isc_finish(struct sysconfig_priv *priv)
{ … }
static enum fpga_mgr_states sysconfig_ops_state(struct fpga_manager *mgr)
{ … }
static int sysconfig_ops_write_init(struct fpga_manager *mgr,
struct fpga_image_info *info,
const char *buf, size_t count)
{ … }
static int sysconfig_ops_write(struct fpga_manager *mgr, const char *buf,
size_t count)
{ … }
static int sysconfig_ops_write_complete(struct fpga_manager *mgr,
struct fpga_image_info *info)
{ … }
static const struct fpga_manager_ops sysconfig_fpga_mgr_ops = …;
int sysconfig_probe(struct sysconfig_priv *priv)
{ … }
EXPORT_SYMBOL(…);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;