Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
iop_mpu_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 STRIDE_iop_mpu_rw_r   4
 
#define reg_iop_mpu_rw_r_offset   0
 
#define reg_iop_mpu_rw_ctrl___en___lsb   0
 
#define reg_iop_mpu_rw_ctrl___en___width   1
 
#define reg_iop_mpu_rw_ctrl___en___bit   0
 
#define reg_iop_mpu_rw_ctrl_offset   128
 
#define reg_iop_mpu_r_pc___addr___lsb   0
 
#define reg_iop_mpu_r_pc___addr___width   12
 
#define reg_iop_mpu_r_pc_offset   132
 
#define reg_iop_mpu_r_stat___instr_reg_busy___lsb   0
 
#define reg_iop_mpu_r_stat___instr_reg_busy___width   1
 
#define reg_iop_mpu_r_stat___instr_reg_busy___bit   0
 
#define reg_iop_mpu_r_stat___intr_busy___lsb   1
 
#define reg_iop_mpu_r_stat___intr_busy___width   1
 
#define reg_iop_mpu_r_stat___intr_busy___bit   1
 
#define reg_iop_mpu_r_stat___intr_vect___lsb   2
 
#define reg_iop_mpu_r_stat___intr_vect___width   16
 
#define reg_iop_mpu_r_stat_offset   136
 
#define reg_iop_mpu_rw_instr_offset   140
 
#define reg_iop_mpu_rw_immediate_offset   144
 
#define reg_iop_mpu_r_trace___intr_vect___lsb   0
 
#define reg_iop_mpu_r_trace___intr_vect___width   16
 
#define reg_iop_mpu_r_trace___pc___lsb   16
 
#define reg_iop_mpu_r_trace___pc___width   12
 
#define reg_iop_mpu_r_trace___en___lsb   28
 
#define reg_iop_mpu_r_trace___en___width   1
 
#define reg_iop_mpu_r_trace___en___bit   28
 
#define reg_iop_mpu_r_trace___instr_reg_busy___lsb   29
 
#define reg_iop_mpu_r_trace___instr_reg_busy___width   1
 
#define reg_iop_mpu_r_trace___instr_reg_busy___bit   29
 
#define reg_iop_mpu_r_trace___intr_busy___lsb   30
 
#define reg_iop_mpu_r_trace___intr_busy___width   1
 
#define reg_iop_mpu_r_trace___intr_busy___bit   30
 
#define reg_iop_mpu_r_trace_offset   148
 
#define reg_iop_mpu_r_wr_stat___r0___lsb   0
 
#define reg_iop_mpu_r_wr_stat___r0___width   1
 
#define reg_iop_mpu_r_wr_stat___r0___bit   0
 
#define reg_iop_mpu_r_wr_stat___r1___lsb   1
 
#define reg_iop_mpu_r_wr_stat___r1___width   1
 
#define reg_iop_mpu_r_wr_stat___r1___bit   1
 
#define reg_iop_mpu_r_wr_stat___r2___lsb   2
 
#define reg_iop_mpu_r_wr_stat___r2___width   1
 
#define reg_iop_mpu_r_wr_stat___r2___bit   2
 
#define reg_iop_mpu_r_wr_stat___r3___lsb   3
 
#define reg_iop_mpu_r_wr_stat___r3___width   1
 
#define reg_iop_mpu_r_wr_stat___r3___bit   3
 
#define reg_iop_mpu_r_wr_stat___r4___lsb   4
 
#define reg_iop_mpu_r_wr_stat___r4___width   1
 
#define reg_iop_mpu_r_wr_stat___r4___bit   4
 
#define reg_iop_mpu_r_wr_stat___r5___lsb   5
 
#define reg_iop_mpu_r_wr_stat___r5___width   1
 
#define reg_iop_mpu_r_wr_stat___r5___bit   5
 
#define reg_iop_mpu_r_wr_stat___r6___lsb   6
 
#define reg_iop_mpu_r_wr_stat___r6___width   1
 
#define reg_iop_mpu_r_wr_stat___r6___bit   6
 
#define reg_iop_mpu_r_wr_stat___r7___lsb   7
 
#define reg_iop_mpu_r_wr_stat___r7___width   1
 
#define reg_iop_mpu_r_wr_stat___r7___bit   7
 
