Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
map.h File Reference
#include <linux/types.h>
#include <linux/list.h>
#include <linux/string.h>
#include <linux/bug.h>
#include <linux/kernel.h>
#include <asm/unaligned.h>
#include <asm/io.h>
#include <asm/barrier.h>

Go to the source code of this file.

Data Structures

union  map_word
 
struct  map_info
 
struct  mtd_chip_driver
 

Macros

#define map_bankwidth_is_1(map)   (0)
 
#define map_bankwidth_is_2(map)   (0)
 
#define map_bankwidth_is_4(map)   (0)
 
#define map_calc_words(map)   ((map_bankwidth(map) + (sizeof(unsigned long)-1))/ sizeof(unsigned long))
 
#define map_bankwidth_is_8(map)   (0)
 
#define map_bankwidth_is_16(map)   (0)
 
#define map_bankwidth_is_32(map)   (0)
 
#define map_bankwidth_is_large(map)   (0)
 
#define map_words(map)   (0)
 
#define MAX_MAP_BANKWIDTH   1
 
#define MAX_MAP_LONGS   ( ((MAX_MAP_BANKWIDTH*8) + BITS_PER_LONG - 1) / BITS_PER_LONG )
 
#define NO_XIP   (-1UL)
 
#define ENABLE_VPP(map)   do { if(map->set_vpp) map->set_vpp(map, 1); } while(0)
 
#define DISABLE_VPP(map)   do { if(map->set_vpp) map->set_vpp(map, 0); } while(0)
 
#define INVALIDATE_CACHED_RANGE(map, from, size)   do { if(map->inval_cache) map->inval_cache(map, from, size); } while(0)
 
#define map_word_andequal(m, a, b, z)   map_word_equal(m, z, map_word_and(m, a, b))
 
#define MAP_FF_LIMIT   4
 
#define map_read(map, ofs)   inline_map_read(map, ofs)
 
#define map_copy_from(map, to, from, len)   inline_map_copy_from(map, to, from, len)
 
#define map_write(map, datum, ofs)   inline_map_write(map, datum, ofs)
 
#define map_copy_to(map, to, from, len)   inline_map_copy_to(map, to, from, len)
 
#define simple_map_init(map)   BUG_ON(!map_bankwidth_supported((map)->bankwidth))
 
#define map_is_linear(map)   ({ (void)(map); 1; })
 

Functions

void register_mtd_chip_driver (struct mtd_chip_driver *)
 
void unregister_mtd_chip_driver (struct mtd_chip_driver *)
 
struct mtd_infodo_map_probe (const char *name, struct map_info *map)
 
void map_destroy (struct mtd_info *mtd)
 

Macro Definition Documentation

#define DISABLE_VPP (   map)    do { if(map->set_vpp) map->set_vpp(map, 0); } while(0)

Definition at line 267 of file map.h.

#define ENABLE_VPP (   map)    do { if(map->set_vpp) map->set_vpp(map, 1); } while(0)

Definition at line 266 of file map.h.

#define INVALIDATE_CACHED_RANGE (   map,
  from,
  size 
)    do { if(map->inval_cache) map->inval_cache(map, from, size); } while(0)

Definition at line 269 of file map.h.

#define map_bankwidth_is_1 (   map)    (0)

Definition at line 42 of file map.h.

#define map_bankwidth_is_16 (   map)    (0)

Definition at line 121 of file map.h.

#define map_bankwidth_is_2 (   map)    (0)

Definition at line 58 of file map.h.

#define map_bankwidth_is_32 (   map)    (0)

Definition at line 141 of file map.h.

#define map_bankwidth_is_4 (   map)    (0)

Definition at line 74 of file map.h.

#define map_bankwidth_is_8 (   map)    (0)

Definition at line 101 of file map.h.

#define map_bankwidth_is_large (   map)    (0)

Definition at line 151 of file map.h.

#define map_calc_words (   map)    ((map_bankwidth(map) + (sizeof(unsigned long)-1))/ sizeof(unsigned long))

Definition at line 80 of file map.h.

#define map_copy_from (   map,
  to,
  from,
  len 
)    inline_map_copy_from(map, to, from, len)

Definition at line 455 of file map.h.

#define map_copy_to (   map,
  to,
  from,
  len 
)    inline_map_copy_to(map, to, from, len)

Definition at line 457 of file map.h.

#define MAP_FF_LIMIT   4

Definition at line 372 of file map.h.

#define map_is_linear (   map)    ({ (void)(map); 1; })

Definition at line 461 of file map.h.

#define map_read (   map,
  ofs 
)    inline_map_read(map, ofs)

Definition at line 454 of file map.h.

#define map_word_andequal (   m,
  a,
  b,
 
)    map_word_equal(m, z, map_word_and(m, a, b))

Definition at line 316 of file map.h.

#define map_words (   map)    (0)

Definition at line 152 of file map.h.

#define map_write (   map,
  datum,
  ofs 
)    inline_map_write(map, datum, ofs)

Definition at line 456 of file map.h.

#define MAX_MAP_BANKWIDTH   1

Definition at line 153 of file map.h.

#define MAX_MAP_LONGS   ( ((MAX_MAP_BANKWIDTH*8) + BITS_PER_LONG - 1) / BITS_PER_LONG )

Definition at line 184 of file map.h.

#define NO_XIP   (-1UL)

Definition at line 212 of file map.h.

#define simple_map_init (   map)    BUG_ON(!map_bankwidth_supported((map)->bankwidth))

Definition at line 460 of file map.h.

Function Documentation

struct mtd_info* do_map_probe ( const char name,
struct map_info map 
)
read

Definition at line 57 of file chipreg.c.

void map_destroy ( struct mtd_info mtd)

Definition at line 85 of file chipreg.c.

void register_mtd_chip_driver ( struct mtd_chip_driver )

Definition at line 17 of file chipreg.c.

void unregister_mtd_chip_driver ( struct mtd_chip_driver )

Definition at line 24 of file chipreg.c.