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

Go to the source code of this file.

Macros

#define REG_FIELD(scope, reg, field, value)   REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_FIELD_X_(value, shift)   ((value) << shift)
 
#define REG_STATE(scope, reg, field, symbolic_value)   REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_STATE_X_(k, shift)   (k << shift)
 
#define REG_MASK(scope, reg, field)   REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb )
 
#define REG_MASK_X_(width, lsb)   (((1 << width)-1) << lsb)
 
#define REG_LSB(scope, reg, field)   reg_##scope##_##reg##___##field##___lsb
 
#define REG_BIT(scope, reg, field)   reg_##scope##_##reg##___##field##___bit
 
#define REG_ADDR(scope, inst, reg)   REG_ADDR_X_(inst, reg_##scope##_##reg##_offset)
 
#define REG_ADDR_X_(inst, offs)   ((inst) + offs)
 
#define REG_ADDR_VECT(scope, inst, reg, index)
 
#define REG_ADDR_VECT_X_(inst, offs, index, stride)   ((inst) + offs + (index) * stride)
 
#define reg_strmux_rw_cfg___dma0___lsb   0
 
#define reg_strmux_rw_cfg___dma0___width   3
 
#define reg_strmux_rw_cfg___dma1___lsb   3
 
#define reg_strmux_rw_cfg___dma1___width   3
 
#define reg_strmux_rw_cfg___dma2___lsb   6
 
#define reg_strmux_rw_cfg___dma2___width   3
 
#define reg_strmux_rw_cfg___dma3___lsb   9
 
#define reg_strmux_rw_cfg___dma3___width   3
 
#define reg_strmux_rw_cfg___dma4___lsb   12
 
#define reg_strmux_rw_cfg___dma4___width   3
 
#define reg_strmux_rw_cfg___dma5___lsb   15
 
#define reg_strmux_rw_cfg___dma5___width   3
 
#define reg_strmux_rw_cfg___dma6___lsb   18
 
#define reg_strmux_rw_cfg___dma6___width   3
 
#define reg_strmux_rw_cfg___dma7___lsb   21
 
#define reg_strmux_rw_cfg___dma7___width   3
 
#define reg_strmux_rw_cfg___dma8___lsb   24
 
#define reg_strmux_rw_cfg___dma8___width   3
 
#define reg_strmux_rw_cfg___dma9___lsb   27
 
#define reg_strmux_rw_cfg___dma9___width   3
 
#define reg_strmux_rw_cfg_offset   0
 
#define regk_strmux_ata   0x00000003
 
#define regk_strmux_eth0   0x00000001
 
#define regk_strmux_eth1   0x00000004
 
#define regk_strmux_ext0   0x00000001
 
#define regk_strmux_ext1   0x00000001
 
#define regk_strmux_ext2   0x00000001
 
#define regk_strmux_ext3   0x00000001
 
#define regk_strmux_iop0   0x00000002
 
#define regk_strmux_iop1   0x00000001
 
#define regk_strmux_off   0x00000000
 
#define regk_strmux_p21   0x00000004
 
#define regk_strmux_rw_cfg_default   0x00000000
 
#define regk_strmux_ser0   0x00000002
 
#define regk_strmux_ser1   0x00000002
 
#define regk_strmux_ser2   0x00000004
 
#define regk_strmux_ser3   0x00000003
 
#define regk_strmux_sser0   0x00000003
 
#define regk_strmux_sser1   0x00000003
 
#define regk_strmux_strcop   0x00000002
 

Macro Definition Documentation

#define REG_ADDR (   scope,
  inst,
  reg 
)    REG_ADDR_X_(inst, reg_##scope##_##reg##_offset)

Definition at line 44 of file strmux_defs_asm.h.

#define REG_ADDR_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \
STRIDE_##scope##_##reg )

Definition at line 49 of file strmux_defs_asm.h.

#define REG_ADDR_VECT_X_ (   inst,
  offs,
  index,
  stride 
)    ((inst) + offs + (index) * stride)

Definition at line 52 of file strmux_defs_asm.h.

#define REG_ADDR_X_ (   inst,
  offs 
)    ((inst) + offs)

Definition at line 45 of file strmux_defs_asm.h.

