#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/random.h>
#include <linux/hdreg.h>
#include <linux/kthread.h>
#include <linux/freezer.h>
#include <linux/sysfs.h>
#include <linux/bitops.h>
#include <linux/slab.h>
#include <linux/mtd/nand_ecc.h>
#include "nand/sm_common.h"
#include "sm_ftl.h"
Go to the source code of this file.
|
| module_param (cache_timeout, int, S_IRUGO) |
|
| MODULE_PARM_DESC (cache_timeout,"Timeout (in ms) for cache flush (1000 ms default") |
|
| module_param (debug, int, S_IRUGO|S_IWUSR) |
|
| MODULE_PARM_DESC (debug,"Debug level (0-2)") |
|
ssize_t | sm_attr_show (struct device *dev, struct device_attribute *attr, char *buf) |
|
struct attribute_group * | sm_create_sysfs_attributes (struct sm_ftl *ftl) |
|
void | sm_delete_sysfs_attributes (struct sm_ftl *ftl) |
|
int | sm_get_media_info (struct sm_ftl *ftl, struct mtd_info *mtd) |
|
struct ftl_zone * | sm_get_zone (struct sm_ftl *ftl, int zone_num) |
|
void | sm_cache_init (struct sm_ftl *ftl) |
|
void | sm_cache_put (struct sm_ftl *ftl, char *buffer, int boffset) |
|
int | sm_cache_get (struct sm_ftl *ftl, char *buffer, int boffset) |
|
int | sm_cache_flush (struct sm_ftl *ftl) |
|
| module_init (sm_module_init) |
|
| module_exit (sm_module_exit) |
|
| MODULE_LICENSE ("GPL") |
|
| MODULE_AUTHOR ("Maxim Levitsky <[email protected]>") |
|
| MODULE_DESCRIPTION ("Smartmedia/xD mtd translation layer") |
|
#define SM_CIS_VENDOR_OFFSET 0x59 |
MODULE_DESCRIPTION |
( |
"Smartmedia/xD mtd translation layer" |
| ) |
|
module_exit |
( |
sm_module_exit |
| ) |
|
module_init |
( |
sm_module_init |
| ) |
|
MODULE_PARM_DESC |
( |
cache_timeout |
| ) |
|