Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cfi_cmdset_0002.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/mtd/map.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/cfi.h>
#include <linux/mtd/xip.h>
#include "fwh_lock.h"

Go to the source code of this file.

Macros

#define AMD_BOOTLOC_BUG
 
#define FORCE_WORD_WRITE   0
 
#define MAX_WORD_RETRIES   3
 
#define SST49LF004B   0x0060
 
#define SST49LF040B   0x0050
 
#define SST49LF008A   0x005a
 
#define AT49BV6416   0x00d6
 
#define xip_disable(map, chip, adr)
 
#define xip_enable(map, chip, adr)
 
#define XIP_INVAL_CACHED_RANGE(x...)
 
#define UDELAY(map, chip, adr, usec)
 
#define INVALIDATE_CACHE_UDELAY(map, chip, adr, len, usec)
 

Functions

struct mtd_infocfi_cmdset_0002 (struct map_info *, int)
 
struct mtd_infocfi_cmdset_0006 (struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002")))
 
struct mtd_infocfi_cmdset_0701 (struct map_info *map, int primary) __attribute__((alias("cfi_cmdset_0002")))
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0002)
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0006)
 
 EXPORT_SYMBOL_GPL (cfi_cmdset_0701)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Crossnet Co. <info@crossnet.co.jp> et al.")
 
 MODULE_DESCRIPTION ("MTD chip driver for AMD/Fujitsu flash chips")
 
 MODULE_ALIAS ("cfi_cmdset_0006")
 
 MODULE_ALIAS ("cfi_cmdset_0701")
 

Macro Definition Documentation

#define AMD_BOOTLOC_BUG

Definition at line 41 of file cfi_cmdset_0002.c.

#define AT49BV6416   0x00d6

Definition at line 49 of file cfi_cmdset_0002.c.

#define FORCE_WORD_WRITE   0

Definition at line 42 of file cfi_cmdset_0002.c.

#define INVALIDATE_CACHE_UDELAY (   map,
  chip,
  adr,
  len,
  usec 
)
Value:
do { \
mutex_unlock(&chip->mutex); \
INVALIDATE_CACHED_RANGE(map, adr, len); \
cfi_udelay(usec); \
mutex_lock(&chip->mutex); \
} while (0)

Definition at line 1048 of file cfi_cmdset_0002.c.

#define MAX_WORD_RETRIES   3

Definition at line 44 of file cfi_cmdset_0002.c.

#define SST49LF004B   0x0060

Definition at line 46 of file cfi_cmdset_0002.c.

#define SST49LF008A   0x005a

Definition at line 48 of file cfi_cmdset_0002.c.

#define SST49LF040B   0x0050

Definition at line 47 of file cfi_cmdset_0002.c.

#define UDELAY (   map,
  chip,
  adr,
  usec 
)
Value:
do { \
mutex_unlock(&chip->mutex); \
cfi_udelay(usec); \
mutex_lock(&chip->mutex); \
} while (0)

Definition at line 1041 of file cfi_cmdset_0002.c.

#define xip_disable (   map,
  chip,
  adr 
)

Definition at line 1037 of file cfi_cmdset_0002.c.

#define xip_enable (   map,
  chip,
  adr 
)

Definition at line 1038 of file cfi_cmdset_0002.c.

#define XIP_INVAL_CACHED_RANGE (   x...)

Definition at line 1039 of file cfi_cmdset_0002.c.

Function Documentation

struct mtd_info* cfi_cmdset_0002 ( struct map_info map,
int  primary 
)
read
struct mtd_info* cfi_cmdset_0006 ( struct map_info map,
int  primary 
)
read
struct mtd_info* cfi_cmdset_0701 ( struct map_info map,
int  primary 
)
read
EXPORT_SYMBOL_GPL ( cfi_cmdset_0002  )
EXPORT_SYMBOL_GPL ( cfi_cmdset_0006  )
EXPORT_SYMBOL_GPL ( cfi_cmdset_0701  )
MODULE_ALIAS ( "cfi_cmdset_0006"  )
MODULE_ALIAS ( "cfi_cmdset_0701"  )
MODULE_AUTHOR ( "Crossnet Co. <info@crossnet.co.jp> et al."  )
MODULE_DESCRIPTION ( "MTD chip driver for AMD/Fujitsu flash chips )
MODULE_LICENSE ( "GPL"  )