Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sharpsl.c File Reference
#include <linux/genhd.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/nand.h>
#include <linux/mtd/nand_ecc.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/sharpsl.h>
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <asm/io.h>
#include <mach/hardware.h>
#include <asm/mach-types.h>

Go to the source code of this file.

Data Structures

struct  sharpsl_nand
 

Macros

#define mtd_to_sharpsl(_mtd)   container_of(_mtd, struct sharpsl_nand, mtd)
 
#define ECCLPLB   0x00 /* line parity 7 - 0 bit */
 
#define ECCLPUB   0x04 /* line parity 15 - 8 bit */
 
#define ECCCP   0x08 /* column parity 5 - 0 bit */
 
#define ECCCNTR   0x0C /* ECC byte counter */
 
#define ECCCLRR   0x10 /* cleare ECC */
 
#define FLASHIO   0x14 /* Flash I/O */
 
#define FLASHCTL   0x18 /* Flash Control */
 
#define FLRYBY   (1 << 5)
 
#define FLCE1   (1 << 4)
 
#define FLWP   (1 << 3)
 
#define FLALE   (1 << 2)
 
#define FLCLE   (1 << 1)
 
#define FLCE0   (1 << 0)
 

Functions

 module_platform_driver (sharpsl_nand_driver)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Richard Purdie <[email protected]>")
 
 MODULE_DESCRIPTION ("Device specific logic for NAND flash on Sharp SL-C7xx Series")
 

Macro Definition Documentation

#define ECCCLRR   0x10 /* cleare ECC */

Definition at line 45 of file sharpsl.c.

#define ECCCNTR   0x0C /* ECC byte counter */

Definition at line 44 of file sharpsl.c.

#define ECCCP   0x08 /* column parity 5 - 0 bit */

Definition at line 43 of file sharpsl.c.

#define ECCLPLB   0x00 /* line parity 7 - 0 bit */

Definition at line 41 of file sharpsl.c.

#define ECCLPUB   0x04 /* line parity 15 - 8 bit */

Definition at line 42 of file sharpsl.c.

#define FLALE   (1 << 2)

Definition at line 53 of file sharpsl.c.

#define FLASHCTL   0x18 /* Flash Control */

Definition at line 47 of file sharpsl.c.

#define FLASHIO   0x14 /* Flash I/O */

Definition at line 46 of file sharpsl.c.

#define FLCE0   (1 << 0)

Definition at line 55 of file sharpsl.c.

#define FLCE1   (1 << 4)

Definition at line 51 of file sharpsl.c.

#define FLCLE   (1 << 1)

Definition at line 54 of file sharpsl.c.

#define FLRYBY   (1 << 5)

Definition at line 50 of file sharpsl.c.

#define FLWP   (1 << 3)

Definition at line 52 of file sharpsl.c.

#define mtd_to_sharpsl (   _mtd)    container_of(_mtd, struct sharpsl_nand, mtd)

Definition at line 38 of file sharpsl.c.

Function Documentation

MODULE_AUTHOR ( "Richard Purdie <[email protected]>"  )
MODULE_DESCRIPTION ( "Device specific logic for NAND flash on Sharp SL-C7xx Series"  )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( sharpsl_nand_driver  )