appletalk: remove the BKL
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / mtd / gen_probe.h
blob2c456054fded8992d9a45b841398e8b42614f85d
1 /*
2 * Copyright © 2001 Red Hat UK Limited
3 * Copyright © 2001-2010 David Woodhouse <dwmw2@infradead.org>
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.
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.
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
21 #ifndef __LINUX_MTD_GEN_PROBE_H__
22 #define __LINUX_MTD_GEN_PROBE_H__
24 #include <linux/mtd/flashchip.h>
25 #include <linux/mtd/map.h>
26 #include <linux/mtd/cfi.h>
27 #include <linux/bitops.h>
29 struct chip_probe {
30 char *name;
31 int (*probe_chip)(struct map_info *map, __u32 base,
32 unsigned long *chip_map, struct cfi_private *cfi);
35 struct mtd_info *mtd_do_chip_probe(struct map_info *map, struct chip_probe *cp);
37 #endif /* __LINUX_MTD_GEN_PROBE_H__ */