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

Go to the source code of this file.

Data Structures

struct  reg_l2cache_rw_cfg
 
struct  reg_l2cache_rw_ctrl
 
struct  reg_l2cache_rw_idxop
 
struct  reg_l2cache_rw_addrop_addr
 
struct  reg_l2cache_rw_addrop_ctrl
 

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 REG_RD_ADDR_l2cache_rw_cfg   0
 
#define REG_WR_ADDR_l2cache_rw_cfg   0
 
#define REG_RD_ADDR_l2cache_rw_ctrl   4
 
#define REG_WR_ADDR_l2cache_rw_ctrl   4
 
#define REG_RD_ADDR_l2cache_rw_idxop   8
 
#define REG_WR_ADDR_l2cache_rw_idxop   8
 
#define REG_RD_ADDR_l2cache_rw_addrop_addr   12
 
#define REG_WR_ADDR_l2cache_rw_addrop_addr   12
 
#define REG_RD_ADDR_l2cache_rw_addrop_ctrl   16
 
#define REG_WR_ADDR_l2cache_rw_addrop_ctrl   16
 

Enumerations

enum  {
  regk_l2cache_flush = 0x00000001, regk_l2cache_no = 0x00000000, regk_l2cache_rw_addrop_addr_default = 0x00000000, regk_l2cache_rw_addrop_ctrl_default = 0x00000000,
  regk_l2cache_rw_cfg_default = 0x00000000, regk_l2cache_rw_ctrl_default = 0x00000000, regk_l2cache_rw_idxop_default = 0x00000000, regk_l2cache_yes = 0x00000001
}
 

Macro Definition Documentation

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

Definition at line 72 of file l2cache_defs.h.

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

Definition at line 77 of file l2cache_defs.h.

#define reg_page_size   8192

Definition at line 68 of file l2cache_defs.h.

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

Definition at line 15 of file l2cache_defs.h.

#define REG_RD_ADDR_l2cache_rw_addrop_addr   12

Definition at line 118 of file l2cache_defs.h.

#define REG_RD_ADDR_l2cache_rw_addrop_ctrl   16

Definition at line 127 of file l2cache_defs.h.

#define REG_RD_ADDR_l2cache_rw_cfg   0

Definition at line 89 of file l2cache_defs.h.

#define REG_RD_ADDR_l2cache_rw_ctrl   4

Definition at line 100 of file l2cache_defs.h.

#define REG_RD_ADDR_l2cache_rw_idxop   8

Definition at line 111 of file l2cache_defs.h.

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

Definition at line 41 of file l2cache_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 51 of file l2cache_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 27 of file l2cache_defs.h.

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

Definition at line 63 of file l2cache_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 21 of file l2cache_defs.h.

#define REG_WR_ADDR_l2cache_rw_addrop_addr   12

Definition at line 119 of file l2cache_defs.h.

#define REG_WR_ADDR_l2cache_rw_addrop_ctrl   16

Definition at line 128 of file l2cache_defs.h.

#define REG_WR_ADDR_l2cache_rw_cfg   0

Definition at line 90 of file l2cache_defs.h.

#define REG_WR_ADDR_l2cache_rw_ctrl   4

Definition at line 101 of file l2cache_defs.h.

#define REG_WR_ADDR_l2cache_rw_idxop   8

Definition at line 112 of file l2cache_defs.h.

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

Definition at line 46 of file l2cache_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 57 of file l2cache_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 34 of file l2cache_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_l2cache_flush 
regk_l2cache_no 
regk_l2cache_rw_addrop_addr_default 
regk_l2cache_rw_addrop_ctrl_default 
regk_l2cache_rw_cfg_default 
regk_l2cache_rw_ctrl_default 
regk_l2cache_rw_idxop_default 
regk_l2cache_yes 

Definition at line 132 of file l2cache_defs.h.