gen_probe.h 561 B

1234567891011121314151617181920212223
  1. /*
  2. * (C) 2001, 2001 Red Hat, Inc.
  3. * GPL'd
  4. * $Id: gen_probe.h,v 1.1.1.1 2007/06/12 07:27:16 eyryu Exp $
  5. */
  6. #ifndef __LINUX_MTD_GEN_PROBE_H__
  7. #define __LINUX_MTD_GEN_PROBE_H__
  8. #include <linux/mtd/flashchip.h>
  9. #include <linux/mtd/map.h>
  10. #include <linux/mtd/cfi.h>
  11. #include <linux/bitops.h>
  12. struct chip_probe {
  13. char *name;
  14. int (*probe_chip)(struct map_info *map, __u32 base,
  15. unsigned long *chip_map, struct cfi_private *cfi);
  16. };
  17. struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
  18. #endif /* __LINUX_MTD_GEN_PROBE_H__ */