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

Go to the source code of this file.

Data Structures

struct  reg_iop_sap_in_rw_bus_byte
 
struct  reg_iop_sap_in_rw_gio
 

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 STRIDE_iop_sap_in_rw_bus_byte   4
 
#define REG_RD_ADDR_iop_sap_in_rw_bus_byte   0
 
#define REG_WR_ADDR_iop_sap_in_rw_bus_byte   0
 
#define STRIDE_iop_sap_in_rw_gio   4
 
#define REG_RD_ADDR_iop_sap_in_rw_gio   16
 
#define REG_WR_ADDR_iop_sap_in_rw_gio   16
 

Enumerations

enum  {
  regk_iop_sap_in_and = 0x00000002, regk_iop_sap_in_ext_clk200 = 0x00000003, regk_iop_sap_in_gio0 = 0x00000000, regk_iop_sap_in_gio12 = 0x00000003,
  regk_iop_sap_in_gio16 = 0x00000004, regk_iop_sap_in_gio20 = 0x00000005, regk_iop_sap_in_gio24 = 0x00000006, regk_iop_sap_in_gio28 = 0x00000007,
  regk_iop_sap_in_gio4 = 0x00000001, regk_iop_sap_in_gio8 = 0x00000002, regk_iop_sap_in_inv = 0x00000001, regk_iop_sap_in_neg = 0x00000002,
  regk_iop_sap_in_no = 0x00000000, regk_iop_sap_in_no_del_ext_clk200 = 0x00000002, regk_iop_sap_in_none = 0x00000000, regk_iop_sap_in_one = 0x00000001,
  regk_iop_sap_in_or = 0x00000003, regk_iop_sap_in_pos = 0x00000001, regk_iop_sap_in_pos_neg = 0x00000003, regk_iop_sap_in_rw_bus_byte_default = 0x00000000,
  regk_iop_sap_in_rw_bus_byte_size = 0x00000004, regk_iop_sap_in_rw_gio_default = 0x00000000, regk_iop_sap_in_rw_gio_size = 0x00000020, regk_iop_sap_in_timer_grp0_tmr3 = 0x00000000,
  regk_iop_sap_in_timer_grp1_tmr3 = 0x00000001, regk_iop_sap_in_tmr_clk200 = 0x00000001, regk_iop_sap_in_two = 0x00000002, regk_iop_sap_in_two_clk200 = 0x00000000
}
 

Macro Definition Documentation

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

Definition at line 72 of file iop_sap_in_defs.h.

#define REG_ADDR_VECT (   scope,
  inst,
  reg,
  index 
)
Value:
( (inst) + REG_RD_ADDR_##scope##_##reg + \
(index) * STRIDE_##scope##_##reg )

Definition at line 77 of file iop_sap_in_defs.h.

#define reg_page_size   8192

Definition at line 68 of file iop_sap_in_defs.h.

#define REG_RD (   scope,
  inst,
  reg 
)
Value:
REG_READ( reg_##scope##_##reg, \
(inst) + REG_RD_ADDR_##scope##_##reg )

Definition at line 15 of file iop_sap_in_defs.h.

#define REG_RD_ADDR_iop_sap_in_rw_bus_byte   0

Definition at line 93 of file iop_sap_in_defs.h.

#define REG_RD_ADDR_iop_sap_in_rw_gio   16

Definition at line 106 of file iop_sap_in_defs.h.

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

Definition at line 41 of file iop_sap_in_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 51 of file iop_sap_in_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 27 of file iop_sap_in_defs.h.

#define REG_TYPE_CONV (   type,
  orgtype,
  val 
)    ( { union { orgtype o; type n; } r; r.o = val; r.n; } )

Definition at line 63 of file iop_sap_in_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 21 of file iop_sap_in_defs.h.

#define REG_WR_ADDR_iop_sap_in_rw_bus_byte   0

Definition at line 94 of file iop_sap_in_defs.h.

#define REG_WR_ADDR_iop_sap_in_rw_gio   16

Definition at line 107 of file iop_sap_in_defs.h.

#define REG_WR_INT (   scope,
  inst,
  reg,
  val 
)    REG_WRITE( int, (inst) + REG_WR_ADDR_##scope##_##reg, (val) )

Definition at line 46 of file iop_sap_in_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 57 of file iop_sap_in_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 34 of file iop_sap_in_defs.h.

#define STRIDE_iop_sap_in_rw_bus_byte   4

Definition at line 84 of file iop_sap_in_defs.h.

#define STRIDE_iop_sap_in_rw_gio   4

Definition at line 96 of file iop_sap_in_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_iop_sap_in_and 
regk_iop_sap_in_ext_clk200 
regk_iop_sap_in_gio0 
regk_iop_sap_in_gio12 
regk_iop_sap_in_gio16 
regk_iop_sap_in_gio20 
regk_iop_sap_in_gio24 
regk_iop_sap_in_gio28 
regk_iop_sap_in_gio4 
regk_iop_sap_in_gio8 
regk_iop_sap_in_inv 
regk_iop_sap_in_neg 
regk_iop_sap_in_no 
regk_iop_sap_in_no_del_ext_clk200 
regk_iop_sap_in_none 
regk_iop_sap_in_one 
regk_iop_sap_in_or 
regk_iop_sap_in_pos 
regk_iop_sap_in_pos_neg 
regk_iop_sap_in_rw_bus_byte_default 
regk_iop_sap_in_rw_bus_byte_size 
regk_iop_sap_in_rw_gio_default 
regk_iop_sap_in_rw_gio_size 
regk_iop_sap_in_timer_grp0_tmr3 
regk_iop_sap_in_timer_grp1_tmr3 
regk_iop_sap_in_tmr_clk200 
regk_iop_sap_in_two 
regk_iop_sap_in_two_clk200 

Definition at line 111 of file iop_sap_in_defs.h.