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

Go to the source code of this file.

Data Structures

struct  ssfdcr_record
 
struct  chs_entry_t
 

Macros

#define SSFDCR_MAJOR   257
 
#define SSFDCR_PARTN_BITS   3
 
#define SECTOR_SIZE   512
 
#define SECTOR_SHIFT   9
 
#define OOB_SIZE   16
 
#define MAX_LOGIC_BLK_PER_ZONE   1000
 
#define MAX_PHYS_BLK_PER_ZONE   1024
 
#define KiB(x)   ( (x) * 1024L )
 
#define MiB(x)   ( KiB(x) * 1024L )
 

Functions

 module_init (init_ssfdcr)
 
 module_exit (cleanup_ssfdcr)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Claudio Lanconelli <[email protected]>")
 
 MODULE_DESCRIPTION ("Flash Translation Layer for read-only SSFDC SmartMedia card")
 

Macro Definition Documentation

#define KiB (   x)    ( (x) * 1024L )

Definition at line 45 of file ssfdc.c.

#define MAX_LOGIC_BLK_PER_ZONE   1000

Definition at line 42 of file ssfdc.c.

#define MAX_PHYS_BLK_PER_ZONE   1024

Definition at line 43 of file ssfdc.c.

#define MiB (   x)    ( KiB(x) * 1024L )

Definition at line 46 of file ssfdc.c.

#define OOB_SIZE   16

Definition at line 40 of file ssfdc.c.

#define SECTOR_SHIFT   9

Definition at line 39 of file ssfdc.c.

#define SECTOR_SIZE   512

Definition at line 38 of file ssfdc.c.

#define SSFDCR_MAJOR   257

Definition at line 35 of file ssfdc.c.

#define SSFDCR_PARTN_BITS   3

Definition at line 36 of file ssfdc.c.

Function Documentation

MODULE_AUTHOR ( "Claudio Lanconelli <[email protected]>"  )
MODULE_DESCRIPTION ( "Flash Translation Layer for read-only SSFDC SmartMedia card )
module_exit ( cleanup_ssfdcr  )
module_init ( init_ssfdcr  )
MODULE_LICENSE ( "GPL"  )