Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cfi_cmdset_0001.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/init.h>
#include <asm/io.h>
#include <asm/byteorder.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/reboot.h>
#include <linux/bitmap.h>
#include <linux/mtd/xip.h>
#include <linux/mtd/map.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/cfi.h>
#include "fwh_lock.h"

Go to the source code of this file.

Macros

#define FORCE_WORD_WRITE   0
 
#define I82802AB   0x00ad
 
#define I82802AC   0x00ac
 
#define PF38F4476   0x881c
 
#define M50LPW080   0x002F
 
#define M50FLW080A   0x0080
 
#define M50FLW080B   0x0081
 
#define AT49BV640D   0x02de
 
#define AT49BV640DT   0x02db
 
#define xip_disable(map, chip, adr)
 
#define xip_enable(map, chip, adr)
 
#define XIP_INVAL_CACHED_RANGE(x...)
 
#define INVAL_CACHE_AND_WAIT   inval_cache_and_wait_for_operation
 
#define WAIT_TIMEOUT(map, chip, adr, udelay, udelay_max)   INVAL_CACHE_AND_WAIT(map, chip, adr, 0, 0, udelay, udelay_max);
 
#define DO_XXLOCK_ONEBLOCK_LOCK   ((void *) 1)
 
#define DO_XXLOCK_ONEBLOCK_UNLOCK   ((void *) 2)
 

Functions

struct mtd_infocfi_cmdset_0001 (struct map_info *, int)
 
struct mtd_infocfi_cmdset_0003 (struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001")))
 
struct mtd_infocfi_cmdset_0200 (struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0001")))
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0001)
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0003)
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0200)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David Woodhouse <[email protected]> et al.")
 
 MODULE_DESCRIPTION ("MTD chip driver for Intel/Sharp flash chips")
 
 MODULE_ALIAS ("cfi_cmdset_0003")
 
 MODULE_ALIAS ("cfi_cmdset_0200")
 

Macro Definition Documentation

#define AT49BV640D   0x02de

Definition at line 54 of file cfi_cmdset_0001.c.

#define AT49BV640DT   0x02db

Definition at line 55 of file cfi_cmdset_0001.c.

#define DO_XXLOCK_ONEBLOCK_LOCK   ((void *) 1)

Definition at line 2038 of file cfi_cmdset_0001.c.

#define DO_XXLOCK_ONEBLOCK_UNLOCK   ((void *) 2)

Definition at line 2039 of file cfi_cmdset_0001.c.

#define FORCE_WORD_WRITE   0

Definition at line 43 of file cfi_cmdset_0001.c.

#define I82802AB   0x00ad

Definition at line 46 of file cfi_cmdset_0001.c.

#define I82802AC   0x00ac

Definition at line 47 of file cfi_cmdset_0001.c.

#define INVAL_CACHE_AND_WAIT   inval_cache_and_wait_for_operation

Definition at line 1203 of file cfi_cmdset_0001.c.

#define M50FLW080A   0x0080

Definition at line 51 of file cfi_cmdset_0001.c.

#define M50FLW080B   0x0081

Definition at line 52 of file cfi_cmdset_0001.c.

#define M50LPW080   0x002F

Definition at line 50 of file cfi_cmdset_0001.c.

#define PF38F4476   0x881c

Definition at line 48 of file cfi_cmdset_0001.c.

#define WAIT_TIMEOUT (   map,
  chip,
  adr,
  udelay,
  udelay_max 
)    INVAL_CACHE_AND_WAIT(map, chip, adr, 0, 0, udelay, udelay_max);

Definition at line 1285 of file cfi_cmdset_0001.c.

#define xip_disable (   map,
  chip,
  adr 
)

Definition at line 1200 of file cfi_cmdset_0001.c.

#define xip_enable (   map,
  chip,
  adr 
)

Definition at line 1201 of file cfi_cmdset_0001.c.

#define XIP_INVAL_CACHED_RANGE (   x...)

Definition at line 1202 of file cfi_cmdset_0001.c.

Function Documentation

struct mtd_info* cfi_cmdset_0001 ( struct map_info map,
int  primary 
)
read
struct mtd_info* cfi_cmdset_0003 ( struct map_info map,
int  primary 
)
read
struct mtd_info* cfi_cmdset_0200 ( struct map_info map,
int  primary 
)
read
EXPORT_SYMBOL_GPL ( cfi_cmdset_0001  )
EXPORT_SYMBOL_GPL ( cfi_cmdset_0003  )
EXPORT_SYMBOL_GPL ( cfi_cmdset_0200  )
MODULE_ALIAS ( "cfi_cmdset_0003"  )
MODULE_ALIAS ( "cfi_cmdset_0200"  )
MODULE_AUTHOR ( "David Woodhouse <[email protected]> et al."  )
MODULE_DESCRIPTION ( "MTD chip driver for Intel/Sharp flash chips )
MODULE_LICENSE ( "GPL"  )