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

Go to the source code of this file.

Data Structures

struct  reg_strmux_rw_cfg
 

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_strmux_rw_cfg   0
 
#define REG_WR_ADDR_strmux_rw_cfg   0
 

Enumerations

enum  {
  regk_strmux_ata = 0x00000003, regk_strmux_eth0 = 0x00000001, regk_strmux_eth1 = 0x00000004, regk_strmux_ext0 = 0x00000001,
  regk_strmux_ext1 = 0x00000001, regk_strmux_ext2 = 0x00000001, regk_strmux_ext3 = 0x00000001, regk_strmux_iop0 = 0x00000002,
  regk_strmux_iop1 = 0x00000001, regk_strmux_off = 0x00000000, regk_strmux_p21 = 0x00000004, regk_strmux_rw_cfg_default = 0x00000000,
  regk_strmux_ser0 = 0x00000002, regk_strmux_ser1 = 0x00000002, regk_strmux_ser2 = 0x00000004, regk_strmux_ser3 = 0x00000003,
  regk_strmux_sser0 = 0x00000003, regk_strmux_sser1 = 0x00000003, regk_strmux_strcop = 0x00000002
}
 

Macro Definition Documentation

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

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

#define reg_page_size   8192

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

#define REG_RD_ADDR_strmux_rw_cfg   0

Definition at line 101 of file strmux_defs.h.

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

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

#define REG_WR_ADDR_strmux_rw_cfg   0

Definition at line 102 of file strmux_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 strmux_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 strmux_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 strmux_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_strmux_ata 
regk_strmux_eth0 
regk_strmux_eth1 
regk_strmux_ext0 
regk_strmux_ext1 
regk_strmux_ext2 
regk_strmux_ext3 
regk_strmux_iop0 
regk_strmux_iop1 
regk_strmux_off 
regk_strmux_p21 
regk_strmux_rw_cfg_default 
regk_strmux_ser0 
regk_strmux_ser1 
regk_strmux_ser2 
regk_strmux_ser3 
regk_strmux_sser0 
regk_strmux_sser1 
regk_strmux_strcop 

Definition at line 106 of file strmux_defs.h.