Lines Matching refs:fmc_device

19 struct fmc_device;
78 int (*probe)(struct fmc_device *);
79 int (*remove)(struct fmc_device *);
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);
135 int (*reprogram)(struct fmc_device *f, struct fmc_driver *d, char *gw);
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);
147 extern int fmc_reprogram(struct fmc_device *f, struct fmc_driver *d, char *gw,
158 struct fmc_device { struct
172 struct fmc_device **devarray; /* Allocated by the bus */ argument
184 #define to_fmc_device(x) container_of((x), struct fmc_device, dev) argument
195 static inline uint32_t fmc_readl(struct fmc_device *fmc, int offset) in fmc_readl()
201 static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off) in fmc_writel()
210 static inline void *fmc_get_drvdata(const struct fmc_device *fmc) in fmc_get_drvdata()
215 static inline void fmc_set_drvdata(struct fmc_device *fmc, void *data) in fmc_set_drvdata()
223 extern int fmc_device_register(struct fmc_device *tdev);
224 extern void fmc_device_unregister(struct fmc_device *tdev);
227 extern int fmc_device_register_n(struct fmc_device **devs, int n);
228 extern void fmc_device_unregister_n(struct fmc_device **devs, int n);
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);