]>
Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
1da177e4 | 2 | /* |
61ecfa87 | 3 | * For boards with physically mapped flash and using |
1da177e4 LT |
4 | * drivers/mtd/maps/physmap.c mapping driver. |
5 | * | |
1da177e4 LT |
6 | * Copyright (C) 2003 MontaVista Software Inc. |
7 | * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net | |
1da177e4 LT |
8 | */ |
9 | ||
10 | #ifndef __LINUX_MTD_PHYSMAP__ | |
0d4e30d2 | 11 | #define __LINUX_MTD_PHYSMAP__ |
1da177e4 LT |
12 | |
13 | #include <linux/mtd/mtd.h> | |
1da177e4 LT |
14 | #include <linux/mtd/partitions.h> |
15 | ||
ad7d3144 | 16 | struct map_info; |
63da0290 | 17 | struct platform_device; |
ad7d3144 | 18 | |
73566edf LB |
19 | struct physmap_flash_data { |
20 | unsigned int width; | |
b7281ca2 MZ |
21 | int (*init)(struct platform_device *); |
22 | void (*exit)(struct platform_device *); | |
667f390b | 23 | void (*set_vpp)(struct platform_device *, int); |
73566edf | 24 | unsigned int nr_parts; |
d8140830 | 25 | unsigned int pfow_base; |
78ef7fab | 26 | char *probe_type; |
73566edf | 27 | struct mtd_partition *parts; |
f39cf6c7 | 28 | const char * const *part_probe_types; |
73566edf | 29 | }; |
1da177e4 | 30 | |
1da177e4 | 31 | #endif /* __LINUX_MTD_PHYSMAP__ */ |