#define reg_iop_mpu_r_wr_stat___r8___lsb   8
 
#define reg_iop_mpu_r_wr_stat___r8___width   1
 
#define reg_iop_mpu_r_wr_stat___r8___bit   8
 
#define reg_iop_mpu_r_wr_stat___r9___lsb   9
 
#define reg_iop_mpu_r_wr_stat___r9___width   1
 
#define reg_iop_mpu_r_wr_stat___r9___bit   9
 
#define reg_iop_mpu_r_wr_stat___r10___lsb   10
 
#define reg_iop_mpu_r_wr_stat___r10___width   1
 
#define reg_iop_mpu_r_wr_stat___r10___bit   10
 
#define reg_iop_mpu_r_wr_stat___r11___lsb   11
 
#define reg_iop_mpu_r_wr_stat___r11___width   1
 
#define reg_iop_mpu_r_wr_stat___r11___bit   11
 
#define reg_iop_mpu_r_wr_stat___r12___lsb   12
 
#define reg_iop_mpu_r_wr_stat___r12___width   1
 
#define reg_iop_mpu_r_wr_stat___r12___bit   12
 
#define reg_iop_mpu_r_wr_stat___r13___lsb   13
 
#define reg_iop_mpu_r_wr_stat___r13___width   1
 
#define reg_iop_mpu_r_wr_stat___r13___bit   13
 
#define reg_iop_mpu_r_wr_stat___r14___lsb   14
 
#define reg_iop_mpu_r_wr_stat___r14___width   1
 
#define reg_iop_mpu_r_wr_stat___r14___bit   14
 
#define reg_iop_mpu_r_wr_stat___r15___lsb   15
 
#define reg_iop_mpu_r_wr_stat___r15___width   1
 
#define reg_iop_mpu_r_wr_stat___r15___bit   15
 
#define reg_iop_mpu_r_wr_stat_offset   152
 
#define STRIDE_iop_mpu_rw_thread   4
 
#define reg_iop_mpu_rw_thread___addr___lsb   0
 
#define reg_iop_mpu_rw_thread___addr___width   12
 
#define reg_iop_mpu_rw_thread_offset   156
 
#define STRIDE_iop_mpu_rw_intr   4
 
#define reg_iop_mpu_rw_intr___addr___lsb   0
 
#define reg_iop_mpu_rw_intr___addr___width   12
 
#define reg_iop_mpu_rw_intr_offset   196
 
#define regk_iop_mpu_no   0x00000000
 
#define regk_iop_mpu_r_pc_default   0x00000000
 
#define regk_iop_mpu_rw_ctrl_default   0x00000000
 
#define regk_iop_mpu_rw_intr_size   0x00000010
 
#define regk_iop_mpu_rw_r_size   0x00000010
 
#define regk_iop_mpu_rw_thread_default   0x00000000
 
#define regk_iop_mpu_rw_thread_size   0x00000004
 
#define regk_iop_mpu_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_mpu_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_mpu_defs_asm.h.

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

Definition at line 52 of file iop_mpu_defs_asm.h.

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

Definition at line 45 of file iop_mpu_defs_asm.h.

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

Definition at line 40 of file iop_mpu_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_mpu_defs_asm.h.

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

Definition at line 20 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_pc___addr___lsb   0

Definition at line 67 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_pc___addr___width   12

Definition at line 68 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_pc_offset   132

Definition at line 69 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___instr_reg_busy___bit   0

Definition at line 74 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___instr_reg_busy___lsb   0

Definition at line 72 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___instr_reg_busy___width   1

Definition at line 73 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___intr_busy___bit   1

Definition at line 77 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___intr_busy___lsb   1

Definition at line 75 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___intr_busy___width   1

Definition at line 76 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___intr_vect___lsb   2

Definition at line 78 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat___intr_vect___width   16

Definition at line 79 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_stat_offset   136

Definition at line 80 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___en___bit   28

Definition at line 95 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___en___lsb   28

Definition at line 93 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___en___width   1

Definition at line 94 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___instr_reg_busy___bit   29

Definition at line 98 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___instr_reg_busy___lsb   29

Definition at line 96 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___instr_reg_busy___width   1

Definition at line 97 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___intr_busy___bit   30

Definition at line 101 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___intr_busy___lsb   30

Definition at line 99 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___intr_busy___width   1

