Go to the documentation of this file. 1 #ifndef __iop_fifo_in_extra_defs_asm_h
2 #define __iop_fifo_in_extra_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)
57 #define reg_iop_fifo_in_extra_rw_wr_data_offset 0
60 #define reg_iop_fifo_in_extra_r_stat___avail_bytes___lsb 0
61 #define reg_iop_fifo_in_extra_r_stat___avail_bytes___width 4
62 #define reg_iop_fifo_in_extra_r_stat___last___lsb 4
63 #define reg_iop_fifo_in_extra_r_stat___last___width 8
64 #define reg_iop_fifo_in_extra_r_stat___dif_in_en___lsb 12
65 #define reg_iop_fifo_in_extra_r_stat___dif_in_en___width 1
66 #define reg_iop_fifo_in_extra_r_stat___dif_in_en___bit 12
67 #define reg_iop_fifo_in_extra_r_stat___dif_out_en___lsb 13
68 #define reg_iop_fifo_in_extra_r_stat___dif_out_en___width 1
69 #define reg_iop_fifo_in_extra_r_stat___dif_out_en___bit 13
70 #define reg_iop_fifo_in_extra_r_stat_offset 4
73 #define reg_iop_fifo_in_extra_rw_strb_dif_in___last___lsb 0
74 #define reg_iop_fifo_in_extra_rw_strb_dif_in___last___width 2
75 #define reg_iop_fifo_in_extra_rw_strb_dif_in_offset 8
78 #define reg_iop_fifo_in_extra_rw_intr_mask___urun___lsb 0
79 #define reg_iop_fifo_in_extra_rw_intr_mask___urun___width 1
80 #define reg_iop_fifo_in_extra_rw_intr_mask___urun___bit 0
81 #define reg_iop_fifo_in_extra_rw_intr_mask___last_data___lsb 1
82 #define reg_iop_fifo_in_extra_rw_intr_mask___last_data___width 1
83 #define reg_iop_fifo_in_extra_rw_intr_mask___last_data___bit 1
84 #define reg_iop_fifo_in_extra_rw_intr_mask___dav___lsb 2
85 #define reg_iop_fifo_in_extra_rw_intr_mask___dav___width 1
86 #define reg_iop_fifo_in_extra_rw_intr_mask___dav___bit 2
87 #define reg_iop_fifo_in_extra_rw_intr_mask___avail___lsb 3
88 #define reg_iop_fifo_in_extra_rw_intr_mask___avail___width 1
89 #define reg_iop_fifo_in_extra_rw_intr_mask___avail___bit 3
90 #define reg_iop_fifo_in_extra_rw_intr_mask___orun___lsb 4
91 #define reg_iop_fifo_in_extra_rw_intr_mask___orun___width 1
92 #define reg_iop_fifo_in_extra_rw_intr_mask___orun___bit 4
93 #define reg_iop_fifo_in_extra_rw_intr_mask_offset 12
96 #define reg_iop_fifo_in_extra_rw_ack_intr___urun___lsb 0
97 #define reg_iop_fifo_in_extra_rw_ack_intr___urun___width 1
98 #define reg_iop_fifo_in_extra_rw_ack_intr___urun___bit 0
99 #define reg_iop_fifo_in_extra_rw_ack_intr___last_data___lsb 1
100 #define reg_iop_fifo_in_extra_rw_ack_intr___last_data___width 1
101 #define reg_iop_fifo_in_extra_rw_ack_intr___last_data___bit 1
102 #define reg_iop_fifo_in_extra_rw_ack_intr___dav___lsb 2
103 #define reg_iop_fifo_in_extra_rw_ack_intr___dav___width 1
104 #define reg_iop_fifo_in_extra_rw_ack_intr___dav___bit 2
105 #define reg_iop_fifo_in_extra_rw_ack_intr___avail___lsb 3
106 #define reg_iop_fifo_in_extra_rw_ack_intr___avail___width 1
107 #define reg_iop_fifo_in_extra_rw_ack_intr___avail___bit 3
108 #define reg_iop_fifo_in_extra_rw_ack_intr___orun___lsb 4
109 #define reg_iop_fifo_in_extra_rw_ack_intr___orun___width 1
110 #define reg_iop_fifo_in_extra_rw_ack_intr___orun___bit 4
111 #define reg_iop_fifo_in_extra_rw_ack_intr_offset 16
114 #define reg_iop_fifo_in_extra_r_intr___urun___lsb 0
115 #define reg_iop_fifo_in_extra_r_intr___urun___width 1
116 #define reg_iop_fifo_in_extra_r_intr___urun___bit 0
117 #define reg_iop_fifo_in_extra_r_intr___last_data___lsb 1
118 #define reg_iop_fifo_in_extra_r_intr___last_data___width 1
119 #define reg_iop_fifo_in_extra_r_intr___last_data___bit 1
120 #define reg_iop_fifo_in_extra_r_intr___dav___lsb 2
121 #define reg_iop_fifo_in_extra_r_intr___dav___width 1
122 #define reg_iop_fifo_in_extra_r_intr___dav___bit 2
123 #define reg_iop_fifo_in_extra_r_intr___avail___lsb 3
124 #define reg_iop_fifo_in_extra_r_intr___avail___width 1
125 #define reg_iop_fifo_in_extra_r_intr___avail___bit 3
126 #define reg_iop_fifo_in_extra_r_intr___orun___lsb 4
127 #define reg_iop_fifo_in_extra_r_intr___orun___width 1
128 #define reg_iop_fifo_in_extra_r_intr___orun___bit 4
129 #define reg_iop_fifo_in_extra_r_intr_offset 20
132 #define reg_iop_fifo_in_extra_r_masked_intr___urun___lsb 0
133 #define reg_iop_fifo_in_extra_r_masked_intr___urun___width 1
134 #define reg_iop_fifo_in_extra_r_masked_intr___urun___bit 0
135 #define reg_iop_fifo_in_extra_r_masked_intr___last_data___lsb 1
136 #define reg_iop_fifo_in_extra_r_masked_intr___last_data___width 1
137 #define reg_iop_fifo_in_extra_r_masked_intr___last_data___bit 1
138 #define reg_iop_fifo_in_extra_r_masked_intr___dav___lsb 2
139 #define reg_iop_fifo_in_extra_r_masked_intr___dav___width 1
140 #define reg_iop_fifo_in_extra_r_masked_intr___dav___bit 2
141 #define reg_iop_fifo_in_extra_r_masked_intr___avail___lsb 3
142 #define reg_iop_fifo_in_extra_r_masked_intr___avail___width 1
143 #define reg_iop_fifo_in_extra_r_masked_intr___avail___bit 3
144 #define reg_iop_fifo_in_extra_r_masked_intr___orun___lsb 4
145 #define reg_iop_fifo_in_extra_r_masked_intr___orun___width 1
146 #define reg_iop_fifo_in_extra_r_masked_intr___orun___bit 4
147 #define reg_iop_fifo_in_extra_r_masked_intr_offset 24
151 #define regk_iop_fifo_in_extra_fifo_in 0x00000002
152 #define regk_iop_fifo_in_extra_no 0x00000000
153 #define regk_iop_fifo_in_extra_rw_intr_mask_default 0x00000000
154 #define regk_iop_fifo_in_extra_yes 0x00000001