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

Go to the source code of this file.

Macros

#define HW_BCH_CTRL   0x00000000
 
#define HW_BCH_CTRL_SET   0x00000004
 
#define HW_BCH_CTRL_CLR   0x00000008
 
#define HW_BCH_CTRL_TOG   0x0000000c
 
#define BM_BCH_CTRL_COMPLETE_IRQ_EN   (1 << 8)
 
#define BM_BCH_CTRL_COMPLETE_IRQ   (1 << 0)
 
#define HW_BCH_STATUS0   0x00000010
 
#define HW_BCH_MODE   0x00000020
 
#define HW_BCH_ENCODEPTR   0x00000030
 
#define HW_BCH_DATAPTR   0x00000040
 
#define HW_BCH_METAPTR   0x00000050
 
#define HW_BCH_LAYOUTSELECT   0x00000070
 
#define HW_BCH_FLASH0LAYOUT0   0x00000080
 
#define BP_BCH_FLASH0LAYOUT0_NBLOCKS   24
 
#define BM_BCH_FLASH0LAYOUT0_NBLOCKS   (0xff << BP_BCH_FLASH0LAYOUT0_NBLOCKS)
 
#define BF_BCH_FLASH0LAYOUT0_NBLOCKS(v)   (((v) << BP_BCH_FLASH0LAYOUT0_NBLOCKS) & BM_BCH_FLASH0LAYOUT0_NBLOCKS)
 
#define BP_BCH_FLASH0LAYOUT0_META_SIZE   16
 
#define BM_BCH_FLASH0LAYOUT0_META_SIZE   (0xff << BP_BCH_FLASH0LAYOUT0_META_SIZE)
 
#define BF_BCH_FLASH0LAYOUT0_META_SIZE(v)
 
#define BP_BCH_FLASH0LAYOUT0_ECC0   12
 
#define BM_BCH_FLASH0LAYOUT0_ECC0   (0xf << BP_BCH_FLASH0LAYOUT0_ECC0)
 
#define MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0   11
 
#define MX6Q_BM_BCH_FLASH0LAYOUT0_ECC0   (0x1f << MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0)
 
#define BF_BCH_FLASH0LAYOUT0_ECC0(v, x)
 
#define BP_BCH_FLASH0LAYOUT0_DATA0_SIZE   0
 
#define BM_BCH_FLASH0LAYOUT0_DATA0_SIZE   (0xfff << BP_BCH_FLASH0LAYOUT0_DATA0_SIZE)
 
#define MX6Q_BM_BCH_FLASH0LAYOUT0_DATA0_SIZE   (0x3ff << BP_BCH_FLASH0LAYOUT0_DATA0_SIZE)
 
#define BF_BCH_FLASH0LAYOUT0_DATA0_SIZE(v, x)
 
#define HW_BCH_FLASH0LAYOUT1   0x00000090
 
#define BP_BCH_FLASH0LAYOUT1_PAGE_SIZE   16
 
#define BM_BCH_FLASH0LAYOUT1_PAGE_SIZE   (0xffff << BP_BCH_FLASH0LAYOUT1_PAGE_SIZE)
 
#define BF_BCH_FLASH0LAYOUT1_PAGE_SIZE(v)
 
#define BP_BCH_FLASH0LAYOUT1_ECCN   12
 
#define BM_BCH_FLASH0LAYOUT1_ECCN   (0xf << BP_BCH_FLASH0LAYOUT1_ECCN)
 
#define MX6Q_BP_BCH_FLASH0LAYOUT1_ECCN   11
 
#define MX6Q_BM_BCH_FLASH0LAYOUT1_ECCN   (0x1f << MX6Q_BP_BCH_FLASH0LAYOUT1_ECCN)
 
#define BF_BCH_FLASH0LAYOUT1_ECCN(v, x)
 
#define BP_BCH_FLASH0LAYOUT1_DATAN_SIZE   0
 
#define BM_BCH_FLASH0LAYOUT1_DATAN_SIZE   (0xfff << BP_BCH_FLASH0LAYOUT1_DATAN_SIZE)
 
#define MX6Q_BM_BCH_FLASH0LAYOUT1_DATAN_SIZE   (0x3ff << BP_BCH_FLASH0LAYOUT1_DATAN_SIZE)
 
#define BF_BCH_FLASH0LAYOUT1_DATAN_SIZE(v, x)
 

Macro Definition Documentation

#define BF_BCH_FLASH0LAYOUT0_DATA0_SIZE (   v,
  x 
)
Value:

Definition at line 69 of file bch-regs.h.

#define BF_BCH_FLASH0LAYOUT0_ECC0 (   v,
  x 
)
#define BF_BCH_FLASH0LAYOUT0_META_SIZE (   v)
Value:

Definition at line 48 of file bch-regs.h.

