Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs
ftl.h File Reference

Go to the source code of this file.

Data Structures

struct  erase_unit_header_t
 

Macros

#define HIDDEN_AREA   0x01
 
#define REVERSE_POLARITY   0x02
 
#define DOUBLE_BAI   0x04
 
#define BLOCK_FREE(b)   ((b) == 0xffffffff)
 
#define BLOCK_DELETED(b)   (((b) == 0) || ((b) == 0xfffffffe))
 
#define BLOCK_TYPE(b)   ((b) & 0x7f)
 
#define BLOCK_ADDRESS(b)   ((b) & ~0x7f)
 
#define BLOCK_NUMBER(b)   ((b) >> 9)
 
#define BLOCK_CONTROL   0x30
 
#define BLOCK_DATA   0x40
 
#define BLOCK_REPLACEMENT   0x60
 
#define BLOCK_BAD   0x70
 

Typedefs

typedef struct erase_unit_header_t erase_unit_header_t
 

Macro Definition Documentation

#define BLOCK_ADDRESS (   b)    ((b) & ~0x7f)

Definition at line 67 of file ftl.h.

#define BLOCK_BAD   0x70

Definition at line 72 of file ftl.h.

#define BLOCK_CONTROL   0x30

Definition at line 69 of file ftl.h.

#define BLOCK_DATA   0x40

Definition at line 70 of file ftl.h.

#define BLOCK_DELETED (   b)    (((b) == 0) || ((b) == 0xfffffffe))

Definition at line 64 of file ftl.h.

#define BLOCK_FREE (   b)    ((b) == 0xffffffff)

Definition at line 63 of file ftl.h.

#define BLOCK_NUMBER (   b)    ((b) >> 9)

Definition at line 68 of file ftl.h.

#define BLOCK_REPLACEMENT   0x60

Definition at line 71 of file ftl.h.

#define BLOCK_TYPE (   b)    ((b) & 0x7f)

Definition at line 66 of file ftl.h.

#define DOUBLE_BAI   0x04

Definition at line 59 of file ftl.h.

#define HIDDEN_AREA   0x01

Definition at line 57 of file ftl.h.

#define REVERSE_POLARITY   0x02

Definition at line 58 of file ftl.h.

Typedef Documentation