#include <linux/init.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mtd/mtd.h>
#include <linux/err.h>
#include <linux/mtd/nand.h>
#include <linux/slab.h>
Go to the source code of this file.
|
| | module_param (dev, int, S_IRUGO) |
| |
| | MODULE_PARM_DESC (dev,"MTD device number to use") |
| |
| | module_param (page_offset, uint, S_IRUGO) |
| |
| | MODULE_PARM_DESC (page_offset,"Page number relative to dev start") |
| |
| | module_param (seed, uint, S_IRUGO) |
| |
| | MODULE_PARM_DESC (seed,"Random seed") |
| |
| | module_param (mode, int, S_IRUGO) |
| |
| | MODULE_PARM_DESC (mode,"0=incremental errors, 1=overwrite test") |
| |
| | module_init (mtd_nandbiterrs_init) |
| |
| | module_exit (mtd_nandbiterrs_exit) |
| |
| | MODULE_DESCRIPTION ("NAND bit error recovery test") |
| |
| | MODULE_AUTHOR ("Iwo Mergler") |
| |
| | MODULE_LICENSE ("GPL") |
| |
| #define BCLR |
( |
|
v, |
|
|
|
n |
|
) |
| ((v) = (v) & ~(1 << (n))) |
| #define CBIT |
( |
|
v, |
|
|
|
n |
|
) |
| ((v) & (1 << (n))) |
| #define msg |
( |
|
FMT, |
|
|
|
VA... |
|
) |
| pr_info("mtd_nandbiterrs: "FMT, ##VA) |
| MODULE_AUTHOR |
( |
"Iwo Mergler" |
| ) |
|
| module_exit |
( |
mtd_nandbiterrs_exit |
| ) |
|
| module_init |
( |
mtd_nandbiterrs_init |
| ) |
|
| MODULE_PARM_DESC |
( |
seed |
, |
|
|
"Random seed" |
|
|
) |
| |
| MODULE_PARM_DESC |
( |
mode |
, |
|
|
" |
0 = incremental errors |
|
) |
| |