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

Go to the source code of this file.

Macros

#define REG_FIELD(scope, reg, field, value)   REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_FIELD_X_(value, shift)   ((value) << shift)
 
#define REG_STATE(scope, reg, field, symbolic_value)   REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_STATE_X_(k, shift)   (k << shift)
 
#define REG_MASK(scope, reg, field)   REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_MASK_X_(width, lsb)   (((1 << width)-1) << lsb)
 
#define REG_LSB(scope, reg, field)   reg_##scope##_##reg##___##field##___lsb
 
#define REG_BIT(scope, reg, field)   reg_##scope##_##reg##___##field##___bit
 
#define REG_ADDR(scope, inst, reg)   REG_ADDR_X_(inst, reg_##scope##_##reg##_offset)
 
#define REG_ADDR_X_(inst, offs)   ((inst) + offs)
 
#define REG_ADDR_VECT(scope, inst, reg, index)
 
#define REG_ADDR_VECT_X_(inst, offs, index, stride)   ((inst) + offs + (index) * stride)
 
#define reg_iop_crc_par_rw_cfg___mode___lsb   0
 
#define reg_iop_crc_par_rw_cfg___mode___width   1
 
#define reg_iop_crc_par_rw_cfg___mode___bit   0
 
#define reg_iop_crc_par_rw_cfg___crc_out___lsb   1
 
#define reg_iop_crc_par_rw_cfg___crc_out___width   1
 
#define reg_iop_crc_par_rw_cfg___crc_out___bit   1
 
#define reg_iop_crc_par_rw_cfg___rev_out___lsb   2
 
#define reg_iop_crc_par_rw_cfg___rev_out___width   1
 
#define reg_iop_crc_par_rw_cfg___rev_out___bit   2
 
#define reg_iop_crc_par_rw_cfg___inv_out___lsb   3
 
#define reg_iop_crc_par_rw_cfg___inv_out___width   1
 
#define reg_iop_crc_par_rw_cfg___inv_out___bit   3
 
#define reg_iop_crc_par_rw_cfg___trig___lsb   4
 
#define reg_iop_crc_par_rw_cfg___trig___width   2
 
#define reg_iop_crc_par_rw_cfg___poly___lsb   6
 
#define reg_iop_crc_par_rw_cfg___poly___width   3
 
#define reg_iop_crc_par_rw_cfg_offset   0
 
#define reg_iop_crc_par_rw_init_crc_offset   4
 
#define reg_iop_crc_par_rw_correct_crc_offset   8
 
#define reg_iop_crc_par_rw_ctrl___en___lsb   0
 
#define reg_iop_crc_par_rw_ctrl___en___width   1
 
#define reg_iop_crc_par_rw_ctrl___en___bit   0
 
#define reg_iop_crc_par_rw_ctrl_offset   12
 
#define reg_iop_crc_par_rw_set_last___tr_dif___lsb   0
 
#define reg_iop_crc_par_rw_set_last___tr_dif___width   1
 
#define reg_iop_crc_par_rw_set_last___tr_dif___bit   0
 
#define reg_iop_crc_par_rw_set_last_offset   16
 
#define reg_iop_crc_par_rw_wr1byte___data___lsb   0
 
#define reg_iop_crc_par_rw_wr1byte___data___width   8
 
#define reg_iop_crc_par_rw_wr1byte_offset   20
 
#define reg_iop_crc_par_rw_wr2byte___data___lsb   0
 
#define reg_iop_crc_par_rw_wr2byte___data___width   16
 
#define reg_iop_crc_par_rw_wr2byte_offset   24
 
#define reg_iop_crc_par_rw_wr3byte___data___lsb   0
 
#define reg_iop_crc_par_rw_wr3byte___data___width   24
 
#define reg_iop_crc_par_rw_wr3byte_offset   28
 
#define reg_iop_crc_par_rw_wr4byte___data___lsb   0
 
#define reg_iop_crc_par_rw_wr4byte___data___width   32
 
#define reg_iop_crc_par_rw_wr4byte_offset   32
 
#define reg_iop_crc_par_rw_wr1byte_last___data___lsb   0
 
#define reg_iop_crc_par_rw_wr1byte_last___data___width   8
 
#define reg_iop_crc_par_rw_wr1byte_last_offset   36
 
#define reg_iop_crc_par_rw_wr2byte_last___data___lsb   0
 
