blob: 2c456054fded8992d9a45b841398e8b42614f85d [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
David Woodhousea1452a32010-08-08 20:58:20 +01002 * Copyright © 2001 Red Hat UK Limited
3 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 */
20
21#ifndef __LINUX_MTD_GEN_PROBE_H__
22#define __LINUX_MTD_GEN_PROBE_H__
23
24#include <linux/mtd/flashchip.h>
Thomas Gleixner61ecfa82005-11-07 11:15:31 +000025#include <linux/mtd/map.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070026#include <linux/mtd/cfi.h>
27#include <linux/bitops.h>
28
29struct chip_probe {
30 char *name;
31 int (*probe_chip)(struct map_info *map, __u32 base,
32 unsigned long *chip_map, struct cfi_private *cfi);
33};
34
35struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
36
37#endif /* __LINUX_MTD_GEN_PROBE_H__ */