RTEMS 6.1-rc2
Loading...
Searching...
No Matches
spwtdp-regs.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2021 embedded brains GmbH & Co. KG
13 *
14 * Redistribution and use in source and binary forms, with or without
15 * modification, are permitted provided that the following conditions
16 * are met:
17 * 1. Redistributions of source code must retain the above copyright
18 * notice, this list of conditions and the following disclaimer.
19 * 2. Redistributions in binary form must reproduce the above copyright
20 * notice, this list of conditions and the following disclaimer in the
21 * documentation and/or other materials provided with the distribution.
22 *
23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 */
35
36/*
37 * This file is part of the RTEMS quality process and was automatically
38 * generated. If you find something that needs to be fixed or
39 * worded better please post a report or patch to an RTEMS mailing list
40 * or raise a bug report:
41 *
42 * https://www.rtems.org/bugs.html
43 *
44 * For information on updating and regenerating please refer to the How-To
45 * section in the Software Requirements Engineering chapter of the
46 * RTEMS Software Engineering manual. The manual is provided as a part of
47 * a release. For development sources please refer to the online
48 * documentation at:
49 *
50 * https://docs.rtems.org
51 */
52
53/* Generated from spec:/dev/grlib/if/spwtdp-header */
54
55#ifndef _GRLIB_SPWTDP_REGS_H
56#define _GRLIB_SPWTDP_REGS_H
57
58#include <stdint.h>
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
64/* Generated from spec:/dev/grlib/if/spwtdp */
65
84#define SPWTDP_CONF0_JE 0x1000000U
85
86#define SPWTDP_CONF0_ST 0x200000U
87
88#define SPWTDP_CONF0_EP 0x100000U
89
90#define SPWTDP_CONF0_ET 0x80000U
91
92#define SPWTDP_CONF0_SP 0x40000U
93
94#define SPWTDP_CONF0_SE 0x20000U
95
96#define SPWTDP_CONF0_LE 0x10000U
97
98#define SPWTDP_CONF0_AE 0x8000U
99
100#define SPWTDP_CONF0_MAPPING_SHIFT 8
101#define SPWTDP_CONF0_MAPPING_MASK 0x1f00U
102#define SPWTDP_CONF0_MAPPING_GET( _reg ) \
103 ( ( ( _reg ) & SPWTDP_CONF0_MAPPING_MASK ) >> \
104 SPWTDP_CONF0_MAPPING_SHIFT )
105#define SPWTDP_CONF0_MAPPING_SET( _reg, _val ) \
106 ( ( ( _reg ) & ~SPWTDP_CONF0_MAPPING_MASK ) | \
107 ( ( ( _val ) << SPWTDP_CONF0_MAPPING_SHIFT ) & \
108 SPWTDP_CONF0_MAPPING_MASK ) )
109#define SPWTDP_CONF0_MAPPING( _val ) \
110 ( ( ( _val ) << SPWTDP_CONF0_MAPPING_SHIFT ) & \
111 SPWTDP_CONF0_MAPPING_MASK )
112
113#define SPWTDP_CONF0_TD 0x80U
114
115#define SPWTDP_CONF0_MU 0x40U
116
117#define SPWTDP_CONF0_SEL_SHIFT 4
118#define SPWTDP_CONF0_SEL_MASK 0x30U
119#define SPWTDP_CONF0_SEL_GET( _reg ) \
120 ( ( ( _reg ) & SPWTDP_CONF0_SEL_MASK ) >> \
121 SPWTDP_CONF0_SEL_SHIFT )
122#define SPWTDP_CONF0_SEL_SET( _reg, _val ) \
123 ( ( ( _reg ) & ~SPWTDP_CONF0_SEL_MASK ) | \
124 ( ( ( _val ) << SPWTDP_CONF0_SEL_SHIFT ) & \
125 SPWTDP_CONF0_SEL_MASK ) )
126#define SPWTDP_CONF0_SEL( _val ) \
127 ( ( ( _val ) << SPWTDP_CONF0_SEL_SHIFT ) & \
128 SPWTDP_CONF0_SEL_MASK )
129
130#define SPWTDP_CONF0_ME 0x8U
131
132#define SPWTDP_CONF0_RE 0x4U
133
134#define SPWTDP_CONF0_TE 0x2U
135
136#define SPWTDP_CONF0_RS 0x1U
137
148#define SPWTDP_CONF3_STM_SHIFT 16
149#define SPWTDP_CONF3_STM_MASK 0x3f0000U
150#define SPWTDP_CONF3_STM_GET( _reg ) \
151 ( ( ( _reg ) & SPWTDP_CONF3_STM_MASK ) >> \
152 SPWTDP_CONF3_STM_SHIFT )
153#define SPWTDP_CONF3_STM_SET( _reg, _val ) \
154 ( ( ( _reg ) & ~SPWTDP_CONF3_STM_MASK ) | \
155 ( ( ( _val ) << SPWTDP_CONF3_STM_SHIFT ) & \
156 SPWTDP_CONF3_STM_MASK ) )
157#define SPWTDP_CONF3_STM( _val ) \
158 ( ( ( _val ) << SPWTDP_CONF3_STM_SHIFT ) & \
159 SPWTDP_CONF3_STM_MASK )
160
161#define SPWTDP_CONF3_DI64R 0x2000U
162
163#define SPWTDP_CONF3_DI64T 0x1000U
164
165#define SPWTDP_CONF3_DI64 0x800U
166
167#define SPWTDP_CONF3_DI 0x400U
168
169#define SPWTDP_CONF3_INRX_SHIFT 5
170#define SPWTDP_CONF3_INRX_MASK 0x3e0U
171#define SPWTDP_CONF3_INRX_GET( _reg ) \
172 ( ( ( _reg ) & SPWTDP_CONF3_INRX_MASK ) >> \
173 SPWTDP_CONF3_INRX_SHIFT )
174#define SPWTDP_CONF3_INRX_SET( _reg, _val ) \
175 ( ( ( _reg ) & ~SPWTDP_CONF3_INRX_MASK ) | \
176 ( ( ( _val ) << SPWTDP_CONF3_INRX_SHIFT ) & \
177 SPWTDP_CONF3_INRX_MASK ) )
178#define SPWTDP_CONF3_INRX( _val ) \
179 ( ( ( _val ) << SPWTDP_CONF3_INRX_SHIFT ) & \
180 SPWTDP_CONF3_INRX_MASK )
181
182#define SPWTDP_CONF3_INTX_SHIFT 0
183#define SPWTDP_CONF3_INTX_MASK 0x1fU
184#define SPWTDP_CONF3_INTX_GET( _reg ) \
185 ( ( ( _reg ) & SPWTDP_CONF3_INTX_MASK ) >> \
186 SPWTDP_CONF3_INTX_SHIFT )
187#define SPWTDP_CONF3_INTX_SET( _reg, _val ) \
188 ( ( ( _reg ) & ~SPWTDP_CONF3_INTX_MASK ) | \
189 ( ( ( _val ) << SPWTDP_CONF3_INTX_SHIFT ) & \
190 SPWTDP_CONF3_INTX_MASK ) )
191#define SPWTDP_CONF3_INTX( _val ) \
192 ( ( ( _val ) << SPWTDP_CONF3_INTX_SHIFT ) & \
193 SPWTDP_CONF3_INTX_MASK )
194
205#define SPWTDP_CTRL_NC 0x80000000U
206
207#define SPWTDP_CTRL_IS 0x40000000U
208
209#define SPWTDP_CTRL_SPWTC_SHIFT 16
210#define SPWTDP_CTRL_SPWTC_MASK 0xff0000U
211#define SPWTDP_CTRL_SPWTC_GET( _reg ) \
212 ( ( ( _reg ) & SPWTDP_CTRL_SPWTC_MASK ) >> \
213 SPWTDP_CTRL_SPWTC_SHIFT )
214#define SPWTDP_CTRL_SPWTC_SET( _reg, _val ) \
215 ( ( ( _reg ) & ~SPWTDP_CTRL_SPWTC_MASK ) | \
216 ( ( ( _val ) << SPWTDP_CTRL_SPWTC_SHIFT ) & \
217 SPWTDP_CTRL_SPWTC_MASK ) )
218#define SPWTDP_CTRL_SPWTC( _val ) \
219 ( ( ( _val ) << SPWTDP_CTRL_SPWTC_SHIFT ) & \
220 SPWTDP_CTRL_SPWTC_MASK )
221
222#define SPWTDP_CTRL_CPF_SHIFT 0
223#define SPWTDP_CTRL_CPF_MASK 0xffffU
224#define SPWTDP_CTRL_CPF_GET( _reg ) \
225 ( ( ( _reg ) & SPWTDP_CTRL_CPF_MASK ) >> \
226 SPWTDP_CTRL_CPF_SHIFT )
227#define SPWTDP_CTRL_CPF_SET( _reg, _val ) \
228 ( ( ( _reg ) & ~SPWTDP_CTRL_CPF_MASK ) | \
229 ( ( ( _val ) << SPWTDP_CTRL_CPF_SHIFT ) & \
230 SPWTDP_CTRL_CPF_MASK ) )
231#define SPWTDP_CTRL_CPF( _val ) \
232 ( ( ( _val ) << SPWTDP_CTRL_CPF_SHIFT ) & \
233 SPWTDP_CTRL_CPF_MASK )
234
245#define SPWTDP_CET0_CET0_SHIFT 0
246#define SPWTDP_CET0_CET0_MASK 0xffffffffU
247#define SPWTDP_CET0_CET0_GET( _reg ) \
248 ( ( ( _reg ) & SPWTDP_CET0_CET0_MASK ) >> \
249 SPWTDP_CET0_CET0_SHIFT )
250#define SPWTDP_CET0_CET0_SET( _reg, _val ) \
251 ( ( ( _reg ) & ~SPWTDP_CET0_CET0_MASK ) | \
252 ( ( ( _val ) << SPWTDP_CET0_CET0_SHIFT ) & \
253 SPWTDP_CET0_CET0_MASK ) )
254#define SPWTDP_CET0_CET0( _val ) \
255 ( ( ( _val ) << SPWTDP_CET0_CET0_SHIFT ) & \
256 SPWTDP_CET0_CET0_MASK )
257
268#define SPWTDP_CET1_CET1_SHIFT 0
269#define SPWTDP_CET1_CET1_MASK 0xffffffffU
270#define SPWTDP_CET1_CET1_GET( _reg ) \
271 ( ( ( _reg ) & SPWTDP_CET1_CET1_MASK ) >> \
272 SPWTDP_CET1_CET1_SHIFT )
273#define SPWTDP_CET1_CET1_SET( _reg, _val ) \
274 ( ( ( _reg ) & ~SPWTDP_CET1_CET1_MASK ) | \
275 ( ( ( _val ) << SPWTDP_CET1_CET1_SHIFT ) & \
276 SPWTDP_CET1_CET1_MASK ) )
277#define SPWTDP_CET1_CET1( _val ) \
278 ( ( ( _val ) << SPWTDP_CET1_CET1_SHIFT ) & \
279 SPWTDP_CET1_CET1_MASK )
280
291#define SPWTDP_CET2_CET2_SHIFT 0
292#define SPWTDP_CET2_CET2_MASK 0xffffffffU
293#define SPWTDP_CET2_CET2_GET( _reg ) \
294 ( ( ( _reg ) & SPWTDP_CET2_CET2_MASK ) >> \
295 SPWTDP_CET2_CET2_SHIFT )
296#define SPWTDP_CET2_CET2_SET( _reg, _val ) \
297 ( ( ( _reg ) & ~SPWTDP_CET2_CET2_MASK ) | \
298 ( ( ( _val ) << SPWTDP_CET2_CET2_SHIFT ) & \
299 SPWTDP_CET2_CET2_MASK ) )
300#define SPWTDP_CET2_CET2( _val ) \
301 ( ( ( _val ) << SPWTDP_CET2_CET2_SHIFT ) & \
302 SPWTDP_CET2_CET2_MASK )
303
314#define SPWTDP_CET3_CET3_SHIFT 0
315#define SPWTDP_CET3_CET3_MASK 0xffffffffU
316#define SPWTDP_CET3_CET3_GET( _reg ) \
317 ( ( ( _reg ) & SPWTDP_CET3_CET3_MASK ) >> \
318 SPWTDP_CET3_CET3_SHIFT )
319#define SPWTDP_CET3_CET3_SET( _reg, _val ) \
320 ( ( ( _reg ) & ~SPWTDP_CET3_CET3_MASK ) | \
321 ( ( ( _val ) << SPWTDP_CET3_CET3_SHIFT ) & \
322 SPWTDP_CET3_CET3_MASK ) )
323#define SPWTDP_CET3_CET3( _val ) \
324 ( ( ( _val ) << SPWTDP_CET3_CET3_SHIFT ) & \
325 SPWTDP_CET3_CET3_MASK )
326
337#define SPWTDP_CET4_CET4_SHIFT 24
338#define SPWTDP_CET4_CET4_MASK 0xff000000U
339#define SPWTDP_CET4_CET4_GET( _reg ) \
340 ( ( ( _reg ) & SPWTDP_CET4_CET4_MASK ) >> \
341 SPWTDP_CET4_CET4_SHIFT )
342#define SPWTDP_CET4_CET4_SET( _reg, _val ) \
343 ( ( ( _reg ) & ~SPWTDP_CET4_CET4_MASK ) | \
344 ( ( ( _val ) << SPWTDP_CET4_CET4_SHIFT ) & \
345 SPWTDP_CET4_CET4_MASK ) )
346#define SPWTDP_CET4_CET4( _val ) \
347 ( ( ( _val ) << SPWTDP_CET4_CET4_SHIFT ) & \
348 SPWTDP_CET4_CET4_MASK )
349
360#define SPWTDP_DPF_DPF_SHIFT 0
361#define SPWTDP_DPF_DPF_MASK 0xffffU
362#define SPWTDP_DPF_DPF_GET( _reg ) \
363 ( ( ( _reg ) & SPWTDP_DPF_DPF_MASK ) >> \
364 SPWTDP_DPF_DPF_SHIFT )
365#define SPWTDP_DPF_DPF_SET( _reg, _val ) \
366 ( ( ( _reg ) & ~SPWTDP_DPF_DPF_MASK ) | \
367 ( ( ( _val ) << SPWTDP_DPF_DPF_SHIFT ) & \
368 SPWTDP_DPF_DPF_MASK ) )
369#define SPWTDP_DPF_DPF( _val ) \
370 ( ( ( _val ) << SPWTDP_DPF_DPF_SHIFT ) & \
371 SPWTDP_DPF_DPF_MASK )
372
383#define SPWTDP_DET0_DET0_SHIFT 0
384#define SPWTDP_DET0_DET0_MASK 0xffffffffU
385#define SPWTDP_DET0_DET0_GET( _reg ) \
386 ( ( ( _reg ) & SPWTDP_DET0_DET0_MASK ) >> \
387 SPWTDP_DET0_DET0_SHIFT )
388#define SPWTDP_DET0_DET0_SET( _reg, _val ) \
389 ( ( ( _reg ) & ~SPWTDP_DET0_DET0_MASK ) | \
390 ( ( ( _val ) << SPWTDP_DET0_DET0_SHIFT ) & \
391 SPWTDP_DET0_DET0_MASK ) )
392#define SPWTDP_DET0_DET0( _val ) \
393 ( ( ( _val ) << SPWTDP_DET0_DET0_SHIFT ) & \
394 SPWTDP_DET0_DET0_MASK )
395
406#define SPWTDP_DET1_DET1_SHIFT 0
407#define SPWTDP_DET1_DET1_MASK 0xffffffffU
408#define SPWTDP_DET1_DET1_GET( _reg ) \
409 ( ( ( _reg ) & SPWTDP_DET1_DET1_MASK ) >> \
410 SPWTDP_DET1_DET1_SHIFT )
411#define SPWTDP_DET1_DET1_SET( _reg, _val ) \
412 ( ( ( _reg ) & ~SPWTDP_DET1_DET1_MASK ) | \
413 ( ( ( _val ) << SPWTDP_DET1_DET1_SHIFT ) & \
414 SPWTDP_DET1_DET1_MASK ) )
415#define SPWTDP_DET1_DET1( _val ) \
416 ( ( ( _val ) << SPWTDP_DET1_DET1_SHIFT ) & \
417 SPWTDP_DET1_DET1_MASK )
418
429#define SPWTDP_DET2_DET2_SHIFT 0
430#define SPWTDP_DET2_DET2_MASK 0xffffffffU
431#define SPWTDP_DET2_DET2_GET( _reg ) \
432 ( ( ( _reg ) & SPWTDP_DET2_DET2_MASK ) >> \
433 SPWTDP_DET2_DET2_SHIFT )
434#define SPWTDP_DET2_DET2_SET( _reg, _val ) \
435 ( ( ( _reg ) & ~SPWTDP_DET2_DET2_MASK ) | \
436 ( ( ( _val ) << SPWTDP_DET2_DET2_SHIFT ) & \
437 SPWTDP_DET2_DET2_MASK ) )
438#define SPWTDP_DET2_DET2( _val ) \
439 ( ( ( _val ) << SPWTDP_DET2_DET2_SHIFT ) & \
440 SPWTDP_DET2_DET2_MASK )
441
452#define SPWTDP_DET3_DET3_SHIFT 0
453#define SPWTDP_DET3_DET3_MASK 0xffffffffU
454#define SPWTDP_DET3_DET3_GET( _reg ) \
455 ( ( ( _reg ) & SPWTDP_DET3_DET3_MASK ) >> \
456 SPWTDP_DET3_DET3_SHIFT )
457#define SPWTDP_DET3_DET3_SET( _reg, _val ) \
458 ( ( ( _reg ) & ~SPWTDP_DET3_DET3_MASK ) | \
459 ( ( ( _val ) << SPWTDP_DET3_DET3_SHIFT ) & \
460 SPWTDP_DET3_DET3_MASK ) )
461#define SPWTDP_DET3_DET3( _val ) \
462 ( ( ( _val ) << SPWTDP_DET3_DET3_SHIFT ) & \
463 SPWTDP_DET3_DET3_MASK )
464
475#define SPWTDP_DET4_DET4_SHIFT 24
476#define SPWTDP_DET4_DET4_MASK 0xff000000U
477#define SPWTDP_DET4_DET4_GET( _reg ) \
478 ( ( ( _reg ) & SPWTDP_DET4_DET4_MASK ) >> \
479 SPWTDP_DET4_DET4_SHIFT )
480#define SPWTDP_DET4_DET4_SET( _reg, _val ) \
481 ( ( ( _reg ) & ~SPWTDP_DET4_DET4_MASK ) | \
482 ( ( ( _val ) << SPWTDP_DET4_DET4_SHIFT ) & \
483 SPWTDP_DET4_DET4_MASK ) )
484#define SPWTDP_DET4_DET4( _val ) \
485 ( ( ( _val ) << SPWTDP_DET4_DET4_SHIFT ) & \
486 SPWTDP_DET4_DET4_MASK )
487
498#define SPWTDP_TRPFRX_TRPF_SHIFT 0
499#define SPWTDP_TRPFRX_TRPF_MASK 0xffffU
500#define SPWTDP_TRPFRX_TRPF_GET( _reg ) \
501 ( ( ( _reg ) & SPWTDP_TRPFRX_TRPF_MASK ) >> \
502 SPWTDP_TRPFRX_TRPF_SHIFT )
503#define SPWTDP_TRPFRX_TRPF_SET( _reg, _val ) \
504 ( ( ( _reg ) & ~SPWTDP_TRPFRX_TRPF_MASK ) | \
505 ( ( ( _val ) << SPWTDP_TRPFRX_TRPF_SHIFT ) & \
506 SPWTDP_TRPFRX_TRPF_MASK ) )
507#define SPWTDP_TRPFRX_TRPF( _val ) \
508 ( ( ( _val ) << SPWTDP_TRPFRX_TRPF_SHIFT ) & \
509 SPWTDP_TRPFRX_TRPF_MASK )
510
521#define SPWTDP_TR0_TR0_SHIFT 0
522#define SPWTDP_TR0_TR0_MASK 0xffffffffU
523#define SPWTDP_TR0_TR0_GET( _reg ) \
524 ( ( ( _reg ) & SPWTDP_TR0_TR0_MASK ) >> \
525 SPWTDP_TR0_TR0_SHIFT )
526#define SPWTDP_TR0_TR0_SET( _reg, _val ) \
527 ( ( ( _reg ) & ~SPWTDP_TR0_TR0_MASK ) | \
528 ( ( ( _val ) << SPWTDP_TR0_TR0_SHIFT ) & \
529 SPWTDP_TR0_TR0_MASK ) )
530#define SPWTDP_TR0_TR0( _val ) \
531 ( ( ( _val ) << SPWTDP_TR0_TR0_SHIFT ) & \
532 SPWTDP_TR0_TR0_MASK )
533
544#define SPWTDP_TR1_TR1_SHIFT 0
545#define SPWTDP_TR1_TR1_MASK 0xffffffffU
546#define SPWTDP_TR1_TR1_GET( _reg ) \
547 ( ( ( _reg ) & SPWTDP_TR1_TR1_MASK ) >> \
548 SPWTDP_TR1_TR1_SHIFT )
549#define SPWTDP_TR1_TR1_SET( _reg, _val ) \
550 ( ( ( _reg ) & ~SPWTDP_TR1_TR1_MASK ) | \
551 ( ( ( _val ) << SPWTDP_TR1_TR1_SHIFT ) & \
552 SPWTDP_TR1_TR1_MASK ) )
553#define SPWTDP_TR1_TR1( _val ) \
554 ( ( ( _val ) << SPWTDP_TR1_TR1_SHIFT ) & \
555 SPWTDP_TR1_TR1_MASK )
556
567#define SPWTDP_TR2_TR2_SHIFT 0
568#define SPWTDP_TR2_TR2_MASK 0xffffffffU
569#define SPWTDP_TR2_TR2_GET( _reg ) \
570 ( ( ( _reg ) & SPWTDP_TR2_TR2_MASK ) >> \
571 SPWTDP_TR2_TR2_SHIFT )
572#define SPWTDP_TR2_TR2_SET( _reg, _val ) \
573 ( ( ( _reg ) & ~SPWTDP_TR2_TR2_MASK ) | \
574 ( ( ( _val ) << SPWTDP_TR2_TR2_SHIFT ) & \
575 SPWTDP_TR2_TR2_MASK ) )
576#define SPWTDP_TR2_TR2( _val ) \
577 ( ( ( _val ) << SPWTDP_TR2_TR2_SHIFT ) & \
578 SPWTDP_TR2_TR2_MASK )
579
590#define SPWTDP_TR3_TR3_SHIFT 0
591#define SPWTDP_TR3_TR3_MASK 0xffffffffU
592#define SPWTDP_TR3_TR3_GET( _reg ) \
593 ( ( ( _reg ) & SPWTDP_TR3_TR3_MASK ) >> \
594 SPWTDP_TR3_TR3_SHIFT )
595#define SPWTDP_TR3_TR3_SET( _reg, _val ) \
596 ( ( ( _reg ) & ~SPWTDP_TR3_TR3_MASK ) | \
597 ( ( ( _val ) << SPWTDP_TR3_TR3_SHIFT ) & \
598 SPWTDP_TR3_TR3_MASK ) )
599#define SPWTDP_TR3_TR3( _val ) \
600 ( ( ( _val ) << SPWTDP_TR3_TR3_SHIFT ) & \
601 SPWTDP_TR3_TR3_MASK )
602
613#define SPWTDP_TR4_TR4_SHIFT 24
614#define SPWTDP_TR4_TR4_MASK 0xff000000U
615#define SPWTDP_TR4_TR4_GET( _reg ) \
616 ( ( ( _reg ) & SPWTDP_TR4_TR4_MASK ) >> \
617 SPWTDP_TR4_TR4_SHIFT )
618#define SPWTDP_TR4_TR4_SET( _reg, _val ) \
619 ( ( ( _reg ) & ~SPWTDP_TR4_TR4_MASK ) | \
620 ( ( ( _val ) << SPWTDP_TR4_TR4_SHIFT ) & \
621 SPWTDP_TR4_TR4_MASK ) )
622#define SPWTDP_TR4_TR4( _val ) \
623 ( ( ( _val ) << SPWTDP_TR4_TR4_SHIFT ) & \
624 SPWTDP_TR4_TR4_MASK )
625
637#define SPWTDP_TTPFTX_TSTC_SHIFT 24
638#define SPWTDP_TTPFTX_TSTC_MASK 0xff000000U
639#define SPWTDP_TTPFTX_TSTC_GET( _reg ) \
640 ( ( ( _reg ) & SPWTDP_TTPFTX_TSTC_MASK ) >> \
641 SPWTDP_TTPFTX_TSTC_SHIFT )
642#define SPWTDP_TTPFTX_TSTC_SET( _reg, _val ) \
643 ( ( ( _reg ) & ~SPWTDP_TTPFTX_TSTC_MASK ) | \
644 ( ( ( _val ) << SPWTDP_TTPFTX_TSTC_SHIFT ) & \
645 SPWTDP_TTPFTX_TSTC_MASK ) )
646#define SPWTDP_TTPFTX_TSTC( _val ) \
647 ( ( ( _val ) << SPWTDP_TTPFTX_TSTC_SHIFT ) & \
648 SPWTDP_TTPFTX_TSTC_MASK )
649
650#define SPWTDP_TTPFTX_TTPF_SHIFT 0
651#define SPWTDP_TTPFTX_TTPF_MASK 0xffffU
652#define SPWTDP_TTPFTX_TTPF_GET( _reg ) \
653 ( ( ( _reg ) & SPWTDP_TTPFTX_TTPF_MASK ) >> \
654 SPWTDP_TTPFTX_TTPF_SHIFT )
655#define SPWTDP_TTPFTX_TTPF_SET( _reg, _val ) \
656 ( ( ( _reg ) & ~SPWTDP_TTPFTX_TTPF_MASK ) | \
657 ( ( ( _val ) << SPWTDP_TTPFTX_TTPF_SHIFT ) & \
658 SPWTDP_TTPFTX_TTPF_MASK ) )
659#define SPWTDP_TTPFTX_TTPF( _val ) \
660 ( ( ( _val ) << SPWTDP_TTPFTX_TTPF_SHIFT ) & \
661 SPWTDP_TTPFTX_TTPF_MASK )
662
673#define SPWTDP_TT0_TT0_SHIFT 0
674#define SPWTDP_TT0_TT0_MASK 0xffffffffU
675#define SPWTDP_TT0_TT0_GET( _reg ) \
676 ( ( ( _reg ) & SPWTDP_TT0_TT0_MASK ) >> \
677 SPWTDP_TT0_TT0_SHIFT )
678#define SPWTDP_TT0_TT0_SET( _reg, _val ) \
679 ( ( ( _reg ) & ~SPWTDP_TT0_TT0_MASK ) | \
680 ( ( ( _val ) << SPWTDP_TT0_TT0_SHIFT ) & \
681 SPWTDP_TT0_TT0_MASK ) )
682#define SPWTDP_TT0_TT0( _val ) \
683 ( ( ( _val ) << SPWTDP_TT0_TT0_SHIFT ) & \
684 SPWTDP_TT0_TT0_MASK )
685
696#define SPWTDP_TT1_TT1_SHIFT 0
697#define SPWTDP_TT1_TT1_MASK 0xffffffffU
698#define SPWTDP_TT1_TT1_GET( _reg ) \
699 ( ( ( _reg ) & SPWTDP_TT1_TT1_MASK ) >> \
700 SPWTDP_TT1_TT1_SHIFT )
701#define SPWTDP_TT1_TT1_SET( _reg, _val ) \
702 ( ( ( _reg ) & ~SPWTDP_TT1_TT1_MASK ) | \
703 ( ( ( _val ) << SPWTDP_TT1_TT1_SHIFT ) & \
704 SPWTDP_TT1_TT1_MASK ) )
705#define SPWTDP_TT1_TT1( _val ) \
706 ( ( ( _val ) << SPWTDP_TT1_TT1_SHIFT ) & \
707 SPWTDP_TT1_TT1_MASK )
708
719#define SPWTDP_TT2_TT2_SHIFT 0
720#define SPWTDP_TT2_TT2_MASK 0xffffffffU
721#define SPWTDP_TT2_TT2_GET( _reg ) \
722 ( ( ( _reg ) & SPWTDP_TT2_TT2_MASK ) >> \
723 SPWTDP_TT2_TT2_SHIFT )
724#define SPWTDP_TT2_TT2_SET( _reg, _val ) \
725 ( ( ( _reg ) & ~SPWTDP_TT2_TT2_MASK ) | \
726 ( ( ( _val ) << SPWTDP_TT2_TT2_SHIFT ) & \
727 SPWTDP_TT2_TT2_MASK ) )
728#define SPWTDP_TT2_TT2( _val ) \
729 ( ( ( _val ) << SPWTDP_TT2_TT2_SHIFT ) & \
730 SPWTDP_TT2_TT2_MASK )
731
742#define SPWTDP_TT3_TT3_SHIFT 0
743#define SPWTDP_TT3_TT3_MASK 0xffffffffU
744#define SPWTDP_TT3_TT3_GET( _reg ) \
745 ( ( ( _reg ) & SPWTDP_TT3_TT3_MASK ) >> \
746 SPWTDP_TT3_TT3_SHIFT )
747#define SPWTDP_TT3_TT3_SET( _reg, _val ) \
748 ( ( ( _reg ) & ~SPWTDP_TT3_TT3_MASK ) | \
749 ( ( ( _val ) << SPWTDP_TT3_TT3_SHIFT ) & \
750 SPWTDP_TT3_TT3_MASK ) )
751#define SPWTDP_TT3_TT3( _val ) \
752 ( ( ( _val ) << SPWTDP_TT3_TT3_SHIFT ) & \
753 SPWTDP_TT3_TT3_MASK )
754
765#define SPWTDP_TT4_TT4_SHIFT 24
766#define SPWTDP_TT4_TT4_MASK 0xff000000U
767#define SPWTDP_TT4_TT4_GET( _reg ) \
768 ( ( ( _reg ) & SPWTDP_TT4_TT4_MASK ) >> \
769 SPWTDP_TT4_TT4_SHIFT )
770#define SPWTDP_TT4_TT4_SET( _reg, _val ) \
771 ( ( ( _reg ) & ~SPWTDP_TT4_TT4_MASK ) | \
772 ( ( ( _val ) << SPWTDP_TT4_TT4_SHIFT ) & \
773 SPWTDP_TT4_TT4_MASK ) )
774#define SPWTDP_TT4_TT4( _val ) \
775 ( ( ( _val ) << SPWTDP_TT4_TT4_SHIFT ) & \
776 SPWTDP_TT4_TT4_MASK )
777
788#define SPWTDP_LPF_LPF_SHIFT 0
789#define SPWTDP_LPF_LPF_MASK 0xffffU
790#define SPWTDP_LPF_LPF_GET( _reg ) \
791 ( ( ( _reg ) & SPWTDP_LPF_LPF_MASK ) >> \
792 SPWTDP_LPF_LPF_SHIFT )
793#define SPWTDP_LPF_LPF_SET( _reg, _val ) \
794 ( ( ( _reg ) & ~SPWTDP_LPF_LPF_MASK ) | \
795 ( ( ( _val ) << SPWTDP_LPF_LPF_SHIFT ) & \
796 SPWTDP_LPF_LPF_MASK ) )
797#define SPWTDP_LPF_LPF( _val ) \
798 ( ( ( _val ) << SPWTDP_LPF_LPF_SHIFT ) & \
799 SPWTDP_LPF_LPF_MASK )
800
811#define SPWTDP_IE_NCTCE 0x80000U
812
813#define SPWTDP_IE_SETE 0x400U
814
815#define SPWTDP_IE_EDIE3 0x200U
816
817#define SPWTDP_IE_EDIE2 0x100U
818
819#define SPWTDP_IE_EDIE1 0x80U
820
821#define SPWTDP_IE_EDIE0 0x40U
822
823#define SPWTDP_IE_DITE 0x20U
824
825#define SPWTDP_IE_DIRE 0x10U
826
827#define SPWTDP_IE_TTE 0x8U
828
829#define SPWTDP_IE_TME 0x4U
830
831#define SPWTDP_IE_TRE 0x2U
832
833#define SPWTDP_IE_SE 0x1U
834
845#define SPWTDP_DC_DC_SHIFT 0
846#define SPWTDP_DC_DC_MASK 0x7fffU
847#define SPWTDP_DC_DC_GET( _reg ) \
848 ( ( ( _reg ) & SPWTDP_DC_DC_MASK ) >> \
849 SPWTDP_DC_DC_SHIFT )
850#define SPWTDP_DC_DC_SET( _reg, _val ) \
851 ( ( ( _reg ) & ~SPWTDP_DC_DC_MASK ) | \
852 ( ( ( _val ) << SPWTDP_DC_DC_SHIFT ) & \
853 SPWTDP_DC_DC_MASK ) )
854#define SPWTDP_DC_DC( _val ) \
855 ( ( ( _val ) << SPWTDP_DC_DC_SHIFT ) & \
856 SPWTDP_DC_DC_MASK )
857
868#define SPWTDP_DS_EN 0x80000000U
869
870#define SPWTDP_DS_CD_SHIFT 0
871#define SPWTDP_DS_CD_MASK 0xffffffU
872#define SPWTDP_DS_CD_GET( _reg ) \
873 ( ( ( _reg ) & SPWTDP_DS_CD_MASK ) >> \
874 SPWTDP_DS_CD_SHIFT )
875#define SPWTDP_DS_CD_SET( _reg, _val ) \
876 ( ( ( _reg ) & ~SPWTDP_DS_CD_MASK ) | \
877 ( ( ( _val ) << SPWTDP_DS_CD_SHIFT ) & \
878 SPWTDP_DS_CD_MASK ) )
879#define SPWTDP_DS_CD( _val ) \
880 ( ( ( _val ) << SPWTDP_DS_CD_SHIFT ) & \
881 SPWTDP_DS_CD_MASK )
882
893#define SPWTDP_EDM0_EDM0_SHIFT 0
894#define SPWTDP_EDM0_EDM0_MASK 0xffffffffU
895#define SPWTDP_EDM0_EDM0_GET( _reg ) \
896 ( ( ( _reg ) & SPWTDP_EDM0_EDM0_MASK ) >> \
897 SPWTDP_EDM0_EDM0_SHIFT )
898#define SPWTDP_EDM0_EDM0_SET( _reg, _val ) \
899 ( ( ( _reg ) & ~SPWTDP_EDM0_EDM0_MASK ) | \
900 ( ( ( _val ) << SPWTDP_EDM0_EDM0_SHIFT ) & \
901 SPWTDP_EDM0_EDM0_MASK ) )
902#define SPWTDP_EDM0_EDM0( _val ) \
903 ( ( ( _val ) << SPWTDP_EDM0_EDM0_SHIFT ) & \
904 SPWTDP_EDM0_EDM0_MASK )
905
917#define SPWTDP_EDPF0_EDPF0_SHIFT 0
918#define SPWTDP_EDPF0_EDPF0_MASK 0xffffU
919#define SPWTDP_EDPF0_EDPF0_GET( _reg ) \
920 ( ( ( _reg ) & SPWTDP_EDPF0_EDPF0_MASK ) >> \
921 SPWTDP_EDPF0_EDPF0_SHIFT )
922#define SPWTDP_EDPF0_EDPF0_SET( _reg, _val ) \
923 ( ( ( _reg ) & ~SPWTDP_EDPF0_EDPF0_MASK ) | \
924 ( ( ( _val ) << SPWTDP_EDPF0_EDPF0_SHIFT ) & \
925 SPWTDP_EDPF0_EDPF0_MASK ) )
926#define SPWTDP_EDPF0_EDPF0( _val ) \
927 ( ( ( _val ) << SPWTDP_EDPF0_EDPF0_SHIFT ) & \
928 SPWTDP_EDPF0_EDPF0_MASK )
929
941#define SPWTDP_ED0ET0_ED0ET0_SHIFT 0
942#define SPWTDP_ED0ET0_ED0ET0_MASK 0xffffffffU
943#define SPWTDP_ED0ET0_ED0ET0_GET( _reg ) \
944 ( ( ( _reg ) & SPWTDP_ED0ET0_ED0ET0_MASK ) >> \
945 SPWTDP_ED0ET0_ED0ET0_SHIFT )
946#define SPWTDP_ED0ET0_ED0ET0_SET( _reg, _val ) \
947 ( ( ( _reg ) & ~SPWTDP_ED0ET0_ED0ET0_MASK ) | \
948 ( ( ( _val ) << SPWTDP_ED0ET0_ED0ET0_SHIFT ) & \
949 SPWTDP_ED0ET0_ED0ET0_MASK ) )
950#define SPWTDP_ED0ET0_ED0ET0( _val ) \
951 ( ( ( _val ) << SPWTDP_ED0ET0_ED0ET0_SHIFT ) & \
952 SPWTDP_ED0ET0_ED0ET0_MASK )
953
965#define SPWTDP_ED0ET1_ED0ET1_SHIFT 0
966#define SPWTDP_ED0ET1_ED0ET1_MASK 0xffffffffU
967#define SPWTDP_ED0ET1_ED0ET1_GET( _reg ) \
968 ( ( ( _reg ) & SPWTDP_ED0ET1_ED0ET1_MASK ) >> \
969 SPWTDP_ED0ET1_ED0ET1_SHIFT )
970#define SPWTDP_ED0ET1_ED0ET1_SET( _reg, _val ) \
971 ( ( ( _reg ) & ~SPWTDP_ED0ET1_ED0ET1_MASK ) | \
972 ( ( ( _val ) << SPWTDP_ED0ET1_ED0ET1_SHIFT ) & \
973 SPWTDP_ED0ET1_ED0ET1_MASK ) )
974#define SPWTDP_ED0ET1_ED0ET1( _val ) \
975 ( ( ( _val ) << SPWTDP_ED0ET1_ED0ET1_SHIFT ) & \
976 SPWTDP_ED0ET1_ED0ET1_MASK )
977
989#define SPWTDP_ED0ET2_ED0ET2_SHIFT 0
990#define SPWTDP_ED0ET2_ED0ET2_MASK 0xffffffffU
991#define SPWTDP_ED0ET2_ED0ET2_GET( _reg ) \
992 ( ( ( _reg ) & SPWTDP_ED0ET2_ED0ET2_MASK ) >> \
993 SPWTDP_ED0ET2_ED0ET2_SHIFT )
994#define SPWTDP_ED0ET2_ED0ET2_SET( _reg, _val ) \
995 ( ( ( _reg ) & ~SPWTDP_ED0ET2_ED0ET2_MASK ) | \
996 ( ( ( _val ) << SPWTDP_ED0ET2_ED0ET2_SHIFT ) & \
997 SPWTDP_ED0ET2_ED0ET2_MASK ) )
998#define SPWTDP_ED0ET2_ED0ET2( _val ) \
999 ( ( ( _val ) << SPWTDP_ED0ET2_ED0ET2_SHIFT ) & \
1000 SPWTDP_ED0ET2_ED0ET2_MASK )
1001
1013#define SPWTDP_ED0ET3_ED0ET3_SHIFT 0
1014#define SPWTDP_ED0ET3_ED0ET3_MASK 0xffffffffU
1015#define SPWTDP_ED0ET3_ED0ET3_GET( _reg ) \
1016 ( ( ( _reg ) & SPWTDP_ED0ET3_ED0ET3_MASK ) >> \
1017 SPWTDP_ED0ET3_ED0ET3_SHIFT )
1018#define SPWTDP_ED0ET3_ED0ET3_SET( _reg, _val ) \
1019 ( ( ( _reg ) & ~SPWTDP_ED0ET3_ED0ET3_MASK ) | \
1020 ( ( ( _val ) << SPWTDP_ED0ET3_ED0ET3_SHIFT ) & \
1021 SPWTDP_ED0ET3_ED0ET3_MASK ) )
1022#define SPWTDP_ED0ET3_ED0ET3( _val ) \
1023 ( ( ( _val ) << SPWTDP_ED0ET3_ED0ET3_SHIFT ) & \
1024 SPWTDP_ED0ET3_ED0ET3_MASK )
1025
1037#define SPWTDP_ED0ET4_ED0ET4_SHIFT 24
1038#define SPWTDP_ED0ET4_ED0ET4_MASK 0xff000000U
1039#define SPWTDP_ED0ET4_ED0ET4_GET( _reg ) \
1040 ( ( ( _reg ) & SPWTDP_ED0ET4_ED0ET4_MASK ) >> \
1041 SPWTDP_ED0ET4_ED0ET4_SHIFT )
1042#define SPWTDP_ED0ET4_ED0ET4_SET( _reg, _val ) \
1043 ( ( ( _reg ) & ~SPWTDP_ED0ET4_ED0ET4_MASK ) | \
1044 ( ( ( _val ) << SPWTDP_ED0ET4_ED0ET4_SHIFT ) & \
1045 SPWTDP_ED0ET4_ED0ET4_MASK ) )
1046#define SPWTDP_ED0ET4_ED0ET4( _val ) \
1047 ( ( ( _val ) << SPWTDP_ED0ET4_ED0ET4_SHIFT ) & \
1048 SPWTDP_ED0ET4_ED0ET4_MASK )
1049
1055typedef struct spwtdp {
1059 uint32_t conf0;
1060
1061 uint32_t reserved_4_c[ 2 ];
1062
1066 uint32_t conf3;
1067
1068 uint32_t reserved_10_20[ 4 ];
1069
1073 uint32_t ctrl;
1074
1078 uint32_t cet0;
1079
1083 uint32_t cet1;
1084
1088 uint32_t cet2;
1089
1093 uint32_t cet3;
1094
1098 uint32_t cet4;
1099
1100 uint32_t reserved_38_40[ 2 ];
1101
1105 uint32_t dpf;
1106
1110 uint32_t det0;
1111
1115 uint32_t det1;
1116
1120 uint32_t det2;
1121
1125 uint32_t det3;
1126
1130 uint32_t det4;
1131
1132 uint32_t reserved_58_60[ 2 ];
1133
1137 uint32_t trpfrx;
1138
1142 uint32_t tr0;
1143
1147 uint32_t tr1;
1148
1152 uint32_t tr2;
1153
1157 uint32_t tr3;
1158
1162 uint32_t tr4;
1163
1164 uint32_t reserved_78_80[ 2 ];
1165
1169 uint32_t ttpftx;
1170
1174 uint32_t tt0;
1175
1179 uint32_t tt1;
1180
1184 uint32_t tt2;
1185
1189 uint32_t tt3;
1190
1194 uint32_t tt4;
1195
1196 uint32_t reserved_98_a0[ 2 ];
1197
1201 uint32_t lpf;
1202
1203 uint32_t reserved_a4_c0[ 7 ];
1204
1208 uint32_t ie;
1209
1210 uint32_t reserved_c4_c8;
1211
1215 uint32_t dc;
1216
1220 uint32_t ds;
1221
1222 uint32_t reserved_d0_100[ 12 ];
1223
1227 uint32_t edm0;
1228
1229 uint32_t reserved_104_110[ 3 ];
1230
1234 uint32_t edpf0;
1235
1239 uint32_t ed0et0;
1240
1244 uint32_t ed0et1;
1245
1249 uint32_t ed0et2;
1250
1254 uint32_t ed0et3;
1255
1259 uint32_t ed0et4;
1261
1264#ifdef __cplusplus
1265}
1266#endif
1267
1268#endif /* _GRLIB_SPWTDP_REGS_H */
This structure defines the SPWTDP register block memory map.
Definition: spwtdp-regs.h:1055
uint32_t det3
See Datation Elapsed Time 3 (DET3).
Definition: spwtdp-regs.h:1125
uint32_t tr3
See Time Stamp Elapsed Time 3 Rx (TR3).
Definition: spwtdp-regs.h:1157
uint32_t det4
See Datation Elapsed Time 4 (DET4).
Definition: spwtdp-regs.h:1130
uint32_t tr4
See Time Stamp Elapsed Time 4 Rx (TR4).
Definition: spwtdp-regs.h:1162
uint32_t ed0et3
See External Datation 0 Elapsed Time 3 (ED0ET3).
Definition: spwtdp-regs.h:1254
uint32_t ed0et0
See External Datation 0 Elapsed Time 0 (ED0ET0).
Definition: spwtdp-regs.h:1239
uint32_t dpf
See Datation Preamble Field (DPF).
Definition: spwtdp-regs.h:1105
uint32_t lpf
See Latency Preamble Field (LPF).
Definition: spwtdp-regs.h:1201
uint32_t edm0
See External Datation 0 Mask (EDM0).
Definition: spwtdp-regs.h:1227
uint32_t cet1
See Command Elapsed Time 1 (CET1).
Definition: spwtdp-regs.h:1083
uint32_t ie
See Interrupt Enable (IE).
Definition: spwtdp-regs.h:1208
uint32_t dc
See Delay Count (DC).
Definition: spwtdp-regs.h:1215
uint32_t edpf0
See External Datation 0 Preamble Field (EDPF0).
Definition: spwtdp-regs.h:1234
uint32_t trpfrx
See Time-Stamp Preamble Field Rx (TRPFRX).
Definition: spwtdp-regs.h:1137
uint32_t cet2
See Command Elapsed Time 2 (CET2).
Definition: spwtdp-regs.h:1088
uint32_t conf0
See Configuration 0 (CONF0).
Definition: spwtdp-regs.h:1059
uint32_t tt3
See Time Stamp Elapsed Time 3 Tx (TT3).
Definition: spwtdp-regs.h:1189
uint32_t ed0et1
See External Datation 0 Elapsed Time 1 (ED0ET1).
Definition: spwtdp-regs.h:1244
uint32_t tt4
See Time Stamp Elapsed Time 4 Tx (TT4).
Definition: spwtdp-regs.h:1194
uint32_t ed0et4
See External Datation 0 Elapsed Time 4 (ED0ET4).
Definition: spwtdp-regs.h:1259
uint32_t conf3
See Configuration 3 (CONF3).
Definition: spwtdp-regs.h:1066
uint32_t ttpftx
See Time-Stamp SpaceWire Time-Code and Preamble Field Tx (TTPFTX).
Definition: spwtdp-regs.h:1169
uint32_t tr0
See Time Stamp Elapsed Time 0 Rx (TR0).
Definition: spwtdp-regs.h:1142
uint32_t tr1
See Time Stamp Elapsed Time 1 Rx (TR1).
Definition: spwtdp-regs.h:1147
uint32_t det1
See Datation Elapsed Time 1 (DET1).
Definition: spwtdp-regs.h:1115
uint32_t det0
See Datation Elapsed Time 0 (DET0).
Definition: spwtdp-regs.h:1110
uint32_t tr2
See Time Stamp Elapsed Time 2 Rx (TR2).
Definition: spwtdp-regs.h:1152
uint32_t ds
See Disable Sync (DS).
Definition: spwtdp-regs.h:1220
uint32_t ctrl
See Control (CTRL).
Definition: spwtdp-regs.h:1073
uint32_t ed0et2
See External Datation 0 Elapsed Time 2 (ED0ET2).
Definition: spwtdp-regs.h:1249
uint32_t tt0
See Time Stamp Elapsed Time 0 Tx (TT0).
Definition: spwtdp-regs.h:1174
uint32_t cet0
See Command Elapsed Time 0 (CET0).
Definition: spwtdp-regs.h:1078
uint32_t cet4
See Command Elapsed Time 4 (CET4).
Definition: spwtdp-regs.h:1098
uint32_t det2
See Datation Elapsed Time 2 (DET2).
Definition: spwtdp-regs.h:1120
uint32_t tt2
See Time Stamp Elapsed Time 2 Tx (TT2).
Definition: spwtdp-regs.h:1184
uint32_t cet3
See Command Elapsed Time 3 (CET3).
Definition: spwtdp-regs.h:1093
uint32_t tt1
See Time Stamp Elapsed Time 1 Tx (TT1).
Definition: spwtdp-regs.h:1179