cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

physmap.h (808B)


      1/* SPDX-License-Identifier: GPL-2.0-or-later */
      2/*
      3 * For boards with physically mapped flash and using
      4 * 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.net
      8 */
      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__ */