linux/drivers/mtd/tests/pagetest.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2006-2008 Nokia Corporation
 *
 * Test page read and write on MTD device.
 *
 * Author: Adrian Hunter <[email protected]>
 */

#define pr_fmt(fmt)

#include <asm/div64.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/err.h>
#include <linux/mtd/mtd.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/random.h>

#include "mtd_test.h"

static int dev =;
module_param(dev, int, S_IRUGO);
MODULE_PARM_DESC();

static struct mtd_info *mtd;
static unsigned char *twopages;
static unsigned char *writebuf;
static unsigned char *boundary;
static unsigned char *bbt;

static int pgsize;
static int bufsize;
static int ebcnt;
static int pgcnt;
static int errcnt;
static struct rnd_state rnd_state;

static int write_eraseblock(int ebnum)
{}

static int verify_eraseblock(int ebnum)
{}

static int crosstest(void)
{}

static int erasecrosstest(void)
{}

static int erasetest(void)
{}

static int __init mtd_pagetest_init(void)
{}
module_init(mtd_pagetest_init);

static void __exit mtd_pagetest_exit(void)
{}
module_exit(mtd_pagetest_exit);

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