[rtems-central commit] spec: Use GRLIB definition of GRSPWROUTER

Sebastian Huber sebh at rtems.org
Fri Jul 14 09:58:52 UTC 2023


Module:    rtems-central
Branch:    master
Commit:    57715603d93b7fc61ca797b50730f087b6f06ebf
Changeset: http://git.rtems.org/rtems-central/commit/?id=57715603d93b7fc61ca797b50730f087b6f06ebf

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jul 12 15:31:55 2023 +0200

spec: Use GRLIB definition of GRSPWROUTER

Rename item to match with GRLIB naming.

Update #4842.

---

 .../{spwrmap-header.yml => grspwrouter-header.yml} |   8 +-
 spec/dev/grlib/if/grspwrouter-portstats.yml        | 124 ++++++++++
 spec/dev/grlib/if/{spwrmap.yml => grspwrouter.yml} | 255 ++++++++++++++++++---
 3 files changed, 346 insertions(+), 41 deletions(-)

diff --git a/spec/dev/grlib/if/spwrmap-header.yml b/spec/dev/grlib/if/grspwrouter-header.yml
similarity index 59%
rename from spec/dev/grlib/if/spwrmap-header.yml
rename to spec/dev/grlib/if/grspwrouter-header.yml
index 7d2473df..1587df9f 100644
--- a/spec/dev/grlib/if/spwrmap-header.yml
+++ b/spec/dev/grlib/if/grspwrouter-header.yml
@@ -1,8 +1,8 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This header file defines the SPWRMAP register block interface.
+  This header file defines the GRSPWROUTER register block interface.
 copyrights:
-- Copyright (C) 2021 embedded brains GmbH & Co. KG
+- Copyright (C) 2021, 2023 embedded brains GmbH & Co. KG
 enabled-by: true
 index-entries: []
 interface-type: header-file
@@ -10,7 +10,7 @@ links:
 - role: interface-placement
   uid: ../../if/domain
 - role: interface-ingroup
-  uid: spwrmap
-path: grlib/spwrmap-regs.h
+  uid: grspwrouter
+path: grlib/grspwrouter-regs.h
 prefix: bsps/include
 type: interface
diff --git a/spec/dev/grlib/if/grspwrouter-portstats.yml b/spec/dev/grlib/if/grspwrouter-portstats.yml
new file mode 100644
index 00000000..4e22700b
--- /dev/null
+++ b/spec/dev/grlib/if/grspwrouter-portstats.yml
@@ -0,0 +1,124 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+brief: |
+  This structure defines the ${.:/register-block-group} register block memory
+  map.
+copyrights:
+- Copyright (C) 2023 embedded brains GmbH & Co. KG
+description: null
+enabled-by: true
+identifier: RTEMSDeviceGRSPWRouterPortStats
+index-entries: []
+interface-type: register-block
+links:
+- role: interface-ingroup
+  uid: grspwrouter
+- role: interface-placement
+  uid: grspwrouter-header
+definition:
+- default:
+    count: 1
+    name: OCHARCNT
+  offset: 0x0
+  variants: []
+- default:
+    count: 1
+    name: ICHARCNT
+  offset: 0x4
+  variants: []
+- default:
+    count: 1
+    name: OPKTCNT
+  offset: 0x8
+  variants: []
+- default:
+    count: 1
+    name: IPKTCNT
+  offset: 0xc
+  variants: []
+register-prefix: grspwrouter
+register-block-group: SpaceWire Router Port Statistics
+register-block-size: 16
+registers:
+- bits:
+  - default:
+    - properties: [r, w1c]
+      brief: null
+      description: null
+      name: 'OR'
+      start: 31
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'CC'
+      start: 0
+      width: 31
+    variants: []
+  brief: |
+    Outgoing character counter, ports > 0
+  description: null
+  name: OCHARCNT
+  width: 32
+- bits:
+  - default:
+    - properties: [r, w1c]
+      brief: null
+      description: null
+      name: 'OR'
+      start: 31
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'CC'
+      start: 0
+      width: 31
+    variants: []
+  brief: |
+    Incoming character counter, ports > 0
+  description: null
+  name: ICHARCNT
+  width: 32
+- bits:
+  - default:
+    - properties: [r, w1c]
+      brief: null
+      description: null
+      name: 'OR'
+      start: 31
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'PC'
+      start: 0
+      width: 31
+    variants: []
+  brief: |
+    Outgoing packet counter, ports > 0
+  description: null
+  name: OPKTCNT
+  width: 32
+- bits:
+  - default:
+    - properties: [r, w1c]
+      brief: null
+      description: null
+      name: 'OR'
+      start: 31
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'PC'
+      start: 0
+      width: 31
+    variants: []
+  brief: |
+    Incoming packet counter, ports > 0
+  description: null
+  name: IPKTCNT
+  width: 32
+name: grspwrouter_portstats
+notes: null
+type: interface
diff --git a/spec/dev/grlib/if/spwrmap.yml b/spec/dev/grlib/if/grspwrouter.yml
similarity index 85%
rename from spec/dev/grlib/if/spwrmap.yml
rename to spec/dev/grlib/if/grspwrouter.yml
index 4ab47f1f..25e725f1 100644
--- a/spec/dev/grlib/if/spwrmap.yml
+++ b/spec/dev/grlib/if/grspwrouter.yml
@@ -1,26 +1,30 @@
 SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
 brief: |
