Go to the documentation of this file. 1 #ifndef __iop_trigger_grp_defs_asm_h
2 #define __iop_trigger_grp_defs_asm_h
18 #define REG_FIELD( scope, reg, field, value ) \
19 REG_FIELD_X_( value, reg_##scope##_##reg##___##field##___lsb )
20 #define REG_FIELD_X_( value, shift ) ((value) << shift)
24 #define REG_STATE( scope, reg, field, symbolic_value ) \
25 REG_STATE_X_( regk_##scope##_##symbolic_value, reg_##scope##_##reg##___##field##___lsb )
26 #define REG_STATE_X_( k, shift ) (k << shift)
30 #define REG_MASK( scope, reg, field ) \
31 REG_MASK_X_( reg_##scope##_##reg##___##field##___width, reg_##scope##_##reg##___##field##___lsb )
32 #define REG_MASK_X_( width, lsb ) (((1 << width)-1) << lsb)
36 #define REG_LSB( scope, reg, field ) reg_##scope##_##reg##___##field##___lsb
40 #define REG_BIT( scope, reg, field ) reg_##scope##_##reg##___##field##___bit
44 #define REG_ADDR( scope, inst, reg ) REG_ADDR_X_(inst, reg_##scope##_##reg##_offset)
45 #define REG_ADDR_X_( inst, offs ) ((inst) + offs)
49 #define REG_ADDR_VECT( scope, inst, reg, index ) \
50 REG_ADDR_VECT_X_(inst, reg_##scope##_##reg##_offset, index, \
51 STRIDE_##scope##_##reg )
52 #define REG_ADDR_VECT_X_( inst, offs, index, stride ) \
53 ((inst) + offs + (index) * stride)
56 #define STRIDE_iop_trigger_grp_rw_cfg 4
58 #define reg_iop_trigger_grp_rw_cfg___action___lsb 0
59 #define reg_iop_trigger_grp_rw_cfg___action___width 2
60 #define reg_iop_trigger_grp_rw_cfg___once___lsb 2
61 #define reg_iop_trigger_grp_rw_cfg___once___width 1
62 #define reg_iop_trigger_grp_rw_cfg___once___bit 2
63 #define reg_iop_trigger_grp_rw_cfg___trig___lsb 3
64 #define reg_iop_trigger_grp_rw_cfg___trig___width 3
65 #define reg_iop_trigger_grp_rw_cfg___en_only_by_reg___lsb 6
66 #define reg_iop_trigger_grp_rw_cfg___en_only_by_reg___width 1
67 #define reg_iop_trigger_grp_rw_cfg___en_only_by_reg___bit 6
68 #define reg_iop_trigger_grp_rw_cfg___dis_only_by_reg___lsb 7
69 #define reg_iop_trigger_grp_rw_cfg___dis_only_by_reg___width 1
70 #define reg_iop_trigger_grp_rw_cfg___dis_only_by_reg___bit 7
71 #define reg_iop_trigger_grp_rw_cfg_offset 0
74 #define reg_iop_trigger_grp_rw_cmd___dis___lsb 0
75 #define reg_iop_trigger_grp_rw_cmd___dis___width 4
76 #define reg_iop_trigger_grp_rw_cmd___en___lsb 4
77 #define reg_iop_trigger_grp_rw_cmd___en___width 4
78 #define reg_iop_trigger_grp_rw_cmd_offset 16
81 #define reg_iop_trigger_grp_rw_intr_mask___trig0___lsb 0
82 #define reg_iop_trigger_grp_rw_intr_mask___trig0___width 1
83 #define reg_iop_trigger_grp_rw_intr_mask___trig0___bit 0
84 #define reg_iop_trigger_grp_rw_intr_mask___trig1___lsb 1
85 #define reg_iop_trigger_grp_rw_intr_mask___trig1___width 1
86 #define reg_iop_trigger_grp_rw_intr_mask___trig1___bit 1
87 #define reg_iop_trigger_grp_rw_intr_mask___trig2___lsb 2
88 #define reg_iop_trigger_grp_rw_intr_mask___trig2___width 1
89 #define reg_iop_trigger_grp_rw_intr_mask___trig2___bit 2
90 #define reg_iop_trigger_grp_rw_intr_mask___trig3___lsb 3
91 #define reg_iop_trigger_grp_rw_intr_mask___trig3___width 1
92 #define reg_iop_trigger_grp_rw_intr_mask___trig3___bit 3
93 #define reg_iop_trigger_grp_rw_intr_mask_offset 20
96 #define reg_iop_trigger_grp_rw_ack_intr___trig0___lsb 0
97 #define reg_iop_trigger_grp_rw_ack_intr___trig0___width 1
98 #define reg_iop_trigger_grp_rw_ack_intr___trig0___bit 0
99 #define reg_iop_trigger_grp_rw_ack_intr___trig1___lsb 1
100 #define reg_iop_trigger_grp_rw_ack_intr___trig1___width 1
101 #define reg_iop_trigger_grp_rw_ack_intr___trig1___bit 1
102 #define reg_iop_trigger_grp_rw_ack_intr___trig2___lsb 2
103 #define reg_iop_trigger_grp_rw_ack_intr___trig2___width 1
104 #define reg_iop_trigger_grp_rw_ack_intr___trig2___bit 2
105 #define reg_iop_trigger_grp_rw_ack_intr___trig3___lsb 3
106 #define reg_iop_trigger_grp_rw_ack_intr___trig3___width 1
107 #define reg_iop_trigger_grp_rw_ack_intr___trig3___bit 3
108 #define reg_iop_trigger_grp_rw_ack_intr_offset 24
111 #define reg_iop_trigger_grp_r_intr___trig0___lsb 0
112 #define reg_iop_trigger_grp_r_intr___trig0___width 1
113 #define reg_iop_trigger_grp_r_intr___trig0___bit 0
114 #define reg_iop_trigger_grp_r_intr___trig1___lsb 1
115 #define reg_iop_trigger_grp_r_intr___trig1___width 1
116 #define reg_iop_trigger_grp_r_intr___trig1___bit 1
117 #define reg_iop_trigger_grp_r_intr___trig2___lsb 2
118 #define reg_iop_trigger_grp_r_intr___trig2___width 1
119 #define reg_iop_trigger_grp_r_intr___trig2___bit 2
120 #define reg_iop_trigger_grp_r_intr___trig3___lsb 3
121 #define reg_iop_trigger_grp_r_intr___trig3___width 1
122 #define reg_iop_trigger_grp_r_intr___trig3___bit 3
123 #define reg_iop_trigger_grp_r_intr_offset 28
126 #define reg_iop_trigger_grp_r_masked_intr___trig0___lsb 0
127 #define reg_iop_trigger_grp_r_masked_intr___trig0___width 1
128 #define reg_iop_trigger_grp_r_masked_intr___trig0___bit 0
129 #define reg_iop_trigger_grp_r_masked_intr___trig1___lsb 1
130 #define reg_iop_trigger_grp_r_masked_intr___trig1___width 1
131 #define reg_iop_trigger_grp_r_masked_intr___trig1___bit 1
132 #define reg_iop_trigger_grp_r_masked_intr___trig2___lsb 2
133 #define reg_iop_trigger_grp_r_masked_intr___trig2___width 1
134 #define reg_iop_trigger_grp_r_masked_intr___trig2___bit 2
135 #define reg_iop_trigger_grp_r_masked_intr___trig3___lsb 3
136 #define reg_iop_trigger_grp_r_masked_intr___trig3___width 1
137 #define reg_iop_trigger_grp_r_masked_intr___trig3___bit 3
138 #define reg_iop_trigger_grp_r_masked_intr_offset 32
142 #define regk_iop_trigger_grp_fall 0x00000002
143 #define regk_iop_trigger_grp_fall_lo 0x00000006
144 #define regk_iop_trigger_grp_no 0x00000000
145 #define regk_iop_trigger_grp_off 0x00000000
146 #define regk_iop_trigger_grp_pulse 0x00000000
147 #define regk_iop_trigger_grp_rise 0x00000001
148 #define regk_iop_trigger_grp_rise_fall 0x00000003
149 #define regk_iop_trigger_grp_rise_fall_hi 0x00000007
150 #define regk_iop_trigger_grp_rise_fall_lo 0x00000004
151 #define regk_iop_trigger_grp_rise_hi 0x00000005
152 #define regk_iop_trigger_grp_rw_cfg_default 0x000000c0
153 #define regk_iop_trigger_grp_rw_cfg_size 0x00000004
154 #define regk_iop_trigger_grp_rw_intr_mask_default 0x00000000
155 #define regk_iop_trigger_grp_toggle 0x00000003
156 #define regk_iop_trigger_grp_yes 0x00000001