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

Go to the source code of this file.

Data Structures

struct  reg_iop_mpu_rw_ctrl
 
struct  reg_iop_mpu_r_pc
 
struct  reg_iop_mpu_r_stat
 
struct  reg_iop_mpu_r_trace
 
struct  reg_iop_mpu_r_wr_stat
 
struct  reg_iop_mpu_rw_thread
 
struct  reg_iop_mpu_rw_intr
 

Macros

#define REG_RD(scope, inst, reg)
 
#define REG_WR(scope, inst, reg, val)
 
#define REG_RD_VECT(scope, inst, reg, index)
 
#define REG_WR_VECT(scope, inst, reg, index, val)
 
#define REG_RD_INT(scope, inst, reg)   REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )
 
#define REG_WR_INT(scope, inst, reg, val)   REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )
 
#define REG_RD_INT_VECT(scope, inst, reg, index)
 
#define REG_WR_INT_VECT(scope, inst, reg, index, val)
 
#define REG_TYPE_CONV(type, orgtype, val)   ( { union { orgtype o; type n; } r; r.o = val; r.n; } )
 
#define reg_page_size   8192
 
#define REG_ADDR(scope, inst, reg)   ( (inst) + REG_RD_ADDR_##scope##_##reg )
 
#define REG_ADDR_VECT(scope, inst, reg, index)
 
#define STRIDE_iop_mpu_rw_r   4
 
#define REG_RD_ADDR_iop_mpu_rw_r   0
 
#define REG_WR_ADDR_iop_mpu_rw_r   0
 
#define REG_RD_ADDR_iop_mpu_rw_ctrl   128
 
#define REG_WR_ADDR_iop_mpu_rw_ctrl   128
 
#define REG_RD_ADDR_iop_mpu_r_pc   132
 
#define REG_RD_ADDR_iop_mpu_r_stat   136
 
#define REG_RD_ADDR_iop_mpu_rw_instr   140
 
#define REG_WR_ADDR_iop_mpu_rw_instr   140
 
#define REG_RD_ADDR_iop_mpu_rw_immediate   144
 
#define REG_WR_ADDR_iop_mpu_rw_immediate   144
 
#define REG_RD_ADDR_iop_mpu_r_trace   148
 
#define REG_RD_ADDR_iop_mpu_r_wr_stat   152
 
#define STRIDE_iop_mpu_rw_thread   4
 
#define REG_RD_ADDR_iop_mpu_rw_thread   156
 
#define REG_WR_ADDR_iop_mpu_rw_thread   156
 
#define STRIDE_iop_mpu_rw_intr   4
 
#define REG_RD_ADDR_iop_mpu_rw_intr   196
 
#define REG_WR_ADDR_iop_mpu_rw_intr   196
 

Typedefs

typedef unsigned int reg_iop_mpu_rw_r
 
typedef unsigned int reg_iop_mpu_rw_instr
 
typedef unsigned int reg_iop_mpu_rw_immediate
 

Enumerations

enum  {
  regk_iop_mpu_no = 0x00000000, regk_iop_mpu_r_pc_default = 0x00000000, regk_iop_mpu_rw_ctrl_default = 0x00000000, regk_iop_mpu_rw_intr_size = 0x00000010,
  regk_iop_mpu_rw_r_size = 0x00000010, regk_iop_mpu_rw_thread_default = 0x00000000, regk_iop_mpu_rw_thread_size = 0x00000004, regk_iop_mpu_yes = 0x00000001
}
 

Macro Definition Documentation

#define REG_ADDR (   scope,
  inst,
  reg 
)    ( (inst) + REG_RD_ADDR_##scope##_##reg )

Definition at line 75 of file iop_mpu_defs.h.

#define REG_ADDR_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
( (inst) + REG_RD_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg )

Definition at line 80 of file iop_mpu_defs.h.

#define reg_page_size   8192

Definition at line 71 of file iop_mpu_defs.h.

#define REG_RD (   scope,
  inst,
  reg 
)
Value:
REG_READ( reg_##scope##_##reg, \
(inst) + REG_RD_ADDR_##scope##_##reg )

Definition at line 18 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_r_pc   132

Definition at line 106 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_r_stat   136

Definition at line 115 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_r_trace   148

Definition at line 136 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_r_wr_stat   152

Definition at line 158 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_ctrl   128

Definition at line 98 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_immediate   144

Definition at line 124 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_instr   140

Definition at line 119 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_intr   196

Definition at line 175 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_r   0

Definition at line 90 of file iop_mpu_defs.h.

#define REG_RD_ADDR_iop_mpu_rw_thread   156

Definition at line 166 of file iop_mpu_defs.h.

#define REG_RD_INT (   scope,
  inst,
  reg 
)    REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg )

Definition at line 44 of file iop_mpu_defs.h.

#define REG_RD_INT_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
REG_READ( int, (inst) + REG_RD_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg )

Definition at line 54 of file iop_mpu_defs.h.

#define REG_RD_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
REG_READ( reg_##scope##_##reg, \
(inst) + REG_RD_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg )

Definition at line 30 of file iop_mpu_defs.h.

#define REG_TYPE_CONV (   type,
  orgtype,
  val 
)    ( { union { orgtype o; type n; } r; r.o = val; r.n; } )

Definition at line 66 of file iop_mpu_defs.h.

#define REG_WR (   scope,
  inst,
  reg,
  val 
)
Value:
REG_WRITE( reg_##scope##_##reg, \
(inst) + REG_WR_ADDR_##scope##_##reg, (val) )

Definition at line 24 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_ctrl   128

Definition at line 99 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_immediate   144

Definition at line 125 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_instr   140

Definition at line 120 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_intr   196

Definition at line 176 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_r   0

Definition at line 91 of file iop_mpu_defs.h.

#define REG_WR_ADDR_iop_mpu_rw_thread   156

Definition at line 167 of file iop_mpu_defs.h.

#define REG_WR_INT (   scope,
  inst,
  reg,
  val 
)    REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )

Definition at line 49 of file iop_mpu_defs.h.

#define REG_WR_INT_VECT (   scope,
  inst,
  reg,
  index,
  val 
)
Value:
REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg, (val) )

Definition at line 60 of file iop_mpu_defs.h.

#define REG_WR_VECT (   scope,
  inst,
  reg,
  index,
  val 
)
Value:
REG_WRITE( reg_##scope##_##reg, \
(inst) + REG_WR_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg, (val) )

Definition at line 37 of file iop_mpu_defs.h.

#define STRIDE_iop_mpu_rw_intr   4

Definition at line 169 of file iop_mpu_defs.h.

#define STRIDE_iop_mpu_rw_r   4

Definition at line 87 of file iop_mpu_defs.h.

#define STRIDE_iop_mpu_rw_thread   4

Definition at line 160 of file iop_mpu_defs.h.

Typedef Documentation

typedef unsigned int reg_iop_mpu_rw_immediate

Definition at line 123 of file iop_mpu_defs.h.

typedef unsigned int reg_iop_mpu_rw_instr

Definition at line 118 of file iop_mpu_defs.h.

typedef unsigned int reg_iop_mpu_rw_r

Definition at line 89 of file iop_mpu_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_iop_mpu_no 
regk_iop_mpu_r_pc_default 
regk_iop_mpu_rw_ctrl_default 
regk_iop_mpu_rw_intr_size 
regk_iop_mpu_rw_r_size 
regk_iop_mpu_rw_thread_default 
regk_iop_mpu_rw_thread_size 
regk_iop_mpu_yes 

Definition at line 180 of file iop_mpu_defs.h.