-  This set of defines the ${.:/register-block-group} address map.
+  This structure defines the ${.:/register-block-group} register block memory
+  map.
 copyrights:
-- Copyright (C) 2021 embedded brains GmbH & Co. KG
+- Copyright (C) 2021, 2023 embedded brains GmbH & Co. KG
 description: null
 enabled-by: true
-identifier: RTEMSDeviceGRLIBSPWMAP
+identifier: RTEMSDeviceGRSPWROUTER
 index-entries: []
 interface-type: register-block
 links:
 - role: interface-ingroup
   uid: group
 - role: interface-placement
-  uid: spwrmap-header
+  uid: grspwrouter-header
+- name: PORTSTATS
+  role: register-block-include
+  uid: grspwrouter-portstats
 definition:
 - default:
-    count: 1
+    count: 255
     name: RTPMAP
   offset: 0x4
   variants: []
 - default:
-    count: 1
+    count: 255
     name: RTACTRL
   offset: 0x404
   variants: []
@@ -30,7 +34,7 @@ definition:
   offset: 0x800
   variants: []
 - default:
-    count: 1
+    count: 31
     name: PCTRL
   offset: 0x804
   variants: []
@@ -40,12 +44,12 @@ definition:
   offset: 0x880
   variants: []
 - default:
-    count: 1
+    count: 31
     name: PSTS
   offset: 0x884
   variants: []
 - default:
-    count: 1
+    count: 32
     name: PTIMER
   offset: 0x900
   variants: []
@@ -55,7 +59,7 @@ definition:
   offset: 0x980
   variants: []
 - default:
-    count: 1
+    count: 31
     name: PCTRL2
   offset: 0x984
   variants: []
@@ -161,22 +165,47 @@ definition:
   variants: []
 - default:
     count: 1
+    name: PNPNETDISC
+  offset: 0xa5c
+  variants: []
+- default:
+    count: 31
+    name: PORTSTATS
+  offset: 0xc10
+  variants: []
+- default:
+    count: 32
     name: MAXPLEN
   offset: 0xe00
   variants: []
 - default:
-    count: 1
+    count: 31
     name: CREDCNT
   offset: 0xe84
   variants: []
 - default:
-    count: 1
+    count: 4
+    name: GPO
+  offset: 0xf00
+  variants: []
+- default:
+    count: 4
+    name: GPI
+  offset: 0xf10
+  variants: []
+- default:
+    count: 255
     name: RTCOMB
   offset: 0x1004
   variants: []
+- default:
+    count: 1024
+    name: APBAREA
+  offset: 0x2000
+  variants: []
 register-prefix: null
-register-block-group: SpaceWire Remote Memory Access Protocol (RMAP)
-register-block-size: 4104
+register-block-group: SpaceWire Router
+register-block-size: 12288
 registers:
 - bits:
   - default:
@@ -185,7 +214,7 @@ registers:
       description: null
       name: 'PE'
       start: 1
