12 #define DDL_TIMEOUT 100000
13 #define DDL_RESPONSE_TIME 1000
14 #define DDL_MAX_WAIT_CYCLE 0x7fffffffffffffffULL
15 #define DDL_MAX_REPLY 4
16 #define DDL_MAX_HW_ID 64
17 #define DDL_MAX_JTAG_LEN 100
20 #define DDL_MAX_WORD 0x07FFFF
21 #define DDL_MAX_BYTE 0x1FFFFC
22 #define DDL_HEADER_SIZE_BYTE 32
23 #define DDL_HEADER_SIZE_WORD 8
26 #define DDL_MAX_TX_WORD 0xFFFFFF
69 #define RDPRBS 0x40000
85 #define DTSW 0x00000082
86 #define CONTINUATION_BIT 0x00000100
87 #define EOB 0x000000b4
88 #define CTSW 0x00000002
89 #define JSTR 0x000000d2
90 #define JTSW 0x00000088
93 #define STMASK 0xFFFFF0FF
94 #define DIUMASK 0xBFFC7000
95 #define REMMASK 0x00038000
96 #define DIUSTMASK 0x00007000
97 #define SIUSTMASK 0x00007000
98 #define DIUERMASK 0xBFFC0000
111 #define ERROR_BIT 0x80000000
112 #define DIU_LOOP 0x40000000
113 #define LOSS_SYNC 0x20000000
114 #define D_TXOF 0x10000000
115 #define D_RES1 0x08000000
116 #define D_OSINFR 0x04000000
117 #define D_INVRX 0x02000000
118 #define D_CERR 0x01000000
119 #define D_RES2 0x00800000
120 #define D_DOUT 0x00400000
121 #define D_IFDL 0x00200000
122 #define D_LONG 0x00100000
123 #define D_RXOF 0x00080000
124 #define D_FRERR 0x00040000
127 #define DIU_TSTM 0x00007000
128 #define DIU_POFF 0x00006000
129 #define DIU_LOS 0x00005000
130 #define DIU_NOSIG 0x00004000
131 #define DIU_WAIT 0x00003000
132 #define DIU_ONL 0x00002000
133 #define DIU_OFFL 0x00001000
134 #define DIU_POR 0x00000000
137 #define S_LONGE 0x40000000
138 #define S_IFEDS 0x20000000
139 #define S_TXOF 0x10000000
140 #define S_IWDAT 0x08000000
141 #define S_OSINFR 0x04000000
142 #define S_INVRX 0x02000000
143 #define S_CERR 0x01000000
144 #define S_DJLERR 0x00800000
145 #define S_DOUT 0x00400000
146 #define S_IFDL 0x00200000
147 #define S_LONG 0x00100000
148 #define S_RXOF 0x00080000
149 #define S_FRERR 0x00040000
150 #define S_LPERR 0x00020000
151 #define S_LBMOD 0x00010000
152 #define S_OPTRAN 0x00008000
155 #define SIU_RESERV 0x00007000
156 #define SIU_POFF 0x00006000
157 #define SIU_LOS 0x00005000
158 #define SIU_NOSIG 0x00004000
159 #define SIU_WAIT 0x00003000
160 #define SIU_ONL 0x00002000
161 #define SIU_OFFL 0x00001000
162 #define SIU_POR 0x00000000
168 #define oDIU_LOOP 0x40000000
169 #define oLOSS_SIGN 0x20000000
170 #define oD_RTOUT 0x10000000
171 #define oD_LOSY 0x08000000
172 #define oD_RDERR 0x04000000
173 #define oD_INVRX 0x02000000
174 #define oD_CERR 0x01000000
175 #define oD_UNREC 0x00800000
176 #define oD_DOUT 0x00400000
177 #define oD_IFDL 0x00200000
178 #define oD_LONG 0x00100000
179 #define oD_RXOV 0x00080000
180 #define oD_LTOUT 0x00040000
183 #define oSIU_SRST 0x00038000
184 #define oSIU_FAIL 0x00030000
185 #define oSIU_OFFL 0x00028000
186 #define oSIU_LINIT 0x00020000
187 #define oSIU_ACT 0x00018000
188 #define oSIU_XOFF 0x00010000
189 #define oSIU_XON 0x00008000
190 #define oSIU_ELSE 0x00000000
193 #define oDIU_NOSYNC 0x00007000
194 #define oDIU_RSTSIU 0x00006000
195 #define oDIU_FAIL 0x00005000
196 #define oDIU_OFFL 0x00004000
197 #define oDIU_LRES 0x00003000
198 #define oDIU_START 0x00002000
199 #define oDIU_ACCED 0x00001000
200 #define oLINK_ACT 0x00000000
203 #define oS_LONGE 0x40000000
204 #define oS_IFEDS 0x20000000
205 #define oS_TXOF 0x10000000
206 #define oS_IWDAT 0x08000000
207 #define oS_WBLER 0x04000000
208 #define oS_RXOV 0x02000000
209 #define oS_LONGD 0x01000000
210 #define oS_LONGC 0x00800000
211 #define oS_OSIN 0x00400000
212 #define oS_DOUT 0x00200000
213 #define oS_LPERR 0x00100000
214 #define oS_CHERR 0x00080000
215 #define oS_UNREC 0x00040000
216 #define oS_INVRX 0x00020000
217 #define oS_WALER 0x00010000
218 #define oS_ISPCH 0x00008000
219 #define oS_RDERR 0x00004000
220 #define oS_IRXCD 0x00002000
221 #define oS_BUFER 0x00001000