Lines Matching refs:fmc

132 	uint32_t (*read32)(struct fmc_device *fmc, int offset);
133 void (*write32)(struct fmc_device *fmc, uint32_t value, int offset);
134 int (*validate)(struct fmc_device *fmc, struct fmc_driver *drv);
136 int (*irq_request)(struct fmc_device *fmc, irq_handler_t h,
138 void (*irq_ack)(struct fmc_device *fmc);
139 int (*irq_free)(struct fmc_device *fmc);
140 int (*gpio_config)(struct fmc_device *fmc, struct fmc_gpio *gpio,
142 int (*read_ee)(struct fmc_device *fmc, int pos, void *d, int l);
143 int (*write_ee)(struct fmc_device *fmc, int pos, const void *d, int l);
195 static inline uint32_t fmc_readl(struct fmc_device *fmc, int offset) in fmc_readl() argument
197 if (unlikely(fmc->op->read32)) in fmc_readl()
198 return fmc->op->read32(fmc, offset); in fmc_readl()
199 return readl(fmc->fpga_base + offset); in fmc_readl()
201 static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off) in fmc_writel() argument
203 if (unlikely(fmc->op->write32)) in fmc_writel()
204 fmc->op->write32(fmc, val, off); in fmc_writel()
206 writel(val, fmc->fpga_base + off); in fmc_writel()
210 static inline void *fmc_get_drvdata(const struct fmc_device *fmc) in fmc_get_drvdata() argument
212 return dev_get_drvdata(&fmc->dev); in fmc_get_drvdata()
215 static inline void fmc_set_drvdata(struct fmc_device *fmc, void *data) in fmc_set_drvdata() argument
217 dev_set_drvdata(&fmc->dev, data); in fmc_set_drvdata()
232 extern int fmc_fill_id_info(struct fmc_device *fmc);
233 extern void fmc_free_id_info(struct fmc_device *fmc);
234 extern void fmc_dump_eeprom(const struct fmc_device *fmc);
235 extern void fmc_dump_sdb(const struct fmc_device *fmc);