-      width: 12
+      width: 31
     - properties: [r, w]
       brief: null
       description: null
@@ -194,7 +223,7 @@ registers:
       width: 1
     variants: []
   brief: |
-    Routing table port mapping, addresses 1-12 and 32-255
+    Routing table port mapping, addresses 1-31 and 32-255
   description: null
   name: RTPMAP
   width: 32
@@ -226,7 +255,7 @@ registers:
       width: 1
     variants: []
   brief: |
-    Routing table address control, addresses 1-12 and 32-255
+    Routing table address control, addresses 1-31 and 32-255
   description: null
   name: RTACTRL
   width: 32
@@ -264,6 +293,12 @@ registers:
       name: 'RD'
       start: 24
       width: 8
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'RES'
+      start: 22
+      width: 2
     - properties: [r, w]
       brief: null
       description: null
@@ -312,6 +347,24 @@ registers:
       name: 'ET'
       start: 14
       width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'NF'
+      start: 13
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'PS'
+      start: 12
+      width: 1
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'BE'
+      start: 11
+      width: 1
     - properties: [r, w]
       brief: null
       description: null
@@ -348,6 +401,12 @@ registers:
       name: 'TE'
       start: 5
       width: 1
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 4
+      width: 1
     - properties: [r, w]
       brief: null
       description: null
@@ -374,7 +433,7 @@ registers:
       width: 1
     variants: []
   brief: |
-    Port control, ports 1-12 (SpaceWire ports and AMBA ports)
+    Port control, ports > 0
   description: null
   name: PCTRL
   width: 32
@@ -434,6 +493,12 @@ registers:
       name: 'EC'
       start: 20
       width: 4
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 19
+      width: 1
     - properties: [r, w1c]
       brief: null
       description: null
@@ -452,6 +517,12 @@ registers:
       name: 'IP'
       start: 7
       width: 5
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'RES'
+      start: 5
+      width: 2
     - properties: [r, w]
       brief: null
       description: null
@@ -520,6 +591,12 @@ registers:
       name: 'AC'
       start: 20
       width: 1
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'AP'
+      start: 19
+      width: 1
     - properties: [r, w1c]
       brief: null
       description: null
@@ -600,7 +677,7 @@ registers:
       width: 1
     variants: []
   brief: |
-    Port status, ports 1-12 (SpaceWire ports and AMBA ports)
+    Port status, ports > 0
   description: null
   name: PSTS
   width: 32
@@ -611,10 +688,10 @@ registers:
       description: null
       name: 'RL'
       start: 0
-      width: 16
+      width: 10
     variants: []
   brief: |
-    Port timer reload, ports 0-12
+    Port timer reload
   description: null
   name: PTIMER
   width: 32
@@ -670,6 +747,12 @@ registers:
       name: 'UR'
       start: 14
       width: 1
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 13
+      width: 1
     - properties: [r, w]
       brief: null
       description: null
@@ -708,7 +791,7 @@ registers:
       width: 1
     variants: []
   brief: |
-    Port control 2, ports 1-12 (SpaceWire ports and AMBA ports)
+    Port control 2, ports > 0
   description: null
   name: PCTRL2
   width: 32
@@ -726,6 +809,18 @@ registers:
       name: 'AP'
       start: 22
       width: 5
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'FP'
+      start: 17
+      width: 5
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 16
+      width: 1
     - properties: [r]
       brief: null
       description: null
@@ -786,6 +881,12 @@ registers:
       name: 'EE'
       start: 6
       width: 1
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 5
+      width: 1
     - properties: [r, w]
       brief: null
       description: null
@@ -801,7 +902,7 @@ registers:
     - properties: [r, w1c]
       brief: null
       description: null
-      name: 'ME'
+      name: 'RM'
       start: 2
       width: 1
     - properties: [r]
@@ -921,7 +1022,7 @@ registers:
       description: null
       name: 'RL'
       start: 0
-      width: 16
+      width: 32
     variants: []
   brief: |
     Timer prescaler reload
@@ -1060,20 +1161,20 @@ registers:
       brief: null
       description: null
       name: 'TE'
-      start: 17
+      start: 0
       width: 1
     - properties: [r, w]
       brief: null
       description: null
       name: 'EN'
