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

Go to the source code of this file.

Data Structures

struct  reg_bif_core_rw_grp1_cfg
 
struct  reg_bif_core_rw_grp2_cfg
 
struct  reg_bif_core_rw_grp3_cfg
 
struct  reg_bif_core_rw_grp4_cfg
 
struct  reg_bif_core_rw_sdram_cfg_grp0
 
struct  reg_bif_core_rw_sdram_cfg_grp1
 
struct  reg_bif_core_rw_sdram_timing
 
struct  reg_bif_core_rw_sdram_cmd
 
struct  reg_bif_core_rs_sdram_ref_stat
 
struct  reg_bif_core_r_sdram_ref_stat
 

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_bif_core_rw_grp1_cfg   0
 
#define REG_WR_ADDR_bif_core_rw_grp1_cfg   0
 
#define REG_RD_ADDR_bif_core_rw_grp2_cfg   4
 
#define REG_WR_ADDR_bif_core_rw_grp2_cfg   4
 
#define REG_RD_ADDR_bif_core_rw_grp3_cfg   8
 
#define REG_WR_ADDR_bif_core_rw_grp3_cfg   8
 
#define REG_RD_ADDR_bif_core_rw_grp4_cfg   12
 
#define REG_WR_ADDR_bif_core_rw_grp4_cfg   12
 
#define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp0   16
 
#define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp0   16
 
#define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp1   20
 
#define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp1   20
 
#define REG_RD_ADDR_bif_core_rw_sdram_timing   24
 
#define REG_WR_ADDR_bif_core_rw_sdram_timing   24
 
#define REG_RD_ADDR_bif_core_rw_sdram_cmd   28
 
#define REG_WR_ADDR_bif_core_rw_sdram_cmd   28
 
#define REG_RD_ADDR_bif_core_rs_sdram_ref_stat   32
 
#define REG_RD_ADDR_bif_core_r_sdram_ref_stat   36
 

Enumerations

enum  {
  regk_bif_core_bank2 = 0x00000000, regk_bif_core_bank4 = 0x00000001, regk_bif_core_bit10 = 0x0000000a, regk_bif_core_bit11 = 0x0000000b,
  regk_bif_core_bit12 = 0x0000000c, regk_bif_core_bit13 = 0x0000000d, regk_bif_core_bit14 = 0x0000000e, regk_bif_core_bit15 = 0x0000000f,
  regk_bif_core_bit16 = 0x00000010, regk_bif_core_bit17 = 0x00000011, regk_bif_core_bit18 = 0x00000012, regk_bif_core_bit19 = 0x00000013,
  regk_bif_core_bit20 = 0x00000014, regk_bif_core_bit21 = 0x00000015, regk_bif_core_bit22 = 0x00000016, regk_bif_core_bit23 = 0x00000017,
  regk_bif_core_bit24 = 0x00000018, regk_bif_core_bit25 = 0x00000019, regk_bif_core_bit26 = 0x0000001a, regk_bif_core_bit27 = 0x0000001b,
  regk_bif_core_bit28 = 0x0000001c, regk_bif_core_bit29 = 0x0000001d, regk_bif_core_bit9 = 0x00000009, regk_bif_core_bw16 = 0x00000001,
  regk_bif_core_bw32 = 0x00000000, regk_bif_core_bwe = 0x00000000, regk_bif_core_cwe = 0x00000001, regk_bif_core_e15us = 0x00000001,
  regk_bif_core_e7800ns = 0x00000002, regk_bif_core_grp0 = 0x00000000, regk_bif_core_grp1 = 0x00000001, regk_bif_core_mrs = 0x00000003,
  regk_bif_core_no = 0x00000000, regk_bif_core_none = 0x00000000, regk_bif_core_nop = 0x00000000, regk_bif_core_off = 0x00000000,
  regk_bif_core_pre = 0x00000002, regk_bif_core_r_sdram_ref_stat_default = 0x00000001, regk_bif_core_rd = 0x00000002, regk_bif_core_ref = 0x00000001,
  regk_bif_core_rs_sdram_ref_stat_default = 0x00000001, regk_bif_core_rw_grp1_cfg_default = 0x000006cf, regk_bif_core_rw_grp2_cfg_default = 0x000006cf, regk_bif_core_rw_grp3_cfg_default = 0x000006cf,
  regk_bif_core_rw_grp4_cfg_default = 0x000006cf, regk_bif_core_rw_sdram_cfg_grp1_default = 0x00000000, regk_bif_core_slf = 0x00000004, regk_bif_core_wr = 0x00000001,
  regk_bif_core_yes = 0x00000001
}
 