Definition at line 100 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___intr_vect___lsb   0

Definition at line 89 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___intr_vect___width   16

Definition at line 90 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___pc___lsb   16

Definition at line 91 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace___pc___width   12

Definition at line 92 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_trace_offset   148

Definition at line 102 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r0___bit   0

Definition at line 107 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r0___lsb   0

Definition at line 105 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r0___width   1

Definition at line 106 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r10___bit   10

Definition at line 137 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r10___lsb   10

Definition at line 135 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r10___width   1

Definition at line 136 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r11___bit   11

Definition at line 140 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r11___lsb   11

Definition at line 138 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r11___width   1

Definition at line 139 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r12___bit   12

Definition at line 143 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r12___lsb   12

Definition at line 141 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r12___width   1

Definition at line 142 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r13___bit   13

Definition at line 146 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r13___lsb   13

Definition at line 144 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r13___width   1

Definition at line 145 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r14___bit   14

Definition at line 149 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r14___lsb   14

Definition at line 147 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r14___width   1

Definition at line 148 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r15___bit   15

Definition at line 152 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r15___lsb   15

Definition at line 150 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r15___width   1

Definition at line 151 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r1___bit   1

Definition at line 110 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r1___lsb   1

Definition at line 108 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r1___width   1

Definition at line 109 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r2___bit   2

Definition at line 113 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r2___lsb   2

Definition at line 111 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r2___width   1

Definition at line 112 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r3___bit   3

Definition at line 116 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r3___lsb   3

Definition at line 114 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r3___width   1

Definition at line 115 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r4___bit   4

Definition at line 119 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r4___lsb   4

Definition at line 117 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r4___width   1

Definition at line 118 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r5___bit   5

Definition at line 122 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r5___lsb   5

Definition at line 120 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r5___width   1

Definition at line 121 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r6___bit   6

Definition at line 125 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r6___lsb   6

Definition at line 123 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r6___width   1

Definition at line 124 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r7___bit   7

Definition at line 128 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r7___lsb   7

Definition at line 126 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r7___width   1

Definition at line 127 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r8___bit   8

Definition at line 131 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r8___lsb   8

Definition at line 129 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r8___width   1

Definition at line 130 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r9___bit   9

Definition at line 134 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r9___lsb   9

Definition at line 132 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat___r9___width   1

Definition at line 133 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_r_wr_stat_offset   152

Definition at line 153 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_ctrl___en___bit   0

Definition at line 63 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_ctrl___en___lsb   0

Definition at line 61 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_ctrl___en___width   1

Definition at line 62 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_ctrl_offset   128

Definition at line 64 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_immediate_offset   144

Definition at line 86 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_instr_offset   140

Definition at line 83 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_intr___addr___lsb   0

Definition at line 163 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_intr___addr___width   12

Definition at line 164 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_intr_offset   196

Definition at line 165 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_r_offset   0

Definition at line 58 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_thread___addr___lsb   0

Definition at line 157 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_thread___addr___width   12

Definition at line 158 of file iop_mpu_defs_asm.h.

#define reg_iop_mpu_rw_thread_offset   156

Definition at line 159 of file iop_mpu_defs_asm.h.

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

Definition at line 36 of file iop_mpu_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_mpu_defs_asm.h.

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

Definition at line 32 of file iop_mpu_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_mpu_defs_asm.h.

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

Definition at line 26 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_no   0x00000000

Definition at line 169 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_r_pc_default   0x00000000

Definition at line 170 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_rw_ctrl_default   0x00000000

Definition at line 171 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_rw_intr_size   0x00000010

Definition at line 172 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_rw_r_size   0x00000010

Definition at line 173 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_rw_thread_default   0x00000000

Definition at line 174 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_rw_thread_size   0x00000004

Definition at line 175 of file iop_mpu_defs_asm.h.

#define regk_iop_mpu_yes   0x00000001

Definition at line 176 of file iop_mpu_defs_asm.h.

#define STRIDE_iop_mpu_rw_intr   4

Definition at line 161 of file iop_mpu_defs_asm.h.

#define STRIDE_iop_mpu_rw_r   4

Definition at line 56 of file iop_mpu_defs_asm.h.

#define STRIDE_iop_mpu_rw_thread   4

Definition at line 155 of file iop_mpu_defs_asm.h.