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

Go to the source code of this file.

Data Structures

struct  reg_timer_rw_tmr0_ctrl
 
struct  reg_timer_rw_tmr1_ctrl
 
struct  reg_timer_rs_cnt_data
 
struct  reg_timer_r_cnt_data
 
struct  reg_timer_rw_cnt_cfg
 
struct  reg_timer_rw_trig_cfg
 
struct  reg_timer_rw_out
 
struct  reg_timer_rw_wd_ctrl
 
struct  reg_timer_r_wd_stat
 
struct  reg_timer_rw_intr_mask
 
struct  reg_timer_rw_ack_intr
 
struct  reg_timer_r_intr
 
struct  reg_timer_r_masked_intr
 
struct  reg_timer_rw_test
 

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_timer_rw_tmr0_div   0
 
#define REG_WR_ADDR_timer_rw_tmr0_div   0
 
#define REG_RD_ADDR_timer_r_tmr0_data   4
 
#define REG_RD_ADDR_timer_rw_tmr0_ctrl   8
 
#define REG_WR_ADDR_timer_rw_tmr0_ctrl   8
 
#define REG_RD_ADDR_timer_rw_tmr1_div   16
 
#define REG_WR_ADDR_timer_rw_tmr1_div   16
 
#define REG_RD_ADDR_timer_r_tmr1_data   20
 
#define REG_RD_ADDR_timer_rw_tmr1_ctrl   24
 
#define REG_WR_ADDR_timer_rw_tmr1_ctrl   24
 
#define REG_RD_ADDR_timer_rs_cnt_data   32
 
#define REG_RD_ADDR_timer_r_cnt_data   36
 
#define REG_RD_ADDR_timer_rw_cnt_cfg   40
 
#define REG_WR_ADDR_timer_rw_cnt_cfg   40
 
#define REG_RD_ADDR_timer_rw_trig   48
 
#define REG_WR_ADDR_timer_rw_trig   48
 
#define REG_RD_ADDR_timer_rw_trig_cfg   52
 
#define REG_WR_ADDR_timer_rw_trig_cfg   52
 
#define REG_RD_ADDR_timer_r_time   56
 
#define REG_RD_ADDR_timer_rw_out   60
 
#define REG_WR_ADDR_timer_rw_out   60
 
#define REG_RD_ADDR_timer_rw_wd_ctrl   64
 
#define REG_WR_ADDR_timer_rw_wd_ctrl   64
 
#define REG_RD_ADDR_timer_r_wd_stat   68
 
#define REG_RD_ADDR_timer_rw_intr_mask   72
 
#define REG_WR_ADDR_timer_rw_intr_mask   72
 
#define REG_RD_ADDR_timer_rw_ack_intr   76
 
#define REG_WR_ADDR_timer_rw_ack_intr   76
 
#define REG_RD_ADDR_timer_r_intr   80
 
#define REG_RD_ADDR_timer_r_masked_intr   84
 
#define REG_RD_ADDR_timer_rw_test   88
 
#define REG_WR_ADDR_timer_rw_test   88
 

Typedefs

typedef unsigned int reg_timer_rw_tmr0_div
 
typedef unsigned int reg_timer_r_tmr0_data
 
typedef unsigned int reg_timer_rw_tmr1_div
 
typedef unsigned int reg_timer_r_tmr1_data
 
typedef unsigned int reg_timer_rw_trig
 
typedef unsigned int reg_timer_r_time
 

Enumerations

