linux/drivers/mtd/chips/map_ram.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Common code to handle map devices which are simple RAM
 * (C) 2000 Red Hat.
 */

#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>


static int mapram_read (struct mtd_info *, loff_t, size_t, size_t *, u_char *);
static int mapram_write (struct mtd_info *, loff_t, size_t, size_t *, const u_char *);
static int mapram_erase (struct mtd_info *, struct erase_info *);
static void mapram_nop (struct mtd_info *);
static struct mtd_info *map_ram_probe(struct map_info *map);
static int mapram_point (struct mtd_info *mtd, loff_t from, size_t len,
			 size_t *retlen, void **virt, resource_size_t *phys);
static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len);


static struct mtd_chip_driver mapram_chipdrv =;

static struct mtd_info *map_ram_probe(struct map_info *map)
{}

static int mapram_point(struct mtd_info *mtd, loff_t from, size_t len,
			size_t *retlen, void **virt, resource_size_t *phys)
{}

static int mapram_unpoint(struct mtd_info *mtd, loff_t from, size_t len)
{}

static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
{}

static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
{}

static int mapram_erase (struct mtd_info *mtd, struct erase_info *instr)
{}

static void mapram_nop(struct mtd_info *mtd)
{}

static int __init map_ram_init(void)
{}

static void __exit map_ram_exit(void)
{}

module_init();
module_exit(map_ram_exit);

MODULE_LICENSE();
MODULE_AUTHOR();
MODULE_DESCRIPTION();