Macro Definition Documentation

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

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

#define reg_page_size   8192

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

#define REG_RD_ADDR_bif_core_r_sdram_ref_stat   36

Definition at line 229 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rs_sdram_ref_stat   32

Definition at line 222 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_grp1_cfg   0

Definition at line 101 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_grp2_cfg   4

Definition at line 118 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_grp3_cfg   8

Definition at line 139 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_grp4_cfg   12

Definition at line 159 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp0   16

Definition at line 174 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_sdram_cfg_grp1   20

Definition at line 188 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_sdram_cmd   28

Definition at line 214 of file bif_core_defs.h.

#define REG_RD_ADDR_bif_core_rw_sdram_timing   24

Definition at line 205 of file bif_core_defs.h.

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

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

#define REG_WR_ADDR_bif_core_rw_grp1_cfg   0

Definition at line 102 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_grp2_cfg   4

Definition at line 119 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_grp3_cfg   8

Definition at line 140 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_grp4_cfg   12

Definition at line 160 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp0   16

Definition at line 175 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_sdram_cfg_grp1   20

Definition at line 189 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_sdram_cmd   28

Definition at line 215 of file bif_core_defs.h.

#define REG_WR_ADDR_bif_core_rw_sdram_timing   24

Definition at line 206 of file bif_core_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 bif_core_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 bif_core_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 bif_core_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_bif_core_bank2 
regk_bif_core_bank4 
regk_bif_core_bit10 
regk_bif_core_bit11 
regk_bif_core_bit12 
regk_bif_core_bit13 
regk_bif_core_bit14 
regk_bif_core_bit15 
regk_bif_core_bit16 
regk_bif_core_bit17 
regk_bif_core_bit18 
regk_bif_core_bit19 
regk_bif_core_bit20 
regk_bif_core_bit21 
regk_bif_core_bit22 
regk_bif_core_bit23 
regk_bif_core_bit24 
regk_bif_core_bit25 
regk_bif_core_bit26 
regk_bif_core_bit27 
regk_bif_core_bit28 
regk_bif_core_bit29 
regk_bif_core_bit9 
regk_bif_core_bw16 
regk_bif_core_bw32 
regk_bif_core_bwe 
regk_bif_core_cwe 
regk_bif_core_e15us 
regk_bif_core_e7800ns 
regk_bif_core_grp0 
regk_bif_core_grp1 
regk_bif_core_mrs 
regk_bif_core_no 
regk_bif_core_none 
regk_bif_core_nop 
regk_bif_core_off 
regk_bif_core_pre 
regk_bif_core_r_sdram_ref_stat_default 
regk_bif_core_rd 
regk_bif_core_ref 
regk_bif_core_rs_sdram_ref_stat_default 
regk_bif_core_rw_grp1_cfg_default 
regk_bif_core_rw_grp2_cfg_default 
regk_bif_core_rw_grp3_cfg_default 
regk_bif_core_rw_grp4_cfg_default 
regk_bif_core_rw_sdram_cfg_grp1_default 
regk_bif_core_slf 
regk_bif_core_wr 
regk_bif_core_yes 

Definition at line 233 of file bif_core_defs.h.