#define REG_BIT (   scope,
  reg,
  field 
)    reg_##scope##_##reg##___##field##___bit

Definition at line 40 of file strmux_defs_asm.h.

#define REG_FIELD (   scope,
  reg,
  field,
  value 
)    REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb )

Definition at line 18 of file strmux_defs_asm.h.

#define REG_FIELD_X_ (   value,
  shift 
)    ((value) << shift)

Definition at line 20 of file strmux_defs_asm.h.

#define REG_LSB (   scope,
  reg,
  field 
)    reg_##scope##_##reg##___##field##___lsb

Definition at line 36 of file strmux_defs_asm.h.

#define REG_MASK (   scope,
  reg,
  field 
)    REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb )

Definition at line 30 of file strmux_defs_asm.h.

#define REG_MASK_X_ (   width,
  lsb 
)    (((1 << width)-1) << lsb)

Definition at line 32 of file strmux_defs_asm.h.

#define REG_STATE (   scope,
  reg,
  field,
  symbolic_value 
)    REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb )

Definition at line 24 of file strmux_defs_asm.h.

#define REG_STATE_X_ (   k,
  shift 
)    (k << shift)

Definition at line 26 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma0___lsb   0

Definition at line 57 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma0___width   3

Definition at line 58 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma1___lsb   3

Definition at line 59 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma1___width   3

Definition at line 60 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma2___lsb   6

Definition at line 61 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma2___width   3

Definition at line 62 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma3___lsb   9

Definition at line 63 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma3___width   3

Definition at line 64 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma4___lsb   12

Definition at line 65 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma4___width   3

Definition at line 66 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma5___lsb   15

Definition at line 67 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma5___width   3

Definition at line 68 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma6___lsb   18

Definition at line 69 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma6___width   3

Definition at line 70 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma7___lsb   21

Definition at line 71 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma7___width   3

Definition at line 72 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma8___lsb   24

Definition at line 73 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma8___width   3

Definition at line 74 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma9___lsb   27

Definition at line 75 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg___dma9___width   3

Definition at line 76 of file strmux_defs_asm.h.

#define reg_strmux_rw_cfg_offset   0

Definition at line 77 of file strmux_defs_asm.h.

#define regk_strmux_ata   0x00000003

Definition at line 81 of file strmux_defs_asm.h.

#define regk_strmux_eth0   0x00000001

Definition at line 82 of file strmux_defs_asm.h.

#define regk_strmux_eth1   0x00000004

Definition at line 83 of file strmux_defs_asm.h.

#define regk_strmux_ext0   0x00000001

Definition at line 84 of file strmux_defs_asm.h.

#define regk_strmux_ext1   0x00000001

Definition at line 85 of file strmux_defs_asm.h.

#define regk_strmux_ext2   0x00000001

Definition at line 86 of file strmux_defs_asm.h.

#define regk_strmux_ext3   0x00000001

Definition at line 87 of file strmux_defs_asm.h.

#define regk_strmux_iop0   0x00000002

Definition at line 88 of file strmux_defs_asm.h.

#define regk_strmux_iop1   0x00000001

Definition at line 89 of file strmux_defs_asm.h.

#define regk_strmux_off   0x00000000

Definition at line 90 of file strmux_defs_asm.h.

#define regk_strmux_p21   0x00000004

Definition at line 91 of file strmux_defs_asm.h.

#define regk_strmux_rw_cfg_default   0x00000000

Definition at line 92 of file strmux_defs_asm.h.

#define regk_strmux_ser0   0x00000002

Definition at line 93 of file strmux_defs_asm.h.

#define regk_strmux_ser1   0x00000002

Definition at line 94 of file strmux_defs_asm.h.

#define regk_strmux_ser2   0x00000004

Definition at line 95 of file strmux_defs_asm.h.

#define regk_strmux_ser3   0x00000003

Definition at line 96 of file strmux_defs_asm.h.

#define regk_strmux_sser0   0x00000003

Definition at line 97 of file strmux_defs_asm.h.

#define regk_strmux_sser1   0x00000003

Definition at line 98 of file strmux_defs_asm.h.

#define regk_strmux_strcop   0x00000002

Definition at line 99 of file strmux_defs_asm.h.