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_raw)(struct fmc_device *f, struct fmc_driver *d,
137 int (*reprogram)(struct fmc_device *f, struct fmc_driver *d, char *gw);
138 int (*irq_request)(struct fmc_device *fmc, irq_handler_t h,
140 void (*irq_ack)(struct fmc_device *fmc);
141 int (*irq_free)(struct fmc_device *fmc);
142 int (*gpio_config)(struct fmc_device *fmc, struct fmc_gpio *gpio,
144 int (*read_ee)(struct fmc_device *fmc, int pos, void *d, int l);
145 int (*write_ee)(struct fmc_device *fmc, int pos, const void *d, int l);
149 int fmc_reprogram_raw(struct fmc_device *fmc, struct fmc_driver *d,
151 extern int fmc_reprogram(struct fmc_device *f, struct fmc_driver *d, char *gw,
162 struct fmc_device { struct
176 struct fmc_device **devarray; /* Allocated by the bus */ argument
191 #define to_fmc_device(x) container_of((x), struct fmc_device, dev) argument
202 static inline uint32_t fmc_readl(struct fmc_device *fmc, int offset) in fmc_readl()
208 static inline void fmc_writel(struct fmc_device *fmc, uint32_t val, int off) in fmc_writel()
217 static inline void *fmc_get_drvdata(const struct fmc_device *fmc) in fmc_get_drvdata()
222 static inline void fmc_set_drvdata(struct fmc_device *fmc, void *data) in fmc_set_drvdata()
235 extern int fmc_device_register(struct fmc_device *tdev);
236 extern int fmc_device_register_gw(struct fmc_device *tdev,
238 extern void fmc_device_unregister(struct fmc_device *tdev);
241 extern int fmc_device_register_n(struct fmc_device **devs, int n);
242 extern int fmc_device_register_n_gw(struct fmc_device **devs, int n,
244 extern void fmc_device_unregister_n(struct fmc_device **devs, int n);
248 extern int fmc_fill_id_info(struct fmc_device *fmc);
249 extern void fmc_free_id_info(struct fmc_device *fmc);
250 extern void fmc_dump_eeprom(const struct fmc_device *fmc);
253 extern int fmc_irq_request(struct fmc_device *fmc, irq_handler_t h,
255 extern void fmc_irq_free(struct fmc_device *fmc);
256 extern void fmc_irq_ack(struct fmc_device *fmc);
257 extern int fmc_validate(struct fmc_device *fmc, struct fmc_driver *drv);
258 extern int fmc_gpio_config(struct fmc_device *fmc, struct fmc_gpio *gpio,
260 extern int fmc_read_ee(struct fmc_device *fmc, int pos, void *d, int l);
261 extern int fmc_write_ee(struct fmc_device *fmc, int pos, const void *d, int l);
264 extern int fmc_irq_request(struct fmc_device *fmc, irq_handler_t h,
266 extern void fmc_irq_free(struct fmc_device *fmc);
267 extern void fmc_irq_ack(struct fmc_device *fmc);
268 extern int fmc_validate(struct fmc_device *fmc, struct fmc_driver *drv);