AM62x MCU+ SDK  09.02.01
tisci_boardcfg_rm.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2024 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 TISCI_BOARD_CFG_RM_H
55 #define TISCI_BOARD_CFG_RM_H
56 
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 
63 
64 #define TISCI_BOARDCFG_RM_HOST_CFG_MAGIC_NUM (0x4C41U)
65 #define TISCI_BOARDCFG_RM_RESASG_MAGIC_NUM (0x7B25U)
66 
67 #define TISCI_BOARDCFG_RM_ABI_MAJ_VALUE (0x00)
68 #define TISCI_BOARDCFG_RM_ABI_MIN_VALUE (0x01)
69 
80  uint16_t magic;
81  uint16_t size;
82 } __attribute__((__packed__));
83 
93 } __attribute__((__packed__));
94 
168  uint8_t host_id;
169  uint8_t allowed_atype;
170  uint16_t allowed_qos;
171  uint32_t allowed_orderid;
174 } __attribute__((__packed__));
175 
176 /* \brief How many host configuration list entries */
177 #define TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES (32U)
178 
191 };
192 
207  uint16_t start_resource;
208  uint16_t num_resource;
209  uint16_t type;
210  uint8_t host_id;
211  uint8_t reserved;
212 };
213 
225  uint16_t reserved;
226 } __attribute__((__packed__));
227 
240 } __attribute__((__packed__));
241 
249 
257 
265 
276 
277 
278 #ifdef __cplusplus
279 }
280 #endif
281 
282 #endif /* TISCI_BOARD_CFG_RM_H */
283 
tisci_boardcfg_rm::host_cfg
struct tisci_boardcfg_rm_host_cfg host_cfg
Definition: tisci_boardcfg_rm.h:238
tisci_boardcfg_abi_rm_rev::tisci_boardcfg_abi_min
uint8_t tisci_boardcfg_abi_min
Definition: tisci_boardcfg_rm.h:92
TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES
#define TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES
Definition: tisci_boardcfg_rm.h:177
tisci_boardcfg_rm_host_cfg::host_cfg_entries
struct tisci_boardcfg_rm_host_cfg_entry host_cfg_entries[TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES]
Definition: tisci_boardcfg_rm.h:189
tisci_boardcfg_get_rm_resasg
const struct tisci_boardcfg_rm_resasg_entry * tisci_boardcfg_get_rm_resasg(void)
Get a pointer to the local copy of the tisci_boardcfg_rm_resasg data.
tisci_boardcfg_rm_host_cfg_entry::host_id
uint8_t host_id
Definition: tisci_boardcfg_rm.h:168
tisci_boardcfg_get_rm_resasg_size
uint16_t tisci_boardcfg_get_rm_resasg_size(void)
Get a the size of the local copy of the tisci_boardcfg_rm_resasg_entry data.
tisci_boardcfg_rm_host_cfg_entry::allowed_orderid
uint32_t allowed_orderid
Definition: tisci_boardcfg_rm.h:171
tisci_boardcfg_rm_resasg::reserved
uint16_t reserved
Definition: tisci_boardcfg_rm.h:225
tisci_boardcfg_rm_resasg
RM tisci_boardcfg resource assignment configuration.
Definition: tisci_boardcfg_rm.h:222
tisci_boardcfg_rm_resasg::subhdr
struct tisci_boardcfg_substructure_rm_header subhdr
Definition: tisci_boardcfg_rm.h:223
tisci_boardcfg_rm_resasg_entry::reserved
uint8_t reserved
Definition: tisci_boardcfg_rm.h:211
tisci_boardcfg_substructure_rm_header::magic
uint16_t magic
Definition: tisci_boardcfg_rm.h:80
tisci_boardcfg_rm::resasg
struct tisci_boardcfg_rm_resasg resasg
Definition: tisci_boardcfg_rm.h:239
tisci_boardcfg_rm_resasg_entry::num_resource
uint16_t num_resource
Definition: tisci_boardcfg_rm.h:208
tisci_boardcfg_substructure_rm_header
Contains a unique magic number for each substructure and the size of the associated superstructure fo...
Definition: tisci_boardcfg_rm.h:79
tisci_boardcfg_rm_host_cfg_entry::allowed_qos
uint16_t allowed_qos
Definition: tisci_boardcfg_rm.h:170
tisci_boardcfg_rm_resasg_entry::start_resource
uint16_t start_resource
Definition: tisci_boardcfg_rm.h:207
tisci_boardcfg_rm_host_cfg_entry::allowed_atype
uint8_t allowed_atype
Definition: tisci_boardcfg_rm.h:169
tisci_boardcfg_rm_host_cfg::subhdr
struct tisci_boardcfg_substructure_rm_header subhdr
Definition: tisci_boardcfg_rm.h:188
tisci_boardcfg_substructure_rm_header::size
uint16_t size
Definition: tisci_boardcfg_rm.h:81
tisci_boardcfg_rm_resasg_entry::type
uint16_t type
Definition: tisci_boardcfg_rm.h:209
devgrp_t
uint8_t devgrp_t
Defines the sysfw DEVGRP type. This is meant to be used in code or data structures that require disti...
Definition: sciclient.h:336
tisci_boardcfg_rm_host_cfg_entry
Resource Management host ID configuration entry describing a host's allowed system priorities as well...
Definition: tisci_boardcfg_rm.h:167
tisci_boardcfg_abi_rm_rev
Board Config data ABI version.
Definition: tisci_boardcfg_rm.h:90
tisci_boardcfg_rm::rev
struct tisci_boardcfg_abi_rm_rev rev
Definition: tisci_boardcfg_rm.h:237
tisci_boardcfg_rm_host_cfg_entry::allowed_sched_priority
uint8_t allowed_sched_priority
Definition: tisci_boardcfg_rm.h:173
tisci_boardcfg_rm_host_cfg
Resource Management host ID configuration describing a host's allowed system priorities.
Definition: tisci_boardcfg_rm.h:187
tisci_boardcfg_rm_resasg_entry
One contiguous block of any resource to be assigned to one processing entity.
Definition: tisci_boardcfg_rm.h:206
__attribute__
struct tisci_boardcfg_rm_host_cfg __attribute__
tisci_boardcfg_abi_rm_rev::tisci_boardcfg_abi_maj
uint8_t tisci_boardcfg_abi_maj
Definition: tisci_boardcfg_rm.h:91
tisci_boardcfg_rm_resasg_entry::host_id
uint8_t host_id
Definition: tisci_boardcfg_rm.h:210
tisci_boardcfg_rm_host_cfg_entry::allowed_priority
uint16_t allowed_priority
Definition: tisci_boardcfg_rm.h:172
tisci_boardcfg_rm
Resource Management configuration.
Definition: tisci_boardcfg_rm.h:236
tisci_boardcfg_get_rm_devgrp
int32_t tisci_boardcfg_get_rm_devgrp(devgrp_t *devgrp)
Get the RM device group from the local tisci_boardcfg_rm data.
tisci_boardcfg_get_rm_host_cfg
const struct tisci_boardcfg_rm_host_cfg * tisci_boardcfg_get_rm_host_cfg(void)
Get a pointer to the local copy of the tisci_boardcfg_rm_host_cfg data.
tisci_boardcfg_rm_resasg::resasg_entries_size
uint16_t resasg_entries_size
Definition: tisci_boardcfg_rm.h:224