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

Go to the source code of this file.

Data Structures

struct  reg_config_r_bootsel
 
struct  reg_config_rw_clk_ctrl
 
struct  reg_config_rw_pad_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_config_r_bootsel   0
 
#define REG_RD_ADDR_config_rw_clk_ctrl   4
 
#define REG_WR_ADDR_config_rw_clk_ctrl   4
 
#define REG_RD_ADDR_config_rw_pad_ctrl   8
 
#define REG_WR_ADDR_config_rw_pad_ctrl   8
 

Enumerations

enum  {
  regk_config_bw16 = 0x00000000, regk_config_bw32 = 0x00000001, regk_config_master = 0x00000005, regk_config_nand = 0x00000003,
  regk_config_net_rx = 0x00000001, regk_config_net_tx_rx = 0x00000002, regk_config_no = 0x00000000, regk_config_none = 0x00000007,
  regk_config_nor = 0x00000000, regk_config_rw_clk_ctrl_default = 0x00000002, regk_config_rw_pad_ctrl_default = 0x00000000, regk_config_ser = 0x00000004,
  regk_config_slave = 0x00000006, regk_config_yes = 0x00000001
}
 

Macro Definition Documentation

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

Definition at line 75 of file config_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 config_defs.h.

#define reg_page_size   8192

Definition at line 71 of file config_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 config_defs.h.

#define REG_RD_ADDR_config_r_bootsel   0

Definition at line 96 of file config_defs.h.

#define REG_RD_ADDR_config_rw_clk_ctrl   4

Definition at line 112 of file config_defs.h.

#define REG_RD_ADDR_config_rw_pad_ctrl   8

Definition at line 121 of file config_defs.h.

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

Definition at line 44 of file config_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 config_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 config_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 config_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 config_defs.h.

#define REG_WR_ADDR_config_rw_clk_ctrl   4

Definition at line 113 of file config_defs.h.

#define REG_WR_ADDR_config_rw_pad_ctrl   8

Definition at line 122 of file config_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 config_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 config_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 config_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_config_bw16 
regk_config_bw32 
regk_config_master 
regk_config_nand 
regk_config_net_rx 
regk_config_net_tx_rx 
regk_config_no 
regk_config_none 
regk_config_nor 
regk_config_rw_clk_ctrl_default 
regk_config_rw_pad_ctrl_default 
regk_config_ser 
regk_config_slave 
regk_config_yes 

Definition at line 126 of file config_defs.h.