-      start: 16
+      start: 17
       width: 1
     - properties: [r, w]
       brief: null
       description: null
       name: 'IN'
-      start: 0
-      width: 6
+      start: 6
+      width: 10
     variants: []
   brief: |
     Interrupt code generation
@@ -1115,7 +1216,7 @@ registers:
       description: null
       name: 'RL'
       start: 0
-      width: 16
+      width: 32
     variants: []
   brief: |
     Interrupt code distribution ISR timer reload
@@ -1129,7 +1230,7 @@ registers:
       description: null
       name: 'RL'
       start: 0
-      width: 16
+      width: 32
     variants: []
   brief: |
     Interrupt code distribution ACK-to-INT timer reload
@@ -1158,6 +1259,12 @@ registers:
       name: 'LR'
       start: 1
       width: 31
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 0
+      width: 1
     variants: []
   brief: |
     Link running status
@@ -1172,12 +1279,24 @@ registers:
       name: 'AF'
       start: 24
       width: 2
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 23
+      width: 1
     - properties: [r]
       brief: null
       description: null
       name: 'PF'
       start: 20
       width: 3
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'R'
+      start: 19
+      width: 1
     - properties: [r]
       brief: null
       description: null
@@ -1187,7 +1306,13 @@ registers:
     - properties: [r]
       brief: null
       description: null
-      name: 'AS'
+      name: 'R'
+      start: 15
+      width: 1
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'AA'
       start: 14
       width: 1
     - properties: [r]
@@ -1245,7 +1370,7 @@ registers:
       description: null
       name: 'PI'
       start: 0
-      width: 16
+      width: 26
     variants: []
   brief: |
     SpaceWire Plug-and-Play - Device Vendor and Product ID
@@ -1265,7 +1390,7 @@ registers:
       description: null
       name: 'PI'
       start: 0
-      width: 16
+      width: 26
     variants: []
   brief: |
     SpaceWire Plug-and-Play - Unit Vendor and Product ID
@@ -1286,6 +1411,20 @@ registers:
   description: null
   name: PNPUSN
   width: 32
+- bits:
+  - default:
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'ND'
+      start: 0
+      width: 32
+    variants: []
+  brief: |
+    SpaceWire Plug-and-Play - Port network discovery enable
+  description: null
+  name: PNPNETDISC
+  width: 32
 - bits:
   - default:
     - properties: [r, w]
@@ -1296,7 +1435,7 @@ registers:
       width: 25
     variants: []
   brief: |
-    Maximum packet length, ports 0-12
+    Maximum packet length, ports > 0
   description: null
   name: MAXPLEN
   width: 32
@@ -1316,10 +1455,38 @@ registers:
       width: 6
     variants: []
   brief: |
-    Credit counter, ports 1-8
+    Credit counter, SpaceWire ports
   description: null
   name: CREDCNT
   width: 32
+- bits:
+  - default:
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'GPO'
+      start: 0
+      width: 32
+    variants: []
+  brief: |
+    General purpose out, bits 0-31, 32-63, 64-95, and 96-127
+  description: null
+  name: GPO
+  width: 32
+- bits:
+  - default:
+    - properties: [r]
+      brief: null
+      description: null
+      name: 'GPI'
+      start: 0
+      width: 32
+    variants: []
+  brief: |
+    General purpose in, bits 0-31, 32-63, 64-95, and 96-127
+  description: null
+  name: GPI
+  width: 32
 - bits:
   - default:
     - properties: [r, w]
@@ -1351,7 +1518,7 @@ registers:
       description: null
       name: 'PE'
       start: 1
-      width: 19
+      width: 27
     - properties: [r, w]
       brief: null
       description: null
@@ -1364,6 +1531,20 @@ registers:
   description: null
   name: RTCOMB
   width: 32
-name: spwrmap
+- bits:
+  - default:
+    - properties: [r, w]
+      brief: null
+      description: null
+      name: 'APB'
+      start: 0
+      width: 32
+    variants: []
+  brief: |
+    APB address area
+  description: null
+  name: APBAREA
+  width: 32
+name: grspwrouter
 notes: null
 type: interface



More information about the vc mailing list