#include <linux/delay.h>
#include <linux/fpga/altera-pr-ip-core.h>
#include <linux/fpga/fpga-mgr.h>
#include <linux/module.h>
#define ALT_PR_DATA_OFST …
#define ALT_PR_CSR_OFST …
#define ALT_PR_CSR_PR_START …
#define ALT_PR_CSR_STATUS_SFT …
#define ALT_PR_CSR_STATUS_MSK …
#define ALT_PR_CSR_STATUS_NRESET …
#define ALT_PR_CSR_STATUS_PR_ERR …
#define ALT_PR_CSR_STATUS_CRC_ERR …
#define ALT_PR_CSR_STATUS_BAD_BITS …
#define ALT_PR_CSR_STATUS_PR_IN_PROG …
#define ALT_PR_CSR_STATUS_PR_SUCCESS …
struct alt_pr_priv { … };
static enum fpga_mgr_states alt_pr_fpga_state(struct fpga_manager *mgr)
{ … }
static int alt_pr_fpga_write_init(struct fpga_manager *mgr,
struct fpga_image_info *info,
const char *buf, size_t count)
{ … }
static int alt_pr_fpga_write(struct fpga_manager *mgr, const char *buf,
size_t count)
{ … }
static int alt_pr_fpga_write_complete(struct fpga_manager *mgr,
struct fpga_image_info *info)
{ … }
static const struct fpga_manager_ops alt_pr_ops = …;
int alt_pr_register(struct device *dev, void __iomem *reg_base)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;