AM64x MCU+ SDK  08.02.00
tisci_rm_ra.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2022 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  *
32  */
54 #ifndef RM_TISCI_RA_H
55 #define RM_TISCI_RA_H
56 
57 
61 #define TISCI_MSG_VALUE_RM_RING_ADDR_LO_VALID (1u << 0u)
62 
65 #define TISCI_MSG_VALUE_RM_RING_ADDR_HI_VALID (1u << 1u)
66 
69 #define TISCI_MSG_VALUE_RM_RING_COUNT_VALID (1u << 2u)
70 
73 #define TISCI_MSG_VALUE_RM_RING_MODE_VALID (1u << 3u)
74 
77 #define TISCI_MSG_VALUE_RM_RING_SIZE_VALID (1u << 4u)
78 
81 #define TISCI_MSG_VALUE_RM_RING_ORDER_ID_VALID (1u << 5u)
82 
85 #define TISCI_MSG_VALUE_RM_RING_VIRTID_VALID (1u << 6u)
86 
90 #define TISCI_MSG_VALUE_RM_RING_ASEL_VALID (1U << 7U)
91 
95 #define TISCI_MSG_VALUE_RM_RING_MODE_RING (0x0u)
96 
99 #define TISCI_MSG_VALUE_RM_RING_MODE_MESSAGE (0x1u)
100 
103 #define TISCI_MSG_VALUE_RM_RING_MODE_CREDENTIALS (0x2u)
104 
107 #define TISCI_MSG_VALUE_RM_RING_MODE_QM (0x3u)
108 
112 #define TISCI_MSG_VALUE_RM_RING_SIZE_4B (0x0u)
113 
116 #define TISCI_MSG_VALUE_RM_RING_SIZE_8B (0x1u)
117 
120 #define TISCI_MSG_VALUE_RM_RING_SIZE_16B (0x2u)
121 
124 #define TISCI_MSG_VALUE_RM_RING_SIZE_32B (0x3u)
125 
128 #define TISCI_MSG_VALUE_RM_RING_SIZE_64B (0x4u)
129 
132 #define TISCI_MSG_VALUE_RM_RING_SIZE_128B (0x5u)
133 
136 #define TISCI_MSG_VALUE_RM_RING_SIZE_256B (0x6u)
137 
141 #define TISCI_MSG_VALUE_RM_MON_SOURCE_VALID (1u << 0U)
142 
145 #define TISCI_MSG_VALUE_RM_MON_MODE_VALID (1u << 1U)
146 
149 #define TISCI_MSG_VALUE_RM_MON_QUEUE_VALID (1u << 2U)
150 
153 #define TISCI_MSG_VALUE_RM_MON_DATA0_VAL_VALID (1u << 3U)
154 
157 #define TISCI_MSG_VALUE_RM_MON_DATA1_VAL_VALID (1u << 4U)
158 
162 #define TISCI_MSG_VALUE_RM_MON_SRC_ELEM_CNT (0U)
163 
166 #define TISCI_MSG_VALUE_RM_MON_SRC_HEAD_PKT_SIZE (1U)
167 
170 #define TISCI_MSG_VALUE_RM_MON_SRC_ACCUM_Q_SIZE (2U)
171 
175 #define TISCI_MSG_VALUE_RM_MON_MODE_DISABLED (0U)
176 
179 #define TISCI_MSG_VALUE_RM_MON_MODE_PUSH_POP (1U)
180 
183 #define TISCI_MSG_VALUE_RM_MON_MODE_THRESHOLD (2U)
184 
187 #define TISCI_MSG_VALUE_RM_MON_MODE_WATERMARK (3U)
188 
191 #define TISCI_MSG_VALUE_RM_MON_MODE_STARVATION (4U)
192 
300  struct tisci_header hdr;
301  uint32_t valid_params;
302  uint16_t nav_id;
303  uint16_t index;
304  uint32_t addr_lo;
305  uint32_t addr_hi;
306  uint32_t count;
307  uint8_t mode;
308  uint8_t size;
309  uint8_t order_id;
310  uint16_t virtid;
311  uint8_t asel;
312 } __attribute__((__packed__));
313 
321  struct tisci_header hdr;
322 } __attribute__((__packed__));
323 
398  struct tisci_header hdr;
399  uint32_t valid_params;
400  uint16_t nav_id;
401  uint16_t index;
402  uint8_t source;
403  uint8_t mode;
404  uint16_t queue;
405  uint32_t data0_val;
406  uint32_t data1_val;
407 } __attribute__((__packed__));
408 
416  struct tisci_header hdr;
417 } __attribute__((__packed__));
418 
419 #endif /* RM_TISCI_RA_H */
420 
tisci_msg_rm_ring_mon_cfg_req::index
uint16_t index
Definition: tisci_rm_ra.h:401
tisci_msg_rm_ring_cfg_req::addr_lo
uint32_t addr_lo
Definition: tisci_rm_ra.h:304
tisci_msg_rm_ring_mon_cfg_resp
Response to configuring a ring monitor.
Definition: tisci_rm_ra.h:415
tisci_msg_rm_ring_cfg_req::count
uint32_t count
Definition: tisci_rm_ra.h:306
tisci_msg_rm_ring_mon_cfg_req::hdr
struct tisci_header hdr
Definition: tisci_rm_ra.h:398
__attribute__
struct tisci_msg_rm_ring_cfg_req __attribute__((__packed__))
tisci_msg_rm_ring_mon_cfg_req
Configures a Navigator Subsystem ring monitor. Configures the real-time registers of a Navigator Subs...
Definition: tisci_rm_ra.h:397
tisci_msg_rm_ring_mon_cfg_req::queue
uint16_t queue
Definition: tisci_rm_ra.h:404
tisci_msg_rm_ring_cfg_req::valid_params
uint32_t valid_params
Definition: tisci_rm_ra.h:301
tisci_msg_rm_ring_mon_cfg_resp::hdr
struct tisci_header hdr
Definition: tisci_rm_ra.h:416
tisci_msg_rm_ring_cfg_req::mode
uint8_t mode
Definition: tisci_rm_ra.h:307
tisci_msg_rm_ring_cfg_req::index
uint16_t index
Definition: tisci_rm_ra.h:303
tisci_header
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:89
tisci_msg_rm_ring_mon_cfg_req::data1_val
uint32_t data1_val
Definition: tisci_rm_ra.h:406
tisci_msg_rm_ring_mon_cfg_req::data0_val
uint32_t data0_val
Definition: tisci_rm_ra.h:405
tisci_msg_rm_ring_cfg_req::asel
uint8_t asel
Definition: tisci_rm_ra.h:311
tisci_msg_rm_ring_cfg_req::addr_hi
uint32_t addr_hi
Definition: tisci_rm_ra.h:305
tisci_msg_rm_ring_cfg_resp::hdr
struct tisci_header hdr
Definition: tisci_rm_ra.h:321
tisci_msg_rm_ring_cfg_req::size
uint8_t size
Definition: tisci_rm_ra.h:308
tisci_msg_rm_ring_mon_cfg_req::source
uint8_t source
Definition: tisci_rm_ra.h:402
tisci_msg_rm_ring_mon_cfg_req::mode
uint8_t mode
Definition: tisci_rm_ra.h:403
tisci_msg_rm_ring_mon_cfg_req::valid_params
uint32_t valid_params
Definition: tisci_rm_ra.h:399
tisci_msg_rm_ring_cfg_req::order_id
uint8_t order_id
Definition: tisci_rm_ra.h:309
tisci_msg_rm_ring_mon_cfg_req::nav_id
uint16_t nav_id
Definition: tisci_rm_ra.h:400
tisci_msg_rm_ring_cfg_req::virtid
uint16_t virtid
Definition: tisci_rm_ra.h:310
tisci_msg_rm_ring_cfg_req::hdr
struct tisci_header hdr
Definition: tisci_rm_ra.h:300
tisci_msg_rm_ring_cfg_resp
Response to configuring a ring.
Definition: tisci_rm_ra.h:320
tisci_msg_rm_ring_cfg_req::nav_id
uint16_t nav_id
Definition: tisci_rm_ra.h:302
tisci_msg_rm_ring_cfg_req
Configures a Navigator Subsystem ring.
Definition: tisci_rm_ra.h:299