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

Go to the source code of this file.

Data Structures

struct  reg_extmem_rw_cse0_cfg
 
struct  reg_extmem_rw_cse1_cfg
 
struct  reg_extmem_rw_csr0_cfg
 
struct  reg_extmem_rw_csr1_cfg
 
struct  reg_extmem_rw_csp0_cfg
 
struct  reg_extmem_rw_csp1_cfg
 
struct  reg_extmem_rw_csp2_cfg
 
struct  reg_extmem_rw_csp3_cfg
 
struct  reg_extmem_rw_csp4_cfg
 
struct  reg_extmem_rw_csp5_cfg
 
struct  reg_extmem_rw_csp6_cfg
 
struct  reg_extmem_rw_css_cfg
 
struct  reg_extmem_rw_status_handle
 
struct  reg_extmem_rw_wait_pin
 
struct  reg_extmem_rw_gated_csp
 

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_extmem_rw_cse0_cfg   0
 
#define REG_WR_ADDR_extmem_rw_cse0_cfg   0
 
#define REG_RD_ADDR_extmem_rw_cse1_cfg   4
 
#define REG_WR_ADDR_extmem_rw_cse1_cfg   4
 
#define REG_RD_ADDR_extmem_rw_csr0_cfg   8
 
#define REG_WR_ADDR_extmem_rw_csr0_cfg   8
 
#define REG_RD_ADDR_extmem_rw_csr1_cfg   12
 
#define REG_WR_ADDR_extmem_rw_csr1_cfg   12
 
#define REG_RD_ADDR_extmem_rw_csp0_cfg   16
 
#define REG_WR_ADDR_extmem_rw_csp0_cfg   16
 
#define REG_RD_ADDR_extmem_rw_csp1_cfg   20
 
#define REG_WR_ADDR_extmem_rw_csp1_cfg   20
 
#define REG_RD_ADDR_extmem_rw_csp2_cfg   24
 
#define REG_WR_ADDR_extmem_rw_csp2_cfg   24
 
#define REG_RD_ADDR_extmem_rw_csp3_cfg   28
 
#define REG_WR_ADDR_extmem_rw_csp3_cfg   28
 
#define REG_RD_ADDR_extmem_rw_csp4_cfg   32
 
#define REG_WR_ADDR_extmem_rw_csp4_cfg   32
 
#define REG_RD_ADDR_extmem_rw_csp5_cfg   36
 
#define REG_WR_ADDR_extmem_rw_csp5_cfg   36
 
#define REG_RD_ADDR_extmem_rw_csp6_cfg   40
 
#define REG_WR_ADDR_extmem_rw_csp6_cfg   40
 
#define REG_RD_ADDR_extmem_rw_css_cfg   44
 
#define REG_WR_ADDR_extmem_rw_css_cfg   44
 
#define REG_RD_ADDR_extmem_rw_status_handle   48
 
#define REG_WR_ADDR_extmem_rw_status_handle   48
 
#define REG_RD_ADDR_extmem_rw_wait_pin   52
 
#define REG_WR_ADDR_extmem_rw_wait_pin   52
 
#define REG_RD_ADDR_extmem_rw_gated_csp   56
 
#define REG_WR_ADDR_extmem_rw_gated_csp   56
 

Enumerations

enum  {
  regk_extmem_b16 = 0x00000001, regk_extmem_b32 = 0x00000000, regk_extmem_bwe = 0x00000000, regk_extmem_cwe = 0x00000001,
  regk_extmem_no = 0x00000000, regk_extmem_rw_cse0_cfg_default = 0x000006cf, regk_extmem_rw_cse1_cfg_default = 0x000006cf, regk_extmem_rw_csp0_cfg_default = 0x000006cf,
  regk_extmem_rw_csp1_cfg_default = 0x000006cf, regk_extmem_rw_csp2_cfg_default = 0x000006cf, regk_extmem_rw_csp3_cfg_default = 0x000006cf, regk_extmem_rw_csp4_cfg_default = 0x000006cf,
  regk_extmem_rw_csp5_cfg_default = 0x000006cf, regk_extmem_rw_csp6_cfg_default = 0x000006cf, regk_extmem_rw_csr0_cfg_default = 0x000006cf, regk_extmem_rw_csr1_cfg_default = 0x000006cf,
  regk_extmem_rw_css_cfg_default = 0x000006cf, regk_extmem_s128KB = 0x00000000, regk_extmem_s16MB = 0x00000005, regk_extmem_s1MB = 0x00000001,
  regk_extmem_s2MB = 0x00000002, regk_extmem_s32MB = 0x00000006, regk_extmem_s4MB = 0x00000003, regk_extmem_s64MB = 0x00000007,
  regk_extmem_s8MB = 0x00000004, regk_extmem_yes = 0x00000001
}
 

Macro Definition Documentation

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

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

#define reg_page_size   8192

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

#define REG_RD_ADDR_extmem_rw_cse0_cfg   0

Definition at line 103 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_cse1_cfg   4

Definition at line 122 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp0_cfg   16

Definition at line 179 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp1_cfg   20

Definition at line 198 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp2_cfg   24

Definition at line 217 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp3_cfg   28

Definition at line 236 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp4_cfg   32

Definition at line 255 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp5_cfg   36

Definition at line 274 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csp6_cfg   40

Definition at line 293 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csr0_cfg   8

Definition at line 141 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_csr1_cfg   12

Definition at line 160 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_css_cfg   44

Definition at line 312 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_gated_csp   56

Definition at line 336 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_status_handle   48

Definition at line 319 of file extmem_defs.h.

#define REG_RD_ADDR_extmem_rw_wait_pin   52

Definition at line 328 of file extmem_defs.h.

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

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

#define REG_WR_ADDR_extmem_rw_cse0_cfg   0

Definition at line 104 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_cse1_cfg   4

Definition at line 123 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp0_cfg   16

Definition at line 180 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp1_cfg   20

Definition at line 199 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp2_cfg   24

Definition at line 218 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp3_cfg   28

Definition at line 237 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp4_cfg   32

Definition at line 256 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp5_cfg   36

Definition at line 275 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csp6_cfg   40

Definition at line 294 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csr0_cfg   8

Definition at line 142 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_csr1_cfg   12

Definition at line 161 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_css_cfg   44

Definition at line 313 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_gated_csp   56

Definition at line 337 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_status_handle   48

Definition at line 320 of file extmem_defs.h.

#define REG_WR_ADDR_extmem_rw_wait_pin   52

Definition at line 329 of file extmem_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 extmem_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 extmem_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 extmem_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_extmem_b16 
regk_extmem_b32 
regk_extmem_bwe 
regk_extmem_cwe 
regk_extmem_no 
regk_extmem_rw_cse0_cfg_default 
regk_extmem_rw_cse1_cfg_default 
regk_extmem_rw_csp0_cfg_default 
regk_extmem_rw_csp1_cfg_default 
regk_extmem_rw_csp2_cfg_default 
regk_extmem_rw_csp3_cfg_default 
regk_extmem_rw_csp4_cfg_default 
regk_extmem_rw_csp5_cfg_default 
regk_extmem_rw_csp6_cfg_default 
regk_extmem_rw_csr0_cfg_default 
regk_extmem_rw_csr1_cfg_default 
regk_extmem_rw_css_cfg_default 
regk_extmem_s128KB 
regk_extmem_s16MB 
regk_extmem_s1MB 
regk_extmem_s2MB 
regk_extmem_s32MB 
regk_extmem_s4MB 
regk_extmem_s64MB 
regk_extmem_s8MB 
regk_extmem_yes 

Definition at line 341 of file extmem_defs.h.