Go to the documentation of this file.
6 #include <linux/module.h>
7 #include <linux/types.h>
8 #include <linux/kernel.h>
10 #include <asm/byteorder.h>
11 #include <linux/errno.h>
12 #include <linux/slab.h>
17 static int maprom_read (
struct mtd_info *, loff_t,
size_t,
size_t *,
u_char *);
18 static int maprom_write (
struct mtd_info *, loff_t,
size_t,
size_t *,
const u_char *);
19 static void maprom_nop (
struct mtd_info *);
22 static unsigned long maprom_unmapped_area(
struct mtd_info *,
unsigned long,
23 unsigned long,
unsigned long);
26 .probe = map_rom_probe,
39 map->
fldrv = &maprom_chipdrv;
45 mtd->
_read = maprom_read;
46 mtd->
_write = maprom_write;
47 mtd->
_sync = maprom_nop;
48 mtd->
_erase = maprom_erase;
63 static unsigned long maprom_unmapped_area(
struct mtd_info *mtd,
81 static void maprom_nop(
struct mtd_info *mtd)
86 static int maprom_write (
struct mtd_info *mtd, loff_t to,
size_t len,
size_t *retlen,
const u_char *
buf)
97 static int __init map_rom_init(
void)
103 static void __exit map_rom_exit(
void)