Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rfd_ftl.c File Reference
#include <linux/hdreg.h>
#include <linux/init.h>
#include <linux/mtd/blktrans.h>
#include <linux/mtd/mtd.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
#include <linux/module.h>
#include <asm/types.h>

Go to the source code of this file.

Data Structures

struct  block
 
struct  partition
 

Macros

#define PREFIX   "rfd_ftl: "
 
#define RFD_FTL_MAJOR   256
 
#define PART_BITS   4
 
#define RFD_MAGIC   0x9193
 
#define HEADER_MAP_OFFSET   3
 
#define SECTOR_DELETED   0x0000
 
#define SECTOR_ZERO   0xfffe
 
#define SECTOR_FREE   0xffff
 
#define SECTOR_SIZE   512
 
#define SECTORS_PER_TRACK   63
 

Functions

 module_param (block_size, int, 0)
 
 MODULE_PARM_DESC (block_size,"Block size to use by RFD, defaults to erase unit size")
 
 module_init (init_rfd_ftl)
 
 module_exit (cleanup_rfd_ftl)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Sean Young <[email protected]>")
 
 MODULE_DESCRIPTION ("Support code for RFD Flash Translation Layer, ""used by General Software's Embedded BIOS")
 

Macro Definition Documentation

#define HEADER_MAP_OFFSET   3

Definition at line 47 of file rfd_ftl.c.

#define PART_BITS   4

Definition at line 37 of file rfd_ftl.c.

#define PREFIX   "rfd_ftl: "

Definition at line 29 of file rfd_ftl.c.

#define RFD_FTL_MAJOR   256

Definition at line 33 of file rfd_ftl.c.

#define RFD_MAGIC   0x9193

Definition at line 40 of file rfd_ftl.c.

#define SECTOR_DELETED   0x0000

Definition at line 48 of file rfd_ftl.c.

#define SECTOR_FREE   0xffff

Definition at line 50 of file rfd_ftl.c.

#define SECTOR_SIZE   512

Definition at line 52 of file rfd_ftl.c.

#define SECTOR_ZERO   0xfffe

Definition at line 49 of file rfd_ftl.c.

#define SECTORS_PER_TRACK   63

Definition at line 54 of file rfd_ftl.c.

Function Documentation

MODULE_AUTHOR ( "Sean Young <[email protected]>"  )
MODULE_DESCRIPTION ( "Support code for RFD Flash Translation  Layer,
""used by General Software's Embedded BIOS  
)
module_exit ( cleanup_rfd_ftl  )
module_init ( init_rfd_ftl  )
MODULE_LICENSE ( "GPL"  )
module_param ( block_size  ,
int  ,
 
)
MODULE_PARM_DESC ( block_size  ,
"Block size to use by  RFD,
defaults to erase unit size  
)