RTEMS 6.1-rc2
Loading...
Searching...
No Matches
grspwrouter-regs.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-2-Clause */
2
11/*
12 * Copyright (C) 2021, 2023 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/grspwrouter-header */
54
55#ifndef _GRLIB_GRSPWROUTER_REGS_H
56#define _GRLIB_GRSPWROUTER_REGS_H
57
58#include <stdint.h>
59
60#ifdef __cplusplus
61extern "C" {
62#endif
63
64/* Generated from spec:/dev/grlib/if/grspwrouter-portstats */
65
85#define GRSPWROUTER_OCHARCNT_OR 0x80000000U
86
87#define GRSPWROUTER_OCHARCNT_CC_SHIFT 0
88#define GRSPWROUTER_OCHARCNT_CC_MASK 0x7fffffffU
89#define GRSPWROUTER_OCHARCNT_CC_GET( _reg ) \
90 ( ( ( _reg ) & GRSPWROUTER_OCHARCNT_CC_MASK ) >> \
91 GRSPWROUTER_OCHARCNT_CC_SHIFT )
92#define GRSPWROUTER_OCHARCNT_CC_SET( _reg, _val ) \
93 ( ( ( _reg ) & ~GRSPWROUTER_OCHARCNT_CC_MASK ) | \
94 ( ( ( _val ) << GRSPWROUTER_OCHARCNT_CC_SHIFT ) & \
95 GRSPWROUTER_OCHARCNT_CC_MASK ) )
96#define GRSPWROUTER_OCHARCNT_CC( _val ) \
97 ( ( ( _val ) << GRSPWROUTER_OCHARCNT_CC_SHIFT ) & \
98 GRSPWROUTER_OCHARCNT_CC_MASK )
99
111#define GRSPWROUTER_ICHARCNT_OR 0x80000000U
112
113#define GRSPWROUTER_ICHARCNT_CC_SHIFT 0
114#define GRSPWROUTER_ICHARCNT_CC_MASK 0x7fffffffU
115#define GRSPWROUTER_ICHARCNT_CC_GET( _reg ) \
116 ( ( ( _reg ) & GRSPWROUTER_ICHARCNT_CC_MASK ) >> \
117 GRSPWROUTER_ICHARCNT_CC_SHIFT )
118#define GRSPWROUTER_ICHARCNT_CC_SET( _reg, _val ) \
119 ( ( ( _reg ) & ~GRSPWROUTER_ICHARCNT_CC_MASK ) | \
120 ( ( ( _val ) << GRSPWROUTER_ICHARCNT_CC_SHIFT ) & \
121 GRSPWROUTER_ICHARCNT_CC_MASK ) )
122#define GRSPWROUTER_ICHARCNT_CC( _val ) \
123 ( ( ( _val ) << GRSPWROUTER_ICHARCNT_CC_SHIFT ) & \
124 GRSPWROUTER_ICHARCNT_CC_MASK )
125
137#define GRSPWROUTER_OPKTCNT_OR 0x80000000U
138
139#define GRSPWROUTER_OPKTCNT_PC_SHIFT 0
140#define GRSPWROUTER_OPKTCNT_PC_MASK 0x7fffffffU
141#define GRSPWROUTER_OPKTCNT_PC_GET( _reg ) \
142 ( ( ( _reg ) & GRSPWROUTER_OPKTCNT_PC_MASK ) >> \
143 GRSPWROUTER_OPKTCNT_PC_SHIFT )
144#define GRSPWROUTER_OPKTCNT_PC_SET( _reg, _val ) \
145 ( ( ( _reg ) & ~GRSPWROUTER_OPKTCNT_PC_MASK ) | \
146 ( ( ( _val ) << GRSPWROUTER_OPKTCNT_PC_SHIFT ) & \
147 GRSPWROUTER_OPKTCNT_PC_MASK ) )
148#define GRSPWROUTER_OPKTCNT_PC( _val ) \
149 ( ( ( _val ) << GRSPWROUTER_OPKTCNT_PC_SHIFT ) & \
150 GRSPWROUTER_OPKTCNT_PC_MASK )
151
163#define GRSPWROUTER_IPKTCNT_OR 0x80000000U
164
165#define GRSPWROUTER_IPKTCNT_PC_SHIFT 0
166#define GRSPWROUTER_IPKTCNT_PC_MASK 0x7fffffffU
167#define GRSPWROUTER_IPKTCNT_PC_GET( _reg ) \
168 ( ( ( _reg ) & GRSPWROUTER_IPKTCNT_PC_MASK ) >> \
169 GRSPWROUTER_IPKTCNT_PC_SHIFT )
170#define GRSPWROUTER_IPKTCNT_PC_SET( _reg, _val ) \
171 ( ( ( _reg ) & ~GRSPWROUTER_IPKTCNT_PC_MASK ) | \
172 ( ( ( _val ) << GRSPWROUTER_IPKTCNT_PC_SHIFT ) & \
173 GRSPWROUTER_IPKTCNT_PC_MASK ) )
174#define GRSPWROUTER_IPKTCNT_PC( _val ) \
175 ( ( ( _val ) << GRSPWROUTER_IPKTCNT_PC_SHIFT ) & \
176 GRSPWROUTER_IPKTCNT_PC_MASK )
177
184typedef struct grspwrouter_portstats {
188 uint32_t ocharcnt;
189
193 uint32_t icharcnt;
194
198 uint32_t opktcnt;
199
203 uint32_t ipktcnt;
205
208/* Generated from spec:/dev/grlib/if/grspwrouter */
209
229#define GRSPWROUTER_RTPMAP_PE_SHIFT 1
230#define GRSPWROUTER_RTPMAP_PE_MASK 0xfffffffeU
231#define GRSPWROUTER_RTPMAP_PE_GET( _reg ) \
232 ( ( ( _reg ) & GRSPWROUTER_RTPMAP_PE_MASK ) >> \
233 GRSPWROUTER_RTPMAP_PE_SHIFT )
234#define GRSPWROUTER_RTPMAP_PE_SET( _reg, _val ) \
235 ( ( ( _reg ) & ~GRSPWROUTER_RTPMAP_PE_MASK ) | \
236 ( ( ( _val ) << GRSPWROUTER_RTPMAP_PE_SHIFT ) & \
237 GRSPWROUTER_RTPMAP_PE_MASK ) )
238#define GRSPWROUTER_RTPMAP_PE( _val ) \
239 ( ( ( _val ) << GRSPWROUTER_RTPMAP_PE_SHIFT ) & \
240 GRSPWROUTER_RTPMAP_PE_MASK )
241
242#define GRSPWROUTER_RTPMAP_PD 0x1U
243
255#define GRSPWROUTER_RTACTRL_SR 0x8U
256
257#define GRSPWROUTER_RTACTRL_EN 0x4U
258
259#define GRSPWROUTER_RTACTRL_PR 0x2U
260
261#define GRSPWROUTER_RTACTRL_HD 0x1U
262
274#define GRSPWROUTER_PCTRLCFG_PL 0x20000U
275
276#define GRSPWROUTER_PCTRLCFG_TS 0x10000U
277
278#define GRSPWROUTER_PCTRLCFG_TR 0x200U
279
290#define GRSPWROUTER_PCTRL_RD_SHIFT 24
291#define GRSPWROUTER_PCTRL_RD_MASK 0xff000000U
292#define GRSPWROUTER_PCTRL_RD_GET( _reg ) \
293 ( ( ( _reg ) & GRSPWROUTER_PCTRL_RD_MASK ) >> \
294 GRSPWROUTER_PCTRL_RD_SHIFT )
295#define GRSPWROUTER_PCTRL_RD_SET( _reg, _val ) \
296 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL_RD_MASK ) | \
297 ( ( ( _val ) << GRSPWROUTER_PCTRL_RD_SHIFT ) & \
298 GRSPWROUTER_PCTRL_RD_MASK ) )
299#define GRSPWROUTER_PCTRL_RD( _val ) \
300 ( ( ( _val ) << GRSPWROUTER_PCTRL_RD_SHIFT ) & \
301 GRSPWROUTER_PCTRL_RD_MASK )
302
303#define GRSPWROUTER_PCTRL_RES_SHIFT 22
304#define GRSPWROUTER_PCTRL_RES_MASK 0xc00000U
305#define GRSPWROUTER_PCTRL_RES_GET( _reg ) \
306 ( ( ( _reg ) & GRSPWROUTER_PCTRL_RES_MASK ) >> \
307 GRSPWROUTER_PCTRL_RES_SHIFT )
308#define GRSPWROUTER_PCTRL_RES_SET( _reg, _val ) \
309 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL_RES_MASK ) | \
310 ( ( ( _val ) << GRSPWROUTER_PCTRL_RES_SHIFT ) & \
311 GRSPWROUTER_PCTRL_RES_MASK ) )
312#define GRSPWROUTER_PCTRL_RES( _val ) \
313 ( ( ( _val ) << GRSPWROUTER_PCTRL_RES_SHIFT ) & \
314 GRSPWROUTER_PCTRL_RES_MASK )
315
316#define GRSPWROUTER_PCTRL_ST 0x200000U
317
318#define GRSPWROUTER_PCTRL_SR 0x100000U
319
320#define GRSPWROUTER_PCTRL_AD 0x80000U
321
322#define GRSPWROUTER_PCTRL_LR 0x40000U
323
324#define GRSPWROUTER_PCTRL_PL 0x20000U
325
326#define GRSPWROUTER_PCTRL_TS 0x10000U
327
328#define GRSPWROUTER_PCTRL_IC 0x8000U
329
330#define GRSPWROUTER_PCTRL_ET 0x4000U
331
332#define GRSPWROUTER_PCTRL_NF 0x2000U
333
334#define GRSPWROUTER_PCTRL_PS 0x1000U
335
336#define GRSPWROUTER_PCTRL_BE 0x800U
337
338#define GRSPWROUTER_PCTRL_DI 0x400U
339
340#define GRSPWROUTER_PCTRL_TR 0x200U
341
342#define GRSPWROUTER_PCTRL_PR 0x100U
343
344#define GRSPWROUTER_PCTRL_TF 0x80U
345
346#define GRSPWROUTER_PCTRL_RS 0x40U
347
348#define GRSPWROUTER_PCTRL_TE 0x20U
349
350#define GRSPWROUTER_PCTRL_R 0x10U
351
352#define GRSPWROUTER_PCTRL_CE 0x8U
353
354#define GRSPWROUTER_PCTRL_AS 0x4U
355
356#define GRSPWROUTER_PCTRL_LS 0x2U
357
358#define GRSPWROUTER_PCTRL_LD 0x1U
359
371#define GRSPWROUTER_PSTSCFG_EO 0x80000000U
372
373#define GRSPWROUTER_PSTSCFG_EE 0x40000000U
374
375#define GRSPWROUTER_PSTSCFG_PL 0x20000000U
376
377#define GRSPWROUTER_PSTSCFG_TT 0x10000000U
378
379#define GRSPWROUTER_PSTSCFG_PT 0x8000000U
380
381#define GRSPWROUTER_PSTSCFG_HC 0x4000000U
382
383#define GRSPWROUTER_PSTSCFG_PI 0x2000000U
384
385#define GRSPWROUTER_PSTSCFG_CE 0x1000000U
386
387#define GRSPWROUTER_PSTSCFG_EC_SHIFT 20
388#define GRSPWROUTER_PSTSCFG_EC_MASK 0xf00000U
389#define GRSPWROUTER_PSTSCFG_EC_GET( _reg ) \
390 ( ( ( _reg ) & GRSPWROUTER_PSTSCFG_EC_MASK ) >> \
391 GRSPWROUTER_PSTSCFG_EC_SHIFT )
392#define GRSPWROUTER_PSTSCFG_EC_SET( _reg, _val ) \
393 ( ( ( _reg ) & ~GRSPWROUTER_PSTSCFG_EC_MASK ) | \
394 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_EC_SHIFT ) & \
395 GRSPWROUTER_PSTSCFG_EC_MASK ) )
396#define GRSPWROUTER_PSTSCFG_EC( _val ) \
397 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_EC_SHIFT ) & \
398 GRSPWROUTER_PSTSCFG_EC_MASK )
399
400#define GRSPWROUTER_PSTSCFG_R 0x80000U
401
402#define GRSPWROUTER_PSTSCFG_TS 0x40000U
403
404#define GRSPWROUTER_PSTSCFG_ME 0x20000U
405
406#define GRSPWROUTER_PSTSCFG_IP_SHIFT 7
407#define GRSPWROUTER_PSTSCFG_IP_MASK 0xf80U
408#define GRSPWROUTER_PSTSCFG_IP_GET( _reg ) \
409 ( ( ( _reg ) & GRSPWROUTER_PSTSCFG_IP_MASK ) >> \
410 GRSPWROUTER_PSTSCFG_IP_SHIFT )
411#define GRSPWROUTER_PSTSCFG_IP_SET( _reg, _val ) \
412 ( ( ( _reg ) & ~GRSPWROUTER_PSTSCFG_IP_MASK ) | \
413 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_IP_SHIFT ) & \
414 GRSPWROUTER_PSTSCFG_IP_MASK ) )
415#define GRSPWROUTER_PSTSCFG_IP( _val ) \
416 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_IP_SHIFT ) & \
417 GRSPWROUTER_PSTSCFG_IP_MASK )
418
419#define GRSPWROUTER_PSTSCFG_RES_SHIFT 5
420#define GRSPWROUTER_PSTSCFG_RES_MASK 0x60U
421#define GRSPWROUTER_PSTSCFG_RES_GET( _reg ) \
422 ( ( ( _reg ) & GRSPWROUTER_PSTSCFG_RES_MASK ) >> \
423 GRSPWROUTER_PSTSCFG_RES_SHIFT )
424#define GRSPWROUTER_PSTSCFG_RES_SET( _reg, _val ) \
425 ( ( ( _reg ) & ~GRSPWROUTER_PSTSCFG_RES_MASK ) | \
426 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_RES_SHIFT ) & \
427 GRSPWROUTER_PSTSCFG_RES_MASK ) )
428#define GRSPWROUTER_PSTSCFG_RES( _val ) \
429 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_RES_SHIFT ) & \
430 GRSPWROUTER_PSTSCFG_RES_MASK )
431
432#define GRSPWROUTER_PSTSCFG_CP 0x10U
433
434#define GRSPWROUTER_PSTSCFG_PC_SHIFT 0
435#define GRSPWROUTER_PSTSCFG_PC_MASK 0xfU
436#define GRSPWROUTER_PSTSCFG_PC_GET( _reg ) \
437 ( ( ( _reg ) & GRSPWROUTER_PSTSCFG_PC_MASK ) >> \
438 GRSPWROUTER_PSTSCFG_PC_SHIFT )
439#define GRSPWROUTER_PSTSCFG_PC_SET( _reg, _val ) \
440 ( ( ( _reg ) & ~GRSPWROUTER_PSTSCFG_PC_MASK ) | \
441 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_PC_SHIFT ) & \
442 GRSPWROUTER_PSTSCFG_PC_MASK ) )
443#define GRSPWROUTER_PSTSCFG_PC( _val ) \
444 ( ( ( _val ) << GRSPWROUTER_PSTSCFG_PC_SHIFT ) & \
445 GRSPWROUTER_PSTSCFG_PC_MASK )
446
457#define GRSPWROUTER_PSTS_PT_SHIFT 30
458#define GRSPWROUTER_PSTS_PT_MASK 0xc0000000U
459#define GRSPWROUTER_PSTS_PT_GET( _reg ) \
460 ( ( ( _reg ) & GRSPWROUTER_PSTS_PT_MASK ) >> \
461 GRSPWROUTER_PSTS_PT_SHIFT )
462#define GRSPWROUTER_PSTS_PT_SET( _reg, _val ) \
463 ( ( ( _reg ) & ~GRSPWROUTER_PSTS_PT_MASK ) | \
464 ( ( ( _val ) << GRSPWROUTER_PSTS_PT_SHIFT ) & \
465 GRSPWROUTER_PSTS_PT_MASK ) )
466#define GRSPWROUTER_PSTS_PT( _val ) \
467 ( ( ( _val ) << GRSPWROUTER_PSTS_PT_SHIFT ) & \
468 GRSPWROUTER_PSTS_PT_MASK )
469
470#define GRSPWROUTER_PSTS_PL 0x20000000U
471
472#define GRSPWROUTER_PSTS_TT 0x10000000U
473
474#define GRSPWROUTER_PSTS_RS 0x8000000U
475
476#define GRSPWROUTER_PSTS_SR 0x4000000U
477
478#define GRSPWROUTER_PSTS_LR 0x400000U
479
480#define GRSPWROUTER_PSTS_SP 0x200000U
481
482#define GRSPWROUTER_PSTS_AC 0x100000U
483
484#define GRSPWROUTER_PSTS_AP 0x80000U
485
486#define GRSPWROUTER_PSTS_TS 0x40000U
487
488#define GRSPWROUTER_PSTS_ME 0x20000U
489
490#define GRSPWROUTER_PSTS_TF 0x10000U
491
492#define GRSPWROUTER_PSTS_RE 0x8000U
493
494#define GRSPWROUTER_PSTS_LS_SHIFT 12
495#define GRSPWROUTER_PSTS_LS_MASK 0x7000U
496#define GRSPWROUTER_PSTS_LS_GET( _reg ) \
497 ( ( ( _reg ) & GRSPWROUTER_PSTS_LS_MASK ) >> \
498 GRSPWROUTER_PSTS_LS_SHIFT )
499#define GRSPWROUTER_PSTS_LS_SET( _reg, _val ) \
500 ( ( ( _reg ) & ~GRSPWROUTER_PSTS_LS_MASK ) | \
501 ( ( ( _val ) << GRSPWROUTER_PSTS_LS_SHIFT ) & \
502 GRSPWROUTER_PSTS_LS_MASK ) )
503#define GRSPWROUTER_PSTS_LS( _val ) \
504 ( ( ( _val ) << GRSPWROUTER_PSTS_LS_SHIFT ) & \
505 GRSPWROUTER_PSTS_LS_MASK )
506
507#define GRSPWROUTER_PSTS_IP_SHIFT 7
508#define GRSPWROUTER_PSTS_IP_MASK 0xf80U
509#define GRSPWROUTER_PSTS_IP_GET( _reg ) \
510 ( ( ( _reg ) & GRSPWROUTER_PSTS_IP_MASK ) >> \
511 GRSPWROUTER_PSTS_IP_SHIFT )
512#define GRSPWROUTER_PSTS_IP_SET( _reg, _val ) \
513 ( ( ( _reg ) & ~GRSPWROUTER_PSTS_IP_MASK ) | \
514 ( ( ( _val ) << GRSPWROUTER_PSTS_IP_SHIFT ) & \
515 GRSPWROUTER_PSTS_IP_MASK ) )
516#define GRSPWROUTER_PSTS_IP( _val ) \
517 ( ( ( _val ) << GRSPWROUTER_PSTS_IP_SHIFT ) & \
518 GRSPWROUTER_PSTS_IP_MASK )
519
520#define GRSPWROUTER_PSTS_PR 0x40U
521
522#define GRSPWROUTER_PSTS_PB 0x20U
523
524#define GRSPWROUTER_PSTS_IA 0x10U
525
526#define GRSPWROUTER_PSTS_CE 0x8U
527
528#define GRSPWROUTER_PSTS_ER 0x4U
529
530#define GRSPWROUTER_PSTS_DE 0x2U
531
532#define GRSPWROUTER_PSTS_PE 0x1U
533
544#define GRSPWROUTER_PTIMER_RL_SHIFT 0
545#define GRSPWROUTER_PTIMER_RL_MASK 0x3ffU
546#define GRSPWROUTER_PTIMER_RL_GET( _reg ) \
547 ( ( ( _reg ) & GRSPWROUTER_PTIMER_RL_MASK ) >> \
548 GRSPWROUTER_PTIMER_RL_SHIFT )
549#define GRSPWROUTER_PTIMER_RL_SET( _reg, _val ) \
550 ( ( ( _reg ) & ~GRSPWROUTER_PTIMER_RL_MASK ) | \
551 ( ( ( _val ) << GRSPWROUTER_PTIMER_RL_SHIFT ) & \
552 GRSPWROUTER_PTIMER_RL_MASK ) )
553#define GRSPWROUTER_PTIMER_RL( _val ) \
554 ( ( ( _val ) << GRSPWROUTER_PTIMER_RL_SHIFT ) & \
555 GRSPWROUTER_PTIMER_RL_MASK )
556
568#define GRSPWROUTER_PCTRL2CFG_SM_SHIFT 24
569#define GRSPWROUTER_PCTRL2CFG_SM_MASK 0xff000000U
570#define GRSPWROUTER_PCTRL2CFG_SM_GET( _reg ) \
571 ( ( ( _reg ) & GRSPWROUTER_PCTRL2CFG_SM_MASK ) >> \
572 GRSPWROUTER_PCTRL2CFG_SM_SHIFT )
573#define GRSPWROUTER_PCTRL2CFG_SM_SET( _reg, _val ) \
574 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL2CFG_SM_MASK ) | \
575 ( ( ( _val ) << GRSPWROUTER_PCTRL2CFG_SM_SHIFT ) & \
576 GRSPWROUTER_PCTRL2CFG_SM_MASK ) )
577#define GRSPWROUTER_PCTRL2CFG_SM( _val ) \
578 ( ( ( _val ) << GRSPWROUTER_PCTRL2CFG_SM_SHIFT ) & \
579 GRSPWROUTER_PCTRL2CFG_SM_MASK )
580
581#define GRSPWROUTER_PCTRL2CFG_SV_SHIFT 16
582#define GRSPWROUTER_PCTRL2CFG_SV_MASK 0xff0000U
583#define GRSPWROUTER_PCTRL2CFG_SV_GET( _reg ) \
584 ( ( ( _reg ) & GRSPWROUTER_PCTRL2CFG_SV_MASK ) >> \
585 GRSPWROUTER_PCTRL2CFG_SV_SHIFT )
586#define GRSPWROUTER_PCTRL2CFG_SV_SET( _reg, _val ) \
587 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL2CFG_SV_MASK ) | \
588 ( ( ( _val ) << GRSPWROUTER_PCTRL2CFG_SV_SHIFT ) & \
589 GRSPWROUTER_PCTRL2CFG_SV_MASK ) )
590#define GRSPWROUTER_PCTRL2CFG_SV( _val ) \
591 ( ( ( _val ) << GRSPWROUTER_PCTRL2CFG_SV_SHIFT ) & \
592 GRSPWROUTER_PCTRL2CFG_SV_MASK )
593
594#define GRSPWROUTER_PCTRL2CFG_OR 0x8000U
595
606#define GRSPWROUTER_PCTRL2_SM_SHIFT 24
607#define GRSPWROUTER_PCTRL2_SM_MASK 0xff000000U
608#define GRSPWROUTER_PCTRL2_SM_GET( _reg ) \
609 ( ( ( _reg ) & GRSPWROUTER_PCTRL2_SM_MASK ) >> \
610 GRSPWROUTER_PCTRL2_SM_SHIFT )
611#define GRSPWROUTER_PCTRL2_SM_SET( _reg, _val ) \
612 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL2_SM_MASK ) | \
613 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SM_SHIFT ) & \
614 GRSPWROUTER_PCTRL2_SM_MASK ) )
615#define GRSPWROUTER_PCTRL2_SM( _val ) \
616 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SM_SHIFT ) & \
617 GRSPWROUTER_PCTRL2_SM_MASK )
618
619#define GRSPWROUTER_PCTRL2_SV_SHIFT 16
620#define GRSPWROUTER_PCTRL2_SV_MASK 0xff0000U
621#define GRSPWROUTER_PCTRL2_SV_GET( _reg ) \
622 ( ( ( _reg ) & GRSPWROUTER_PCTRL2_SV_MASK ) >> \
623 GRSPWROUTER_PCTRL2_SV_SHIFT )
624#define GRSPWROUTER_PCTRL2_SV_SET( _reg, _val ) \
625 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL2_SV_MASK ) | \
626 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SV_SHIFT ) & \
627 GRSPWROUTER_PCTRL2_SV_MASK ) )
628#define GRSPWROUTER_PCTRL2_SV( _val ) \
629 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SV_SHIFT ) & \
630 GRSPWROUTER_PCTRL2_SV_MASK )
631
632#define GRSPWROUTER_PCTRL2_OR 0x8000U
633
634#define GRSPWROUTER_PCTRL2_UR 0x4000U
635
636#define GRSPWROUTER_PCTRL2_R 0x2000U
637
638#define GRSPWROUTER_PCTRL2_AT 0x1000U
639
640#define GRSPWROUTER_PCTRL2_AR 0x800U
641
642#define GRSPWROUTER_PCTRL2_IT 0x400U
643
644#define GRSPWROUTER_PCTRL2_IR 0x200U
645
646#define GRSPWROUTER_PCTRL2_SD_SHIFT 1
647#define GRSPWROUTER_PCTRL2_SD_MASK 0x3eU
648#define GRSPWROUTER_PCTRL2_SD_GET( _reg ) \
649 ( ( ( _reg ) & GRSPWROUTER_PCTRL2_SD_MASK ) >> \
650 GRSPWROUTER_PCTRL2_SD_SHIFT )
651#define GRSPWROUTER_PCTRL2_SD_SET( _reg, _val ) \
652 ( ( ( _reg ) & ~GRSPWROUTER_PCTRL2_SD_MASK ) | \
653 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SD_SHIFT ) & \
654 GRSPWROUTER_PCTRL2_SD_MASK ) )
655#define GRSPWROUTER_PCTRL2_SD( _val ) \
656 ( ( ( _val ) << GRSPWROUTER_PCTRL2_SD_SHIFT ) & \
657 GRSPWROUTER_PCTRL2_SD_MASK )
658
659#define GRSPWROUTER_PCTRL2_SC 0x1U
660
672#define GRSPWROUTER_RTRCFG_SP_SHIFT 27
673#define GRSPWROUTER_RTRCFG_SP_MASK 0xf8000000U
674#define GRSPWROUTER_RTRCFG_SP_GET( _reg ) \
675 ( ( ( _reg ) & GRSPWROUTER_RTRCFG_SP_MASK ) >> \
676 GRSPWROUTER_RTRCFG_SP_SHIFT )
677#define GRSPWROUTER_RTRCFG_SP_SET( _reg, _val ) \
678 ( ( ( _reg ) & ~GRSPWROUTER_RTRCFG_SP_MASK ) | \
679 ( ( ( _val ) << GRSPWROUTER_RTRCFG_SP_SHIFT ) & \
680 GRSPWROUTER_RTRCFG_SP_MASK ) )
681#define GRSPWROUTER_RTRCFG_SP( _val ) \
682 ( ( ( _val ) << GRSPWROUTER_RTRCFG_SP_SHIFT ) & \
683 GRSPWROUTER_RTRCFG_SP_MASK )
684
685#define GRSPWROUTER_RTRCFG_AP_SHIFT 22
686#define GRSPWROUTER_RTRCFG_AP_MASK 0x7c00000U
687#define GRSPWROUTER_RTRCFG_AP_GET( _reg ) \
688 ( ( ( _reg ) & GRSPWROUTER_RTRCFG_AP_MASK ) >> \
689 GRSPWROUTER_RTRCFG_AP_SHIFT )
690#define GRSPWROUTER_RTRCFG_AP_SET( _reg, _val ) \
691 ( ( ( _reg ) & ~GRSPWROUTER_RTRCFG_AP_MASK ) | \
692 ( ( ( _val ) << GRSPWROUTER_RTRCFG_AP_SHIFT ) & \
693 GRSPWROUTER_RTRCFG_AP_MASK ) )
694#define GRSPWROUTER_RTRCFG_AP( _val ) \
695 ( ( ( _val ) << GRSPWROUTER_RTRCFG_AP_SHIFT ) & \
696 GRSPWROUTER_RTRCFG_AP_MASK )
697
698#define GRSPWROUTER_RTRCFG_FP_SHIFT 17
699#define GRSPWROUTER_RTRCFG_FP_MASK 0x3e0000U
700#define GRSPWROUTER_RTRCFG_FP_GET( _reg ) \
701 ( ( ( _reg ) & GRSPWROUTER_RTRCFG_FP_MASK ) >> \
702 GRSPWROUTER_RTRCFG_FP_SHIFT )
703#define GRSPWROUTER_RTRCFG_FP_SET( _reg, _val ) \
704 ( ( ( _reg ) & ~GRSPWROUTER_RTRCFG_FP_MASK ) | \
705 ( ( ( _val ) << GRSPWROUTER_RTRCFG_FP_SHIFT ) & \
706 GRSPWROUTER_RTRCFG_FP_MASK ) )
707#define GRSPWROUTER_RTRCFG_FP( _val ) \
708 ( ( ( _val ) << GRSPWROUTER_RTRCFG_FP_SHIFT ) & \
709 GRSPWROUTER_RTRCFG_FP_MASK )
710
711#define GRSPWROUTER_RTRCFG_R 0x10000U
712
713#define GRSPWROUTER_RTRCFG_SR 0x8000U
714
715#define GRSPWROUTER_RTRCFG_PE 0x4000U
716
717#define GRSPWROUTER_RTRCFG_IC 0x2000U
718
719#define GRSPWROUTER_RTRCFG_IS 0x1000U
720
721#define GRSPWROUTER_RTRCFG_IP 0x800U
722
723#define GRSPWROUTER_RTRCFG_AI 0x400U
724
725#define GRSPWROUTER_RTRCFG_AT 0x200U
726
727#define GRSPWROUTER_RTRCFG_IE 0x100U
728
729#define GRSPWROUTER_RTRCFG_RE 0x80U
730
731#define GRSPWROUTER_RTRCFG_EE 0x40U
732
733#define GRSPWROUTER_RTRCFG_R 0x20U
734
735#define GRSPWROUTER_RTRCFG_SA 0x10U
736
737#define GRSPWROUTER_RTRCFG_TF 0x8U
738
739#define GRSPWROUTER_RTRCFG_RM 0x4U
740
741#define GRSPWROUTER_RTRCFG_TA 0x2U
742
743#define GRSPWROUTER_RTRCFG_PP 0x1U
744
755#define GRSPWROUTER_TC_RE 0x200U
756
757#define GRSPWROUTER_TC_EN 0x100U
758
759#define GRSPWROUTER_TC_CF_SHIFT 6
760#define GRSPWROUTER_TC_CF_MASK 0xc0U
761#define GRSPWROUTER_TC_CF_GET( _reg ) \
762 ( ( ( _reg ) & GRSPWROUTER_TC_CF_MASK ) >> \
763 GRSPWROUTER_TC_CF_SHIFT )
764#define GRSPWROUTER_TC_CF_SET( _reg, _val ) \
765 ( ( ( _reg ) & ~GRSPWROUTER_TC_CF_MASK ) | \
766 ( ( ( _val ) << GRSPWROUTER_TC_CF_SHIFT ) & \
767 GRSPWROUTER_TC_CF_MASK ) )
768#define GRSPWROUTER_TC_CF( _val ) \
769 ( ( ( _val ) << GRSPWROUTER_TC_CF_SHIFT ) & \
770 GRSPWROUTER_TC_CF_MASK )
771
772#define GRSPWROUTER_TC_TC_SHIFT 0
773#define GRSPWROUTER_TC_TC_MASK 0x3fU
774#define GRSPWROUTER_TC_TC_GET( _reg ) \
775 ( ( ( _reg ) & GRSPWROUTER_TC_TC_MASK ) >> \
776 GRSPWROUTER_TC_TC_SHIFT )
777#define GRSPWROUTER_TC_TC_SET( _reg, _val ) \
778 ( ( ( _reg ) & ~GRSPWROUTER_TC_TC_MASK ) | \
779 ( ( ( _val ) << GRSPWROUTER_TC_TC_SHIFT ) & \
780 GRSPWROUTER_TC_TC_MASK ) )
781#define GRSPWROUTER_TC_TC( _val ) \
782 ( ( ( _val ) << GRSPWROUTER_TC_TC_SHIFT ) & \
783 GRSPWROUTER_TC_TC_MASK )
784
795#define GRSPWROUTER_VER_MA_SHIFT 24
796#define GRSPWROUTER_VER_MA_MASK 0xff000000U
797#define GRSPWROUTER_VER_MA_GET( _reg ) \
798 ( ( ( _reg ) & GRSPWROUTER_VER_MA_MASK ) >> \
799 GRSPWROUTER_VER_MA_SHIFT )
800#define GRSPWROUTER_VER_MA_SET( _reg, _val ) \
801 ( ( ( _reg ) & ~GRSPWROUTER_VER_MA_MASK ) | \
802 ( ( ( _val ) << GRSPWROUTER_VER_MA_SHIFT ) & \
803 GRSPWROUTER_VER_MA_MASK ) )
804#define GRSPWROUTER_VER_MA( _val ) \
805 ( ( ( _val ) << GRSPWROUTER_VER_MA_SHIFT ) & \
806 GRSPWROUTER_VER_MA_MASK )
807
808#define GRSPWROUTER_VER_MI_SHIFT 16
809#define GRSPWROUTER_VER_MI_MASK 0xff0000U
810#define GRSPWROUTER_VER_MI_GET( _reg ) \
811 ( ( ( _reg ) & GRSPWROUTER_VER_MI_MASK ) >> \
812 GRSPWROUTER_VER_MI_SHIFT )
813#define GRSPWROUTER_VER_MI_SET( _reg, _val ) \
814 ( ( ( _reg ) & ~GRSPWROUTER_VER_MI_MASK ) | \
815 ( ( ( _val ) << GRSPWROUTER_VER_MI_SHIFT ) & \
816 GRSPWROUTER_VER_MI_MASK ) )
817#define GRSPWROUTER_VER_MI( _val ) \
818 ( ( ( _val ) << GRSPWROUTER_VER_MI_SHIFT ) & \
819 GRSPWROUTER_VER_MI_MASK )
820
821#define GRSPWROUTER_VER_PA_SHIFT 8
822#define GRSPWROUTER_VER_PA_MASK 0xff00U
823#define GRSPWROUTER_VER_PA_GET( _reg ) \
824 ( ( ( _reg ) & GRSPWROUTER_VER_PA_MASK ) >> \
825 GRSPWROUTER_VER_PA_SHIFT )
826#define GRSPWROUTER_VER_PA_SET( _reg, _val ) \
827 ( ( ( _reg ) & ~GRSPWROUTER_VER_PA_MASK ) | \
828 ( ( ( _val ) << GRSPWROUTER_VER_PA_SHIFT ) & \
829 GRSPWROUTER_VER_PA_MASK ) )
830#define GRSPWROUTER_VER_PA( _val ) \
831 ( ( ( _val ) << GRSPWROUTER_VER_PA_SHIFT ) & \
832 GRSPWROUTER_VER_PA_MASK )
833
834#define GRSPWROUTER_VER_ID_SHIFT 0
835#define GRSPWROUTER_VER_ID_MASK 0xffU
836#define GRSPWROUTER_VER_ID_GET( _reg ) \
837 ( ( ( _reg ) & GRSPWROUTER_VER_ID_MASK ) >> \
838 GRSPWROUTER_VER_ID_SHIFT )
839#define GRSPWROUTER_VER_ID_SET( _reg, _val ) \
840 ( ( ( _reg ) & ~GRSPWROUTER_VER_ID_MASK ) | \
841 ( ( ( _val ) << GRSPWROUTER_VER_ID_SHIFT ) & \
842 GRSPWROUTER_VER_ID_MASK ) )
843#define GRSPWROUTER_VER_ID( _val ) \
844 ( ( ( _val ) << GRSPWROUTER_VER_ID_SHIFT ) & \
845 GRSPWROUTER_VER_ID_MASK )
846
857#define GRSPWROUTER_IDIV_ID_SHIFT 0
858#define GRSPWROUTER_IDIV_ID_MASK 0xffU
859#define GRSPWROUTER_IDIV_ID_GET( _reg ) \
860 ( ( ( _reg ) & GRSPWROUTER_IDIV_ID_MASK ) >> \
861 GRSPWROUTER_IDIV_ID_SHIFT )
862#define GRSPWROUTER_IDIV_ID_SET( _reg, _val ) \
863 ( ( ( _reg ) & ~GRSPWROUTER_IDIV_ID_MASK ) | \
864 ( ( ( _val ) << GRSPWROUTER_IDIV_ID_SHIFT ) & \
865 GRSPWROUTER_IDIV_ID_MASK ) )
866#define GRSPWROUTER_IDIV_ID( _val ) \
867 ( ( ( _val ) << GRSPWROUTER_IDIV_ID_SHIFT ) & \
868 GRSPWROUTER_IDIV_ID_MASK )
869
881#define GRSPWROUTER_CFGWE_WE 0x1U
882
893#define GRSPWROUTER_PRESCALER_RL_SHIFT 0
894#define GRSPWROUTER_PRESCALER_RL_MASK 0xffffffffU
895#define GRSPWROUTER_PRESCALER_RL_GET( _reg ) \
896 ( ( ( _reg ) & GRSPWROUTER_PRESCALER_RL_MASK ) >> \
897 GRSPWROUTER_PRESCALER_RL_SHIFT )
898#define GRSPWROUTER_PRESCALER_RL_SET( _reg, _val ) \
899 ( ( ( _reg ) & ~GRSPWROUTER_PRESCALER_RL_MASK ) | \
900 ( ( ( _val ) << GRSPWROUTER_PRESCALER_RL_SHIFT ) & \
901 GRSPWROUTER_PRESCALER_RL_MASK ) )
902#define GRSPWROUTER_PRESCALER_RL( _val ) \
903 ( ( ( _val ) << GRSPWROUTER_PRESCALER_RL_SHIFT ) & \
904 GRSPWROUTER_PRESCALER_RL_MASK )
905
916#define GRSPWROUTER_IMASK_PE 0x400U
917
918#define GRSPWROUTER_IMASK_SR 0x200U
919
920#define GRSPWROUTER_IMASK_RS 0x100U
921
922#define GRSPWROUTER_IMASK_TT 0x80U
923
924#define GRSPWROUTER_IMASK_PL 0x40U
925
926#define GRSPWROUTER_IMASK_TS 0x20U
927
928#define GRSPWROUTER_IMASK_AC 0x10U
929
930#define GRSPWROUTER_IMASK_RE 0x8U
931
932#define GRSPWROUTER_IMASK_IA 0x4U
933
934#define GRSPWROUTER_IMASK_LE 0x2U
935
936#define GRSPWROUTER_IMASK_ME 0x1U
937
948#define GRSPWROUTER_IPMASK_IE_SHIFT 0
949#define GRSPWROUTER_IPMASK_IE_MASK 0xffffffffU
950#define GRSPWROUTER_IPMASK_IE_GET( _reg ) \
951 ( ( ( _reg ) & GRSPWROUTER_IPMASK_IE_MASK ) >> \
952 GRSPWROUTER_IPMASK_IE_SHIFT )
953#define GRSPWROUTER_IPMASK_IE_SET( _reg, _val ) \
954 ( ( ( _reg ) & ~GRSPWROUTER_IPMASK_IE_MASK ) | \
955 ( ( ( _val ) << GRSPWROUTER_IPMASK_IE_SHIFT ) & \
956 GRSPWROUTER_IPMASK_IE_MASK ) )
957#define GRSPWROUTER_IPMASK_IE( _val ) \
958 ( ( ( _val ) << GRSPWROUTER_IPMASK_IE_SHIFT ) & \
959 GRSPWROUTER_IPMASK_IE_MASK )
960
971#define GRSPWROUTER_PIP_IP_SHIFT 0
972#define GRSPWROUTER_PIP_IP_MASK 0xffffffffU
973#define GRSPWROUTER_PIP_IP_GET( _reg ) \
974 ( ( ( _reg ) & GRSPWROUTER_PIP_IP_MASK ) >> \
975 GRSPWROUTER_PIP_IP_SHIFT )
976#define GRSPWROUTER_PIP_IP_SET( _reg, _val ) \
977 ( ( ( _reg ) & ~GRSPWROUTER_PIP_IP_MASK ) | \
978 ( ( ( _val ) << GRSPWROUTER_PIP_IP_SHIFT ) & \
979 GRSPWROUTER_PIP_IP_MASK ) )
980#define GRSPWROUTER_PIP_IP( _val ) \
981 ( ( ( _val ) << GRSPWROUTER_PIP_IP_SHIFT ) & \
982 GRSPWROUTER_PIP_IP_MASK )
983
995#define GRSPWROUTER_ICODEGEN_HI 0x200000U
996
997#define GRSPWROUTER_ICODEGEN_UA 0x100000U
998
999#define GRSPWROUTER_ICODEGEN_AH 0x80000U
1000
1001#define GRSPWROUTER_ICODEGEN_IT 0x40000U
1002
1003#define GRSPWROUTER_ICODEGEN_TE 0x1U
1004
1005#define GRSPWROUTER_ICODEGEN_EN 0x20000U
1006
1007#define GRSPWROUTER_ICODEGEN_IN_SHIFT 6
1008#define GRSPWROUTER_ICODEGEN_IN_MASK 0xffc0U
1009#define GRSPWROUTER_ICODEGEN_IN_GET( _reg ) \
1010 ( ( ( _reg ) & GRSPWROUTER_ICODEGEN_IN_MASK ) >> \
1011 GRSPWROUTER_ICODEGEN_IN_SHIFT )
1012#define GRSPWROUTER_ICODEGEN_IN_SET( _reg, _val ) \
1013 ( ( ( _reg ) & ~GRSPWROUTER_ICODEGEN_IN_MASK ) | \
1014 ( ( ( _val ) << GRSPWROUTER_ICODEGEN_IN_SHIFT ) & \
1015 GRSPWROUTER_ICODEGEN_IN_MASK ) )
1016#define GRSPWROUTER_ICODEGEN_IN( _val ) \
1017 ( ( ( _val ) << GRSPWROUTER_ICODEGEN_IN_SHIFT ) & \
1018 GRSPWROUTER_ICODEGEN_IN_MASK )
1019
1031#define GRSPWROUTER_ISR0_IB_SHIFT 0
1032#define GRSPWROUTER_ISR0_IB_MASK 0xffffffffU
1033#define GRSPWROUTER_ISR0_IB_GET( _reg ) \
1034 ( ( ( _reg ) & GRSPWROUTER_ISR0_IB_MASK ) >> \
1035 GRSPWROUTER_ISR0_IB_SHIFT )
1036#define GRSPWROUTER_ISR0_IB_SET( _reg, _val ) \
1037 ( ( ( _reg ) & ~GRSPWROUTER_ISR0_IB_MASK ) | \
1038 ( ( ( _val ) << GRSPWROUTER_ISR0_IB_SHIFT ) & \
1039 GRSPWROUTER_ISR0_IB_MASK ) )
1040#define GRSPWROUTER_ISR0_IB( _val ) \
1041 ( ( ( _val ) << GRSPWROUTER_ISR0_IB_SHIFT ) & \
1042 GRSPWROUTER_ISR0_IB_MASK )
1043
1055#define GRSPWROUTER_ISR1_IB_SHIFT 0
1056#define GRSPWROUTER_ISR1_IB_MASK 0xffffffffU
1057#define GRSPWROUTER_ISR1_IB_GET( _reg ) \
1058 ( ( ( _reg ) & GRSPWROUTER_ISR1_IB_MASK ) >> \
1059 GRSPWROUTER_ISR1_IB_SHIFT )
1060#define GRSPWROUTER_ISR1_IB_SET( _reg, _val ) \
1061 ( ( ( _reg ) & ~GRSPWROUTER_ISR1_IB_MASK ) | \
1062 ( ( ( _val ) << GRSPWROUTER_ISR1_IB_SHIFT ) & \
1063 GRSPWROUTER_ISR1_IB_MASK ) )
1064#define GRSPWROUTER_ISR1_IB( _val ) \
1065 ( ( ( _val ) << GRSPWROUTER_ISR1_IB_SHIFT ) & \
1066 GRSPWROUTER_ISR1_IB_MASK )
1067
1079#define GRSPWROUTER_ISRTIMER_RL_SHIFT 0
1080#define GRSPWROUTER_ISRTIMER_RL_MASK 0xffffffffU
1081#define GRSPWROUTER_ISRTIMER_RL_GET( _reg ) \
1082 ( ( ( _reg ) & GRSPWROUTER_ISRTIMER_RL_MASK ) >> \
1083 GRSPWROUTER_ISRTIMER_RL_SHIFT )
1084#define GRSPWROUTER_ISRTIMER_RL_SET( _reg, _val ) \
1085 ( ( ( _reg ) & ~GRSPWROUTER_ISRTIMER_RL_MASK ) | \
1086 ( ( ( _val ) << GRSPWROUTER_ISRTIMER_RL_SHIFT ) & \
1087 GRSPWROUTER_ISRTIMER_RL_MASK ) )
1088#define GRSPWROUTER_ISRTIMER_RL( _val ) \
1089 ( ( ( _val ) << GRSPWROUTER_ISRTIMER_RL_SHIFT ) & \
1090 GRSPWROUTER_ISRTIMER_RL_MASK )
1091
1103#define GRSPWROUTER_AITIMER_RL_SHIFT 0
1104#define GRSPWROUTER_AITIMER_RL_MASK 0xffffffffU
1105#define GRSPWROUTER_AITIMER_RL_GET( _reg ) \
1106 ( ( ( _reg ) & GRSPWROUTER_AITIMER_RL_MASK ) >> \
1107 GRSPWROUTER_AITIMER_RL_SHIFT )
1108#define GRSPWROUTER_AITIMER_RL_SET( _reg, _val ) \
1109 ( ( ( _reg ) & ~GRSPWROUTER_AITIMER_RL_MASK ) | \
1110 ( ( ( _val ) << GRSPWROUTER_AITIMER_RL_SHIFT ) & \
1111 GRSPWROUTER_AITIMER_RL_MASK ) )
1112#define GRSPWROUTER_AITIMER_RL( _val ) \
1113 ( ( ( _val ) << GRSPWROUTER_AITIMER_RL_SHIFT ) & \
1114 GRSPWROUTER_AITIMER_RL_MASK )
1115
1127#define GRSPWROUTER_ISRCTIMER_RL_SHIFT 0
1128#define GRSPWROUTER_ISRCTIMER_RL_MASK 0x1fU
1129#define GRSPWROUTER_ISRCTIMER_RL_GET( _reg ) \
1130 ( ( ( _reg ) & GRSPWROUTER_ISRCTIMER_RL_MASK ) >> \
1131 GRSPWROUTER_ISRCTIMER_RL_SHIFT )
1132#define GRSPWROUTER_ISRCTIMER_RL_SET( _reg, _val ) \
1133 ( ( ( _reg ) & ~GRSPWROUTER_ISRCTIMER_RL_MASK ) | \
1134 ( ( ( _val ) << GRSPWROUTER_ISRCTIMER_RL_SHIFT ) & \
1135 GRSPWROUTER_ISRCTIMER_RL_MASK ) )
1136#define GRSPWROUTER_ISRCTIMER_RL( _val ) \
1137 ( ( ( _val ) << GRSPWROUTER_ISRCTIMER_RL_SHIFT ) & \
1138 GRSPWROUTER_ISRCTIMER_RL_MASK )
1139
1150#define GRSPWROUTER_LRUNSTAT_LR_SHIFT 1
1151#define GRSPWROUTER_LRUNSTAT_LR_MASK 0xfffffffeU
1152#define GRSPWROUTER_LRUNSTAT_LR_GET( _reg ) \
1153 ( ( ( _reg ) & GRSPWROUTER_LRUNSTAT_LR_MASK ) >> \
1154 GRSPWROUTER_LRUNSTAT_LR_SHIFT )
1155#define GRSPWROUTER_LRUNSTAT_LR_SET( _reg, _val ) \
1156 ( ( ( _reg ) & ~GRSPWROUTER_LRUNSTAT_LR_MASK ) | \
1157 ( ( ( _val ) << GRSPWROUTER_LRUNSTAT_LR_SHIFT ) & \
1158 GRSPWROUTER_LRUNSTAT_LR_MASK ) )
1159#define GRSPWROUTER_LRUNSTAT_LR( _val ) \
1160 ( ( ( _val ) << GRSPWROUTER_LRUNSTAT_LR_SHIFT ) & \
1161 GRSPWROUTER_LRUNSTAT_LR_MASK )
1162
1163#define GRSPWROUTER_LRUNSTAT_R 0x1U
1164
1175#define GRSPWROUTER_CAP_AF_SHIFT 24
1176#define GRSPWROUTER_CAP_AF_MASK 0x3000000U
1177#define GRSPWROUTER_CAP_AF_GET( _reg ) \
1178 ( ( ( _reg ) & GRSPWROUTER_CAP_AF_MASK ) >> \
1179 GRSPWROUTER_CAP_AF_SHIFT )
1180#define GRSPWROUTER_CAP_AF_SET( _reg, _val ) \
1181 ( ( ( _reg ) & ~GRSPWROUTER_CAP_AF_MASK ) | \
1182 ( ( ( _val ) << GRSPWROUTER_CAP_AF_SHIFT ) & \
1183 GRSPWROUTER_CAP_AF_MASK ) )
1184#define GRSPWROUTER_CAP_AF( _val ) \
1185 ( ( ( _val ) << GRSPWROUTER_CAP_AF_SHIFT ) & \
1186 GRSPWROUTER_CAP_AF_MASK )
1187
1188#define GRSPWROUTER_CAP_R 0x800000U
1189
1190#define GRSPWROUTER_CAP_PF_SHIFT 20
1191#define GRSPWROUTER_CAP_PF_MASK 0x700000U
1192#define GRSPWROUTER_CAP_PF_GET( _reg ) \
1193 ( ( ( _reg ) & GRSPWROUTER_CAP_PF_MASK ) >> \
1194 GRSPWROUTER_CAP_PF_SHIFT )
1195#define GRSPWROUTER_CAP_PF_SET( _reg, _val ) \
1196 ( ( ( _reg ) & ~GRSPWROUTER_CAP_PF_MASK ) | \
1197 ( ( ( _val ) << GRSPWROUTER_CAP_PF_SHIFT ) & \
1198 GRSPWROUTER_CAP_PF_MASK ) )
1199#define GRSPWROUTER_CAP_PF( _val ) \
1200 ( ( ( _val ) << GRSPWROUTER_CAP_PF_SHIFT ) & \
1201 GRSPWROUTER_CAP_PF_MASK )
1202
1203#define GRSPWROUTER_CAP_R 0x80000U
1204
1205#define GRSPWROUTER_CAP_RM_SHIFT 16
1206#define GRSPWROUTER_CAP_RM_MASK 0x70000U
1207#define GRSPWROUTER_CAP_RM_GET( _reg ) \
1208 ( ( ( _reg ) & GRSPWROUTER_CAP_RM_MASK ) >> \
1209 GRSPWROUTER_CAP_RM_SHIFT )
1210#define GRSPWROUTER_CAP_RM_SET( _reg, _val ) \
1211 ( ( ( _reg ) & ~GRSPWROUTER_CAP_RM_MASK ) | \
1212 ( ( ( _val ) << GRSPWROUTER_CAP_RM_SHIFT ) & \
1213 GRSPWROUTER_CAP_RM_MASK ) )
1214#define GRSPWROUTER_CAP_RM( _val ) \
1215 ( ( ( _val ) << GRSPWROUTER_CAP_RM_SHIFT ) & \
1216 GRSPWROUTER_CAP_RM_MASK )
1217
1218#define GRSPWROUTER_CAP_R 0x8000U
1219
1220#define GRSPWROUTER_CAP_AA 0x4000U
1221
1222#define GRSPWROUTER_CAP_AX 0x2000U
1223
1224#define GRSPWROUTER_CAP_DP 0x1000U
1225
1226#define GRSPWROUTER_CAP_ID 0x800U
1227
1228#define GRSPWROUTER_CAP_SD 0x400U
1229
1230#define GRSPWROUTER_CAP_PC_SHIFT 5
1231#define GRSPWROUTER_CAP_PC_MASK 0x3e0U
1232#define GRSPWROUTER_CAP_PC_GET( _reg ) \
1233 ( ( ( _reg ) & GRSPWROUTER_CAP_PC_MASK ) >> \
1234 GRSPWROUTER_CAP_PC_SHIFT )
1235#define GRSPWROUTER_CAP_PC_SET( _reg, _val ) \
1236 ( ( ( _reg ) & ~GRSPWROUTER_CAP_PC_MASK ) | \
1237 ( ( ( _val ) << GRSPWROUTER_CAP_PC_SHIFT ) & \
1238 GRSPWROUTER_CAP_PC_MASK ) )
1239#define GRSPWROUTER_CAP_PC( _val ) \
1240 ( ( ( _val ) << GRSPWROUTER_CAP_PC_SHIFT ) & \
1241 GRSPWROUTER_CAP_PC_MASK )
1242
1243#define GRSPWROUTER_CAP_CC_SHIFT 0
1244#define GRSPWROUTER_CAP_CC_MASK 0x1fU
1245#define GRSPWROUTER_CAP_CC_GET( _reg ) \
1246 ( ( ( _reg ) & GRSPWROUTER_CAP_CC_MASK ) >> \
1247 GRSPWROUTER_CAP_CC_SHIFT )
1248#define GRSPWROUTER_CAP_CC_SET( _reg, _val ) \
1249 ( ( ( _reg ) & ~GRSPWROUTER_CAP_CC_MASK ) | \
1250 ( ( ( _val ) << GRSPWROUTER_CAP_CC_SHIFT ) & \
1251 GRSPWROUTER_CAP_CC_MASK ) )
1252#define GRSPWROUTER_CAP_CC( _val ) \
1253 ( ( ( _val ) << GRSPWROUTER_CAP_CC_SHIFT ) & \
1254 GRSPWROUTER_CAP_CC_MASK )
1255
1267#define GRSPWROUTER_PNPVEND_VI_SHIFT 16
1268#define GRSPWROUTER_PNPVEND_VI_MASK 0xffff0000U
1269#define GRSPWROUTER_PNPVEND_VI_GET( _reg ) \
1270 ( ( ( _reg ) & GRSPWROUTER_PNPVEND_VI_MASK ) >> \
1271 GRSPWROUTER_PNPVEND_VI_SHIFT )
1272#define GRSPWROUTER_PNPVEND_VI_SET( _reg, _val ) \
1273 ( ( ( _reg ) & ~GRSPWROUTER_PNPVEND_VI_MASK ) | \
1274 ( ( ( _val ) << GRSPWROUTER_PNPVEND_VI_SHIFT ) & \
1275 GRSPWROUTER_PNPVEND_VI_MASK ) )
1276#define GRSPWROUTER_PNPVEND_VI( _val ) \
1277 ( ( ( _val ) << GRSPWROUTER_PNPVEND_VI_SHIFT ) & \
1278 GRSPWROUTER_PNPVEND_VI_MASK )
1279
1280#define GRSPWROUTER_PNPVEND_PI_SHIFT 0
1281#define GRSPWROUTER_PNPVEND_PI_MASK 0x3ffffffU
1282#define GRSPWROUTER_PNPVEND_PI_GET( _reg ) \
1283 ( ( ( _reg ) & GRSPWROUTER_PNPVEND_PI_MASK ) >> \
1284 GRSPWROUTER_PNPVEND_PI_SHIFT )
1285#define GRSPWROUTER_PNPVEND_PI_SET( _reg, _val ) \
1286 ( ( ( _reg ) & ~GRSPWROUTER_PNPVEND_PI_MASK ) | \
1287 ( ( ( _val ) << GRSPWROUTER_PNPVEND_PI_SHIFT ) & \
1288 GRSPWROUTER_PNPVEND_PI_MASK ) )
1289#define GRSPWROUTER_PNPVEND_PI( _val ) \
1290 ( ( ( _val ) << GRSPWROUTER_PNPVEND_PI_SHIFT ) & \
1291 GRSPWROUTER_PNPVEND_PI_MASK )
1292
1304#define GRSPWROUTER_PNPUVEND_VI_SHIFT 16
1305#define GRSPWROUTER_PNPUVEND_VI_MASK 0xffff0000U
1306#define GRSPWROUTER_PNPUVEND_VI_GET( _reg ) \
1307 ( ( ( _reg ) & GRSPWROUTER_PNPUVEND_VI_MASK ) >> \
1308 GRSPWROUTER_PNPUVEND_VI_SHIFT )
1309#define GRSPWROUTER_PNPUVEND_VI_SET( _reg, _val ) \
1310 ( ( ( _reg ) & ~GRSPWROUTER_PNPUVEND_VI_MASK ) | \
1311 ( ( ( _val ) << GRSPWROUTER_PNPUVEND_VI_SHIFT ) & \
1312 GRSPWROUTER_PNPUVEND_VI_MASK ) )
1313#define GRSPWROUTER_PNPUVEND_VI( _val ) \
1314 ( ( ( _val ) << GRSPWROUTER_PNPUVEND_VI_SHIFT ) & \
1315 GRSPWROUTER_PNPUVEND_VI_MASK )
1316
1317#define GRSPWROUTER_PNPUVEND_PI_SHIFT 0
1318#define GRSPWROUTER_PNPUVEND_PI_MASK 0x3ffffffU
1319#define GRSPWROUTER_PNPUVEND_PI_GET( _reg ) \
1320 ( ( ( _reg ) & GRSPWROUTER_PNPUVEND_PI_MASK ) >> \
1321 GRSPWROUTER_PNPUVEND_PI_SHIFT )
1322#define GRSPWROUTER_PNPUVEND_PI_SET( _reg, _val ) \
1323 ( ( ( _reg ) & ~GRSPWROUTER_PNPUVEND_PI_MASK ) | \
1324 ( ( ( _val ) << GRSPWROUTER_PNPUVEND_PI_SHIFT ) & \
1325 GRSPWROUTER_PNPUVEND_PI_MASK ) )
1326#define GRSPWROUTER_PNPUVEND_PI( _val ) \
1327 ( ( ( _val ) << GRSPWROUTER_PNPUVEND_PI_SHIFT ) & \
1328 GRSPWROUTER_PNPUVEND_PI_MASK )
1329
1341#define GRSPWROUTER_PNPUSN_SN_SHIFT 0
1342#define GRSPWROUTER_PNPUSN_SN_MASK 0xffffffffU
1343#define GRSPWROUTER_PNPUSN_SN_GET( _reg ) \
1344 ( ( ( _reg ) & GRSPWROUTER_PNPUSN_SN_MASK ) >> \
1345 GRSPWROUTER_PNPUSN_SN_SHIFT )
1346#define GRSPWROUTER_PNPUSN_SN_SET( _reg, _val ) \
1347 ( ( ( _reg ) & ~GRSPWROUTER_PNPUSN_SN_MASK ) | \
1348 ( ( ( _val ) << GRSPWROUTER_PNPUSN_SN_SHIFT ) & \
1349 GRSPWROUTER_PNPUSN_SN_MASK ) )
1350#define GRSPWROUTER_PNPUSN_SN( _val ) \
1351 ( ( ( _val ) << GRSPWROUTER_PNPUSN_SN_SHIFT ) & \
1352 GRSPWROUTER_PNPUSN_SN_MASK )
1353
1365#define GRSPWROUTER_PNPNETDISC_ND_SHIFT 0
1366#define GRSPWROUTER_PNPNETDISC_ND_MASK 0xffffffffU
1367#define GRSPWROUTER_PNPNETDISC_ND_GET( _reg ) \
1368 ( ( ( _reg ) & GRSPWROUTER_PNPNETDISC_ND_MASK ) >> \
1369 GRSPWROUTER_PNPNETDISC_ND_SHIFT )
1370#define GRSPWROUTER_PNPNETDISC_ND_SET( _reg, _val ) \
1371 ( ( ( _reg ) & ~GRSPWROUTER_PNPNETDISC_ND_MASK ) | \
1372 ( ( ( _val ) << GRSPWROUTER_PNPNETDISC_ND_SHIFT ) & \
1373 GRSPWROUTER_PNPNETDISC_ND_MASK ) )
1374#define GRSPWROUTER_PNPNETDISC_ND( _val ) \
1375 ( ( ( _val ) << GRSPWROUTER_PNPNETDISC_ND_SHIFT ) & \
1376 GRSPWROUTER_PNPNETDISC_ND_MASK )
1377
1389#define GRSPWROUTER_MAXPLEN_ML_SHIFT 0
1390#define GRSPWROUTER_MAXPLEN_ML_MASK 0x1ffffffU
1391#define GRSPWROUTER_MAXPLEN_ML_GET( _reg ) \
1392 ( ( ( _reg ) & GRSPWROUTER_MAXPLEN_ML_MASK ) >> \
1393 GRSPWROUTER_MAXPLEN_ML_SHIFT )
1394#define GRSPWROUTER_MAXPLEN_ML_SET( _reg, _val ) \
1395 ( ( ( _reg ) & ~GRSPWROUTER_MAXPLEN_ML_MASK ) | \
1396 ( ( ( _val ) << GRSPWROUTER_MAXPLEN_ML_SHIFT ) & \
1397 GRSPWROUTER_MAXPLEN_ML_MASK ) )
1398#define GRSPWROUTER_MAXPLEN_ML( _val ) \
1399 ( ( ( _val ) << GRSPWROUTER_MAXPLEN_ML_SHIFT ) & \
1400 GRSPWROUTER_MAXPLEN_ML_MASK )
1401
1413#define GRSPWROUTER_CREDCNT_OC_SHIFT 6
1414#define GRSPWROUTER_CREDCNT_OC_MASK 0xfc0U
1415#define GRSPWROUTER_CREDCNT_OC_GET( _reg ) \
1416 ( ( ( _reg ) & GRSPWROUTER_CREDCNT_OC_MASK ) >> \
1417 GRSPWROUTER_CREDCNT_OC_SHIFT )
1418#define GRSPWROUTER_CREDCNT_OC_SET( _reg, _val ) \
1419 ( ( ( _reg ) & ~GRSPWROUTER_CREDCNT_OC_MASK ) | \
1420 ( ( ( _val ) << GRSPWROUTER_CREDCNT_OC_SHIFT ) & \
1421 GRSPWROUTER_CREDCNT_OC_MASK ) )
1422#define GRSPWROUTER_CREDCNT_OC( _val ) \
1423 ( ( ( _val ) << GRSPWROUTER_CREDCNT_OC_SHIFT ) & \
1424 GRSPWROUTER_CREDCNT_OC_MASK )
1425
1426#define GRSPWROUTER_CREDCNT_IC_SHIFT 0
1427#define GRSPWROUTER_CREDCNT_IC_MASK 0x3fU
1428#define GRSPWROUTER_CREDCNT_IC_GET( _reg ) \
1429 ( ( ( _reg ) & GRSPWROUTER_CREDCNT_IC_MASK ) >> \
1430 GRSPWROUTER_CREDCNT_IC_SHIFT )
1431#define GRSPWROUTER_CREDCNT_IC_SET( _reg, _val ) \
1432 ( ( ( _reg ) & ~GRSPWROUTER_CREDCNT_IC_MASK ) | \
1433 ( ( ( _val ) << GRSPWROUTER_CREDCNT_IC_SHIFT ) & \
1434 GRSPWROUTER_CREDCNT_IC_MASK ) )
1435#define GRSPWROUTER_CREDCNT_IC( _val ) \
1436 ( ( ( _val ) << GRSPWROUTER_CREDCNT_IC_SHIFT ) & \
1437 GRSPWROUTER_CREDCNT_IC_MASK )
1438
1450#define GRSPWROUTER_GPO_GPO_SHIFT 0
1451#define GRSPWROUTER_GPO_GPO_MASK 0xffffffffU
1452#define GRSPWROUTER_GPO_GPO_GET( _reg ) \
1453 ( ( ( _reg ) & GRSPWROUTER_GPO_GPO_MASK ) >> \
1454 GRSPWROUTER_GPO_GPO_SHIFT )
1455#define GRSPWROUTER_GPO_GPO_SET( _reg, _val ) \
1456 ( ( ( _reg ) & ~GRSPWROUTER_GPO_GPO_MASK ) | \
1457 ( ( ( _val ) << GRSPWROUTER_GPO_GPO_SHIFT ) & \
1458 GRSPWROUTER_GPO_GPO_MASK ) )
1459#define GRSPWROUTER_GPO_GPO( _val ) \
1460 ( ( ( _val ) << GRSPWROUTER_GPO_GPO_SHIFT ) & \
1461 GRSPWROUTER_GPO_GPO_MASK )
1462
1474#define GRSPWROUTER_GPI_GPI_SHIFT 0
1475#define GRSPWROUTER_GPI_GPI_MASK 0xffffffffU
1476#define GRSPWROUTER_GPI_GPI_GET( _reg ) \
1477 ( ( ( _reg ) & GRSPWROUTER_GPI_GPI_MASK ) >> \
1478 GRSPWROUTER_GPI_GPI_SHIFT )
1479#define GRSPWROUTER_GPI_GPI_SET( _reg, _val ) \
1480 ( ( ( _reg ) & ~GRSPWROUTER_GPI_GPI_MASK ) | \
1481 ( ( ( _val ) << GRSPWROUTER_GPI_GPI_SHIFT ) & \
1482 GRSPWROUTER_GPI_GPI_MASK ) )
1483#define GRSPWROUTER_GPI_GPI( _val ) \
1484 ( ( ( _val ) << GRSPWROUTER_GPI_GPI_SHIFT ) & \
1485 GRSPWROUTER_GPI_GPI_MASK )
1486
1498#define GRSPWROUTER_RTCOMB_SR 0x80000000U
1499
1500#define GRSPWROUTER_RTCOMB_EN 0x40000000U
1501
1502#define GRSPWROUTER_RTCOMB_PR 0x20000000U
1503
1504#define GRSPWROUTER_RTCOMB_HD 0x10000000U
1505
1506#define GRSPWROUTER_RTCOMB_PE_SHIFT 1
1507#define GRSPWROUTER_RTCOMB_PE_MASK 0xffffffeU
1508#define GRSPWROUTER_RTCOMB_PE_GET( _reg ) \
1509 ( ( ( _reg ) & GRSPWROUTER_RTCOMB_PE_MASK ) >> \
1510 GRSPWROUTER_RTCOMB_PE_SHIFT )
1511#define GRSPWROUTER_RTCOMB_PE_SET( _reg, _val ) \
1512 ( ( ( _reg ) & ~GRSPWROUTER_RTCOMB_PE_MASK ) | \
1513 ( ( ( _val ) << GRSPWROUTER_RTCOMB_PE_SHIFT ) & \
1514 GRSPWROUTER_RTCOMB_PE_MASK ) )
1515#define GRSPWROUTER_RTCOMB_PE( _val ) \
1516 ( ( ( _val ) << GRSPWROUTER_RTCOMB_PE_SHIFT ) & \
1517 GRSPWROUTER_RTCOMB_PE_MASK )
1518
1519#define GRSPWROUTER_RTCOMB_PD 0x1U
1520
1531#define GRSPWROUTER_APBAREA_APB_SHIFT 0
1532#define GRSPWROUTER_APBAREA_APB_MASK 0xffffffffU
1533#define GRSPWROUTER_APBAREA_APB_GET( _reg ) \
1534 ( ( ( _reg ) & GRSPWROUTER_APBAREA_APB_MASK ) >> \
1535 GRSPWROUTER_APBAREA_APB_SHIFT )
1536#define GRSPWROUTER_APBAREA_APB_SET( _reg, _val ) \
1537 ( ( ( _reg ) & ~GRSPWROUTER_APBAREA_APB_MASK ) | \
1538 ( ( ( _val ) << GRSPWROUTER_APBAREA_APB_SHIFT ) & \
1539 GRSPWROUTER_APBAREA_APB_MASK ) )
1540#define GRSPWROUTER_APBAREA_APB( _val ) \
1541 ( ( ( _val ) << GRSPWROUTER_APBAREA_APB_SHIFT ) & \
1542 GRSPWROUTER_APBAREA_APB_MASK )
1543
1550typedef struct grspwrouter {
1551 uint32_t reserved_0_4;
1552
1556 uint32_t rtpmap[ 255 ];
1557
1558 uint32_t reserved_400_404;
1559
1563 uint32_t rtactrl[ 255 ];
1564
1568 uint32_t pctrlcfg;
1569
1573 uint32_t pctrl[ 31 ];
1574
1578 uint32_t pstscfg;
1579
1583 uint32_t psts[ 31 ];
1584
1588 uint32_t ptimer[ 32 ];
1589
1593 uint32_t pctrl2cfg;
1594
1598 uint32_t pctrl2[ 31 ];
1599
1603 uint32_t rtrcfg;
1604
1608 uint32_t tc;
1609
1613 uint32_t ver;
1614
1618 uint32_t idiv;
1619
1623 uint32_t cfgwe;
1624
1628 uint32_t prescaler;
1629
1633 uint32_t imask;
1634
1638 uint32_t ipmask;
1639
1643 uint32_t pip;
1644
1648 uint32_t icodegen;
1649
1653 uint32_t isr0;
1654
1658 uint32_t isr1;
1659
1663 uint32_t isrtimer;
1664
1668 uint32_t aitimer;
1669
1673 uint32_t isrctimer;
1674
1675 uint32_t reserved_a3c_a40;
1676
1680 uint32_t lrunstat;
1681
1685 uint32_t cap;
1686
1687 uint32_t reserved_a48_a50[ 2 ];
1688
1692 uint32_t pnpvend;
1693
1697 uint32_t pnpuvend;
1698
1702 uint32_t pnpusn;
1703
1707 uint32_t pnpnetdisc;
1708
1709 uint32_t reserved_a60_c10[ 108 ];
1710
1715
1719 uint32_t maxplen[ 32 ];
1720
1721 uint32_t reserved_e80_e84;
1722
1726 uint32_t credcnt[ 31 ];
1727
1731 uint32_t gpo[ 4 ];
1732
1736 uint32_t gpi[ 4 ];
1737
1738 uint32_t reserved_f20_1004[ 57 ];
1739
1743 uint32_t rtcomb[ 255 ];
1744
1745 uint32_t reserved_1400_2000[ 768 ];
1746
1750 uint32_t apbarea[ 1024 ];
1752
1755#ifdef __cplusplus
1756}
1757#endif
1758
1759#endif /* _GRLIB_GRSPWROUTER_REGS_H */
This structure defines the SpaceWire Router Port Statistics register block memory map.
Definition: grspwrouter-regs.h:184
uint32_t icharcnt
See Incoming character counter, ports > 0 (ICHARCNT).
Definition: grspwrouter-regs.h:193
uint32_t opktcnt
See Outgoing packet counter, ports > 0 (OPKTCNT).
Definition: grspwrouter-regs.h:198
uint32_t ocharcnt
See Outgoing character counter, ports > 0 (OCHARCNT).
Definition: grspwrouter-regs.h:188
uint32_t ipktcnt
See Incoming packet counter, ports > 0 (IPKTCNT).
Definition: grspwrouter-regs.h:203
This structure defines the SpaceWire Router register block memory map.
Definition: grspwrouter-regs.h:1550
grspwrouter_portstats portstats[31]
See SpaceWire Router Port Statistics.
Definition: grspwrouter-regs.h:1714
uint32_t credcnt[31]
See Credit counter, SpaceWire ports (CREDCNT).
Definition: grspwrouter-regs.h:1726
uint32_t ipmask
See Interrupt port mask (IPMASK).
Definition: grspwrouter-regs.h:1638
uint32_t pnpusn
See SpaceWire Plug-and-Play - Unit Serial Number (PNPUSN).
Definition: grspwrouter-regs.h:1702
uint32_t isr0
See Interrupt code distribution ISR register, interrupt 0-31 (ISR0).
Definition: grspwrouter-regs.h:1653
uint32_t pctrl2cfg
See Port control 2, port 0 (configuration port) (PCTRL2CFG).
Definition: grspwrouter-regs.h:1593
uint32_t pctrl2[31]
See Port control 2, ports > 0 (PCTRL2).
Definition: grspwrouter-regs.h:1598
uint32_t imask
See Interrupt mask (IMASK).
Definition: grspwrouter-regs.h:1633
uint32_t pstscfg
See Port status, port 0 (configuration port) (PSTSCFG).
Definition: grspwrouter-regs.h:1578
uint32_t cfgwe
See Configuration port write enable (CFGWE).
Definition: grspwrouter-regs.h:1623
uint32_t pnpuvend
See SpaceWire Plug-and-Play - Unit Vendor and Product ID (PNPUVEND).
Definition: grspwrouter-regs.h:1697
uint32_t icodegen
See Interrupt code generation (ICODEGEN).
Definition: grspwrouter-regs.h:1648
uint32_t maxplen[32]
See Maximum packet length, ports > 0 (MAXPLEN).
Definition: grspwrouter-regs.h:1719
uint32_t pnpvend
See SpaceWire Plug-and-Play - Device Vendor and Product ID (PNPVEND).
Definition: grspwrouter-regs.h:1692
uint32_t isrctimer
See Interrupt code distribution ISR change timer reload (ISRCTIMER).
Definition: grspwrouter-regs.h:1673
uint32_t tc
See Time-code (TC).
Definition: grspwrouter-regs.h:1608
uint32_t ptimer[32]
See Port timer reload (PTIMER).
Definition: grspwrouter-regs.h:1588
uint32_t pctrlcfg
See Port control, port 0 (configuration port) (PCTRLCFG).
Definition: grspwrouter-regs.h:1568
uint32_t rtrcfg
See Router configuration / status (RTRCFG).
Definition: grspwrouter-regs.h:1603
uint32_t lrunstat
See Link running status (LRUNSTAT).
Definition: grspwrouter-regs.h:1680
uint32_t apbarea[1024]
See APB address area (APBAREA).
Definition: grspwrouter-regs.h:1750
uint32_t isr1
See Interrupt code distribution ISR register, interrupt 32-63 (ISR1).
Definition: grspwrouter-regs.h:1658
uint32_t pctrl[31]
See Port control, ports > 0 (PCTRL).
Definition: grspwrouter-regs.h:1573
uint32_t rtactrl[255]
See Routing table address control, addresses 1-31 and 32-255 (RTACTRL).
Definition: grspwrouter-regs.h:1563
uint32_t aitimer
See Interrupt code distribution ACK-to-INT timer reload (AITIMER).
Definition: grspwrouter-regs.h:1668
uint32_t gpo[4]
See General purpose out, bits 0-31, 32-63, 64-95, and 96-127 (GPO).
Definition: grspwrouter-regs.h:1731
uint32_t pnpnetdisc
See SpaceWire Plug-and-Play - Port network discovery enable (PNPNETDISC).
Definition: grspwrouter-regs.h:1707
uint32_t pip
See Port interrupt pending (PIP).
Definition: grspwrouter-regs.h:1643
uint32_t rtpmap[255]
See Routing table port mapping, addresses 1-31 and 32-255 (RTPMAP).
Definition: grspwrouter-regs.h:1556
uint32_t psts[31]
See Port status, ports > 0 (PSTS).
Definition: grspwrouter-regs.h:1583
uint32_t prescaler
See Timer prescaler reload (PRESCALER).
Definition: grspwrouter-regs.h:1628
uint32_t rtcomb[255]
See Routing table, combined port mapping and address control, addresses 1-255 (RTCOMB).
Definition: grspwrouter-regs.h:1743
uint32_t idiv
See Initialization divisor (IDIV).
Definition: grspwrouter-regs.h:1618
uint32_t gpi[4]
See General purpose in, bits 0-31, 32-63, 64-95, and 96-127 (GPI).
Definition: grspwrouter-regs.h:1736
uint32_t isrtimer
See Interrupt code distribution ISR timer reload (ISRTIMER).
Definition: grspwrouter-regs.h:1663
uint32_t cap
See Capability (CAP).
Definition: grspwrouter-regs.h:1685
uint32_t ver
See Version / instance ID (VER).
Definition: grspwrouter-regs.h:1613