Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright © 2001      Red Hat UK Limited
0004  * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org>
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 /* __LINUX_MTD_GEN_PROBE_H__ */