#define reg_iop_crc_par_rw_wr2byte_last___data___width   16
 
#define reg_iop_crc_par_rw_wr2byte_last_offset   40
 
#define reg_iop_crc_par_rw_wr3byte_last___data___lsb   0
 
#define reg_iop_crc_par_rw_wr3byte_last___data___width   24
 
#define reg_iop_crc_par_rw_wr3byte_last_offset   44
 
#define reg_iop_crc_par_rw_wr4byte_last___data___lsb   0
 
#define reg_iop_crc_par_rw_wr4byte_last___data___width   32
 
#define reg_iop_crc_par_rw_wr4byte_last_offset   48
 
#define reg_iop_crc_par_r_stat___err___lsb   0
 
#define reg_iop_crc_par_r_stat___err___width   1
 
#define reg_iop_crc_par_r_stat___err___bit   0
 
#define reg_iop_crc_par_r_stat___busy___lsb   1
 
#define reg_iop_crc_par_r_stat___busy___width   1
 
#define reg_iop_crc_par_r_stat___busy___bit   1
 
#define reg_iop_crc_par_r_stat_offset   52
 
#define reg_iop_crc_par_r_sh_reg_offset   56
 
#define reg_iop_crc_par_r_crc_offset   60
 
#define reg_iop_crc_par_rw_strb_rec_dif_in___last___lsb   0
 
#define reg_iop_crc_par_rw_strb_rec_dif_in___last___width   2
 
#define reg_iop_crc_par_rw_strb_rec_dif_in_offset   64
 
#define regk_iop_crc_par_calc   0x00000001
 
#define regk_iop_crc_par_ccitt   0x00000002
 
#define regk_iop_crc_par_check   0x00000000
 
#define regk_iop_crc_par_crc16   0x00000001
 
#define regk_iop_crc_par_crc32   0x00000000
 
#define regk_iop_crc_par_crc5   0x00000003
 
#define regk_iop_crc_par_crc5_11   0x00000004
 
#define regk_iop_crc_par_dif_in   0x00000002
 
#define regk_iop_crc_par_hi   0x00000000
 
#define regk_iop_crc_par_neg   0x00000002
 
#define regk_iop_crc_par_no   0x00000000
 
#define regk_iop_crc_par_pos   0x00000001
 
#define regk_iop_crc_par_pos_neg   0x00000003
 
#define regk_iop_crc_par_rw_cfg_default   0x00000000
 
#define regk_iop_crc_par_rw_ctrl_default   0x00000000
 
#define regk_iop_crc_par_yes   0x00000001
 

Macro Definition Documentation

#define REG_ADDR (   scope,
  inst,
  reg 
)    REG_ADDR_X_(inst, reg_##scope##_##reg##_offset)

Definition at line 44 of file iop_crc_par_defs_asm.h.

#define REG_ADDR_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \
STRIDE_##scope##_##reg )

Definition at line 49 of file iop_crc_par_defs_asm.h.

#define REG_ADDR_VECT_X_ (   inst,
  offs,
  index,
  stride 
)    ((inst) + offs + (index) * stride)

Definition at line 52 of file iop_crc_par_defs_asm.h.

#define REG_ADDR_X_ (   inst,
  offs 
)    ((inst) + offs)

Definition at line 45 of file iop_crc_par_defs_asm.h.

#define REG_BIT (   scope,
  reg,
  field 
)    reg_##scope##_##reg##___##field##___bit

Definition at line 40 of file iop_crc_par_defs_asm.h.

#define REG_FIELD (   scope,
  reg,
  field,
  value 
)    REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb )

Definition at line 18 of file iop_crc_par_defs_asm.h.

#define REG_FIELD_X_ (   value,
  shift 
)    ((value) << shift)

Definition at line 20 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_crc_offset   60

Definition at line 146 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_sh_reg_offset   56

Definition at line 143 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___busy___bit   1

Definition at line 139 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___busy___lsb   1

Definition at line 137 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___busy___width   1

Definition at line 138 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___err___bit   0

Definition at line 136 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___err___lsb   0

Definition at line 134 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat___err___width   1

Definition at line 135 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_r_stat_offset   52

Definition at line 140 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___crc_out___bit   1

Definition at line 62 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___crc_out___lsb   1

Definition at line 60 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___crc_out___width   1

Definition at line 61 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___inv_out___bit   3

