0001
0002
0003
0004
0005
0006
0007 #ifndef __LINUX_MTD_GEN_PROBE_H__
0008 #define __LINUX_MTD_GEN_PROBE_H__
0009
0010 #include <linux/mtd/flashchip.h>
0011 #include <linux/mtd/map.h>
0012 #include <linux/mtd/cfi.h>
0013 #include <linux/bitops.h>
0014
0015 struct chip_probe {
0016 char *name;
0017 int (*probe_chip)(struct map_info *map, __u32 base,
0018 unsigned long *chip_map, struct cfi_private *cfi);
0019 };
0020
0021 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
0022
0023 #endif