Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
ftl.c File Reference
#include <linux/mtd/blktrans.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/major.h>
#include <linux/fs.h>
#include <linux/init.h>
#include <linux/hdreg.h>
#include <linux/vmalloc.h>
#include <linux/blkpg.h>
#include <asm/uaccess.h>
#include <linux/mtd/ftl.h>

Go to the source code of this file.

Data Structures

struct  partition_t
 
struct  partition_t::eun_info_t
 
struct  partition_t::xfer_info_t
 

Macros

#define FTL_MAJOR   44
 
#define MAX_DEV   4
 
#define MAX_REGION   4
 
#define PART_BITS   4
 
#define MAX_ERASE   8
 
#define SECTOR_SIZE   512
 
#define FTL_FORMATTED   0x01
 
#define XFER_UNKNOWN   0x00
 
#define XFER_ERASING   0x01
 
#define XFER_ERASED   0x02
 
#define XFER_PREPARED   0x03
 
#define XFER_FAILED   0x04
 

Typedefs

typedef struct partition_t partition_t
 

Functions

 module_param (shuffle_freq, int, 0)
 
 module_init (init_ftl)
 
 module_exit (cleanup_ftl)
 
 MODULE_LICENSE ("Dual MPL/GPL")
 
 MODULE_AUTHOR ("David Hinds <[email protected]>")
 
 MODULE_DESCRIPTION ("Support code for Flash Translation Layer, used on PCMCIA devices")
 

Macro Definition Documentation

#define FTL_FORMATTED   0x01

Definition at line 135 of file ftl.c.

#define FTL_MAJOR   44

Definition at line 87 of file ftl.c.

#define MAX_DEV   4

Definition at line 94 of file ftl.c.

#define MAX_ERASE   8

Definition at line 103 of file ftl.c.

#define MAX_REGION   4

Definition at line 97 of file ftl.c.

#define PART_BITS   4

Definition at line 100 of file ftl.c.

#define SECTOR_SIZE   512

Definition at line 106 of file ftl.c.

#define XFER_ERASED   0x02

Definition at line 140 of file ftl.c.

#define XFER_ERASING   0x01

Definition at line 139 of file ftl.c.

#define XFER_FAILED   0x04

Definition at line 142 of file ftl.c.

#define XFER_PREPARED   0x03

Definition at line 141 of file ftl.c.

#define XFER_UNKNOWN   0x00

Definition at line 138 of file ftl.c.

Typedef Documentation

Function Documentation

MODULE_AUTHOR ( "David Hinds <[email protected]>"  )
MODULE_DESCRIPTION ( "Support code for Flash Translation  Layer,
used on PCMCIA devices  
)
module_exit ( cleanup_ftl  )
module_init ( init_ftl  )
MODULE_LICENSE ( "Dual MPL/GPL"  )
module_param ( shuffle_freq  ,
int  ,
 
)