Definition at line 68 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___inv_out___lsb   3

Definition at line 66 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___inv_out___width   1

Definition at line 67 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___mode___bit   0

Definition at line 59 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___mode___lsb   0

Definition at line 57 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___mode___width   1

Definition at line 58 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___poly___lsb   6

Definition at line 71 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___poly___width   3

Definition at line 72 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___rev_out___bit   2

Definition at line 65 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___rev_out___lsb   2

Definition at line 63 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___rev_out___width   1

Definition at line 64 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___trig___lsb   4

Definition at line 69 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg___trig___width   2

Definition at line 70 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_cfg_offset   0

Definition at line 73 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_correct_crc_offset   8

Definition at line 79 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_ctrl___en___bit   0

Definition at line 84 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_ctrl___en___lsb   0

Definition at line 82 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_ctrl___en___width   1

Definition at line 83 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_ctrl_offset   12

Definition at line 85 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_init_crc_offset   4

Definition at line 76 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_set_last___tr_dif___bit   0

Definition at line 90 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_set_last___tr_dif___lsb   0

Definition at line 88 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_set_last___tr_dif___width   1

Definition at line 89 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_set_last_offset   16

Definition at line 91 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_strb_rec_dif_in___last___lsb   0

Definition at line 149 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_strb_rec_dif_in___last___width   2

Definition at line 150 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_strb_rec_dif_in_offset   64

Definition at line 151 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte___data___lsb   0

Definition at line 94 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte___data___width   8

Definition at line 95 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte_last___data___lsb   0

Definition at line 114 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte_last___data___width   8

Definition at line 115 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte_last_offset   36

Definition at line 116 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr1byte_offset   20

Definition at line 96 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte___data___lsb   0

Definition at line 99 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte___data___width   16

Definition at line 100 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte_last___data___lsb   0

Definition at line 119 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte_last___data___width   16

Definition at line 120 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte_last_offset   40

Definition at line 121 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr2byte_offset   24

Definition at line 101 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte___data___lsb   0

Definition at line 104 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte___data___width   24

Definition at line 105 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte_last___data___lsb   0

Definition at line 124 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte_last___data___width   24

Definition at line 125 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte_last_offset   44

Definition at line 126 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr3byte_offset   28

Definition at line 106 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte___data___lsb   0

Definition at line 109 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte___data___width   32

Definition at line 110 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte_last___data___lsb   0

Definition at line 129 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte_last___data___width   32

Definition at line 130 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte_last_offset   48

Definition at line 131 of file iop_crc_par_defs_asm.h.

#define reg_iop_crc_par_rw_wr4byte_offset   32

Definition at line 111 of file iop_crc_par_defs_asm.h.

#define REG_LSB (   scope,
  reg,
  field 
)    reg_##scope##_##reg##___##field##___lsb

Definition at line 36 of file iop_crc_par_defs_asm.h.

#define REG_MASK (   scope,
  reg,
  field 
)    REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb )

Definition at line 30 of file iop_crc_par_defs_asm.h.

#define REG_MASK_X_ (   width,
  lsb 
)    (((1 << width)-1) << lsb)

Definition at line 32 of file iop_crc_par_defs_asm.h.

#define REG_STATE (   scope,
  reg,
  field,
  symbolic_value 
)    REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb )

Definition at line 24 of file iop_crc_par_defs_asm.h.

#define REG_STATE_X_ (   k,
  shift 
)    (k << shift)

Definition at line 26 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_calc   0x00000001

Definition at line 155 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_ccitt   0x00000002

Definition at line 156 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_check   0x00000000

Definition at line 157 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_crc16   0x00000001

Definition at line 158 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_crc32   0x00000000

Definition at line 159 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_crc5   0x00000003

Definition at line 160 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_crc5_11   0x00000004

Definition at line 161 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_dif_in   0x00000002

Definition at line 162 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_hi   0x00000000

Definition at line 163 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_neg   0x00000002

Definition at line 164 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_no   0x00000000

Definition at line 165 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_pos   0x00000001

Definition at line 166 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_pos_neg   0x00000003

Definition at line 167 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_rw_cfg_default   0x00000000

Definition at line 168 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_rw_ctrl_default   0x00000000

Definition at line 169 of file iop_crc_par_defs_asm.h.

#define regk_iop_crc_par_yes   0x00000001

Definition at line 170 of file iop_crc_par_defs_asm.h.