brintos

brintos / linux-shallow public Read only

0
0
Text · 808 B · bfaa9cc Raw
32 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * For boards with physically mapped flash and using4 * drivers/mtd/maps/physmap.c mapping driver.5 *6 * Copyright (C) 2003 MontaVista Software Inc.7 * Author: Jun Sun, jsun@mvista.com or jsun@junsun.net8 */9 10#ifndef __LINUX_MTD_PHYSMAP__11#define __LINUX_MTD_PHYSMAP__12 13#include <linux/mtd/mtd.h>14#include <linux/mtd/partitions.h>15 16struct map_info;17struct platform_device;18 19struct physmap_flash_data {20	unsigned int		width;21	int			(*init)(struct platform_device *);22	void			(*exit)(struct platform_device *);23	void			(*set_vpp)(struct platform_device *, int);24	unsigned int		nr_parts;25	unsigned int		pfow_base;26	char                    *probe_type;27	struct mtd_partition	*parts;28	const char * const	*part_probe_types;29};30 31#endif /* __LINUX_MTD_PHYSMAP__ */32