enum  {
  regk_timer_ext = 0x00000001, regk_timer_f100 = 0x00000007, regk_timer_f29_493 = 0x00000004, regk_timer_f32 = 0x00000005,
  regk_timer_f32_768 = 0x00000006, regk_timer_hold = 0x00000001, regk_timer_ld = 0x00000000, regk_timer_no = 0x00000000,
  regk_timer_off = 0x00000000, regk_timer_run = 0x00000002, regk_timer_rw_cnt_cfg_default = 0x00000000, regk_timer_rw_intr_mask_default = 0x00000000,
  regk_timer_rw_out_default = 0x00000000, regk_timer_rw_test_default = 0x00000000, regk_timer_rw_tmr0_ctrl_default = 0x00000000, regk_timer_rw_tmr1_ctrl_default = 0x00000000,
  regk_timer_rw_trig_cfg_default = 0x00000000, regk_timer_start = 0x00000001, regk_timer_stop = 0x00000000, regk_timer_time = 0x00000001,
  regk_timer_tmr0 = 0x00000002, regk_timer_tmr1 = 0x00000003, regk_timer_yes = 0x00000001
}
 

Macro Definition Documentation

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

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

#define reg_page_size   8192

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

#define REG_RD_ADDR_timer_r_cnt_data   36

Definition at line 135 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_intr   80

Definition at line 218 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_masked_intr   84

Definition at line 228 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_time   56

Definition at line 160 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_tmr0_data   4

Definition at line 94 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_tmr1_data   20

Definition at line 112 of file timer_defs.h.

#define REG_RD_ADDR_timer_r_wd_stat   68

Definition at line 186 of file timer_defs.h.

#define REG_RD_ADDR_timer_rs_cnt_data   32

Definition at line 128 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_ack_intr   76

Definition at line 207 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_cnt_cfg   40

Definition at line 142 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_intr_mask   72

Definition at line 196 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_out   60

Definition at line 167 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_test   88

Definition at line 236 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_tmr0_ctrl   8

Definition at line 102 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_tmr0_div   0

Definition at line 89 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_tmr1_ctrl   24

Definition at line 120 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_tmr1_div   16

Definition at line 107 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_trig   48

Definition at line 147 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_trig_cfg   52

Definition at line 155 of file timer_defs.h.

#define REG_RD_ADDR_timer_rw_wd_ctrl   64

Definition at line 177 of file timer_defs.h.

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

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

#define REG_WR_ADDR_timer_rw_ack_intr   76

Definition at line 208 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_cnt_cfg   40

Definition at line 143 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_intr_mask   72

Definition at line 197 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_out   60

Definition at line 168 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_test   88

Definition at line 237 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_tmr0_ctrl   8

Definition at line 103 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_tmr0_div   0

Definition at line 90 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_tmr1_ctrl   24

Definition at line 121 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_tmr1_div   16

Definition at line 108 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_trig   48

Definition at line 148 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_trig_cfg   52

Definition at line 156 of file timer_defs.h.

#define REG_WR_ADDR_timer_rw_wd_ctrl   64

Definition at line 178 of file timer_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 timer_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 timer_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 timer_defs.h.

Typedef Documentation

typedef unsigned int reg_timer_r_time

Definition at line 159 of file timer_defs.h.

typedef unsigned int reg_timer_r_tmr0_data

Definition at line 93 of file timer_defs.h.

typedef unsigned int reg_timer_r_tmr1_data

Definition at line 111 of file timer_defs.h.

typedef unsigned int reg_timer_rw_tmr0_div

Definition at line 88 of file timer_defs.h.

typedef unsigned int reg_timer_rw_tmr1_div

Definition at line 106 of file timer_defs.h.

typedef unsigned int reg_timer_rw_trig

Definition at line 146 of file timer_defs.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
regk_timer_ext 
regk_timer_f100 
regk_timer_f29_493 
regk_timer_f32 
regk_timer_f32_768 
regk_timer_hold 
regk_timer_ld 
regk_timer_no 
regk_timer_off 
regk_timer_run 
regk_timer_rw_cnt_cfg_default 
regk_timer_rw_intr_mask_default 
regk_timer_rw_out_default 
regk_timer_rw_test_default 
regk_timer_rw_tmr0_ctrl_default 
regk_timer_rw_tmr1_ctrl_default 
regk_timer_rw_trig_cfg_default 
regk_timer_start 
regk_timer_stop 
regk_timer_time 
regk_timer_tmr0 
regk_timer_tmr1 
regk_timer_yes 

Definition at line 241 of file timer_defs.h.