#include <linux/module.h>
#include <linux/ioport.h>
#include <linux/init.h>
#include <asm/io.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/map.h>
#include <linux/mtd/partitions.h>
#define WINDOW_START …
#define WINDOW_SHIFT …
#define WINDOW_LENGTH …
#define WINDOW_MASK …
#define PAGE_IO …
#define PAGE_IO_SIZE …
#define DEVICE_ENABLE …
#define MAX_SIZE_KiB …
#define BOOT_PARTITION_SIZE_KiB …
#define DATA_PARTITION_SIZE_KiB …
#define APP_PARTITION_SIZE_KiB …
static volatile int page_in_window = …;
static void __iomem *iomapadr;
static DEFINE_SPINLOCK(sbc_gxx_spin);
static const struct mtd_partition partition_info[] = …;
#define NUM_PARTITIONS …
static inline void sbc_gxx_page(struct map_info *map, unsigned long ofs)
{ … }
static map_word sbc_gxx_read8(struct map_info *map, unsigned long ofs)
{ … }
static void sbc_gxx_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len)
{ … }
static void sbc_gxx_write8(struct map_info *map, map_word d, unsigned long adr)
{ … }
static void sbc_gxx_copy_to(struct map_info *map, unsigned long to, const void *from, ssize_t len)
{ … }
static struct map_info sbc_gxx_map = …;
static struct mtd_info *all_mtd;
static void cleanup_sbc_gxx(void)
{ … }
static int __init init_sbc_gxx(void)
{ … }
module_init(…) …;
module_exit(cleanup_sbc_gxx);
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;