#define BF_BCH_FLASH0LAYOUT0_NBLOCKS (   v)    (((v) << BP_BCH_FLASH0LAYOUT0_NBLOCKS) & BM_BCH_FLASH0LAYOUT0_NBLOCKS)

Definition at line 43 of file bch-regs.h.

#define BF_BCH_FLASH0LAYOUT1_DATAN_SIZE (   v,
  x 
)
Value:

Definition at line 101 of file bch-regs.h.

#define BF_BCH_FLASH0LAYOUT1_ECCN (   v,
  x 
)
#define BF_BCH_FLASH0LAYOUT1_PAGE_SIZE (   v)
Value:

Definition at line 80 of file bch-regs.h.

#define BM_BCH_CTRL_COMPLETE_IRQ   (1 << 0)

Definition at line 30 of file bch-regs.h.

#define BM_BCH_CTRL_COMPLETE_IRQ_EN   (1 << 8)

Definition at line 29 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT0_DATA0_SIZE   (0xfff << BP_BCH_FLASH0LAYOUT0_DATA0_SIZE)

Definition at line 65 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT0_ECC0   (0xf << BP_BCH_FLASH0LAYOUT0_ECC0)

Definition at line 53 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT0_META_SIZE   (0xff << BP_BCH_FLASH0LAYOUT0_META_SIZE)

Definition at line 47 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT0_NBLOCKS   (0xff << BP_BCH_FLASH0LAYOUT0_NBLOCKS)

Definition at line 42 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT1_DATAN_SIZE   (0xfff << BP_BCH_FLASH0LAYOUT1_DATAN_SIZE)

Definition at line 97 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT1_ECCN   (0xf << BP_BCH_FLASH0LAYOUT1_ECCN)

Definition at line 85 of file bch-regs.h.

#define BM_BCH_FLASH0LAYOUT1_PAGE_SIZE   (0xffff << BP_BCH_FLASH0LAYOUT1_PAGE_SIZE)

Definition at line 78 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT0_DATA0_SIZE   0

Definition at line 64 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT0_ECC0   12

Definition at line 52 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT0_META_SIZE   16

Definition at line 46 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT0_NBLOCKS   24

Definition at line 41 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT1_DATAN_SIZE   0

Definition at line 96 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT1_ECCN   12

Definition at line 84 of file bch-regs.h.

#define BP_BCH_FLASH0LAYOUT1_PAGE_SIZE   16

Definition at line 77 of file bch-regs.h.

#define HW_BCH_CTRL   0x00000000

Definition at line 24 of file bch-regs.h.

#define HW_BCH_CTRL_CLR   0x00000008

Definition at line 26 of file bch-regs.h.

#define HW_BCH_CTRL_SET   0x00000004

Definition at line 25 of file bch-regs.h.

#define HW_BCH_CTRL_TOG   0x0000000c

Definition at line 27 of file bch-regs.h.

#define HW_BCH_DATAPTR   0x00000040

Definition at line 35 of file bch-regs.h.

#define HW_BCH_ENCODEPTR   0x00000030

Definition at line 34 of file bch-regs.h.

#define HW_BCH_FLASH0LAYOUT0   0x00000080

Definition at line 39 of file bch-regs.h.

#define HW_BCH_FLASH0LAYOUT1   0x00000090

Definition at line 75 of file bch-regs.h.

#define HW_BCH_LAYOUTSELECT   0x00000070

Definition at line 37 of file bch-regs.h.

#define HW_BCH_METAPTR   0x00000050

Definition at line 36 of file bch-regs.h.

#define HW_BCH_MODE   0x00000020

Definition at line 33 of file bch-regs.h.

#define HW_BCH_STATUS0   0x00000010

Definition at line 32 of file bch-regs.h.

#define MX6Q_BM_BCH_FLASH0LAYOUT0_DATA0_SIZE   (0x3ff << BP_BCH_FLASH0LAYOUT0_DATA0_SIZE)

Definition at line 67 of file bch-regs.h.

#define MX6Q_BM_BCH_FLASH0LAYOUT0_ECC0   (0x1f << MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0)

Definition at line 55 of file bch-regs.h.

#define MX6Q_BM_BCH_FLASH0LAYOUT1_DATAN_SIZE   (0x3ff << BP_BCH_FLASH0LAYOUT1_DATAN_SIZE)

Definition at line 99 of file bch-regs.h.

#define MX6Q_BM_BCH_FLASH0LAYOUT1_ECCN   (0x1f << MX6Q_BP_BCH_FLASH0LAYOUT1_ECCN)

Definition at line 87 of file bch-regs.h.

#define MX6Q_BP_BCH_FLASH0LAYOUT0_ECC0   11

Definition at line 54 of file bch-regs.h.

#define MX6Q_BP_BCH_FLASH0LAYOUT1_ECCN   11

Definition at line 86 of file bch-regs.h.