AM64x MCU+ SDK  08.02.00
tisci_boardcfg_rm.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 TISCI_BOARD_CFG_RM_H
55 #define TISCI_BOARD_CFG_RM_H
56 
57 
58 #define TISCI_BOARDCFG_RM_HOST_CFG_MAGIC_NUM (0x4C41U)
59 #define TISCI_BOARDCFG_RM_RESASG_MAGIC_NUM (0x7B25U)
60 
61 #define TISCI_BOARDCFG_RM_ABI_MAJ_VALUE (0x00)
62 #define TISCI_BOARDCFG_RM_ABI_MIN_VALUE (0x01)
63 
74  uint16_t magic;
75  uint16_t size;
76 } __attribute__((__packed__));
77 
87 } __attribute__((__packed__));
88 
162  uint8_t host_id;
163  uint8_t allowed_atype;
164  uint16_t allowed_qos;
165  uint32_t allowed_orderid;
168 } __attribute__((__packed__));
169 
170 /* \brief How many host configuration list entries */
171 #define TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES (32U)
172 
185 };
186 
201  uint16_t start_resource;
202  uint16_t num_resource;
203  uint16_t type;
204  uint8_t host_id;
205  uint8_t reserved;
206 };
207 
219  uint16_t reserved;
220 } __attribute__((__packed__));
221 
234 } __attribute__((__packed__));
235 
243 
251 
259 
270 
271 #endif /* TISCI_BOARD_CFG_RM_H */
272 
tisci_boardcfg_rm::host_cfg
struct tisci_boardcfg_rm_host_cfg host_cfg
Definition: tisci_boardcfg_rm.h:232
tisci_boardcfg_abi_rm_rev::tisci_boardcfg_abi_min
uint8_t tisci_boardcfg_abi_min
Definition: tisci_boardcfg_rm.h:86
TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES
#define TISCI_BOARDCFG_RM_HOST_CFG_ENTRIES
Definition: tisci_boardcfg_rm.h:171
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:183
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:162
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:165
tisci_boardcfg_rm_resasg::reserved
uint16_t reserved
Definition: tisci_boardcfg_rm.h:219
tisci_boardcfg_rm_resasg
RM tisci_boardcfg resource assignment configuration.
Definition: tisci_boardcfg_rm.h:216
tisci_boardcfg_rm_resasg::subhdr
struct tisci_boardcfg_substructure_rm_header subhdr
Definition: tisci_boardcfg_rm.h:217
tisci_boardcfg_rm_resasg_entry::reserved
uint8_t reserved
Definition: tisci_boardcfg_rm.h:205
tisci_boardcfg_substructure_rm_header::magic
uint16_t magic
Definition: tisci_boardcfg_rm.h:74
tisci_boardcfg_rm::resasg
struct tisci_boardcfg_rm_resasg resasg
Definition: tisci_boardcfg_rm.h:233
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:237
tisci_boardcfg_rm_resasg_entry::num_resource
uint16_t num_resource
Definition: tisci_boardcfg_rm.h:202
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:73
tisci_boardcfg_rm_host_cfg_entry::allowed_qos
uint16_t allowed_qos
Definition: tisci_boardcfg_rm.h:164
tisci_boardcfg_rm_resasg_entry::start_resource
uint16_t start_resource
Definition: tisci_boardcfg_rm.h:201
tisci_boardcfg_rm_host_cfg_entry::allowed_atype
uint8_t allowed_atype
Definition: tisci_boardcfg_rm.h:163
tisci_boardcfg_rm_host_cfg::subhdr
struct tisci_boardcfg_substructure_rm_header subhdr
Definition: tisci_boardcfg_rm.h:182
tisci_boardcfg_substructure_rm_header::size
uint16_t size
Definition: tisci_boardcfg_rm.h:75
tisci_boardcfg_rm_resasg_entry::type
uint16_t type
Definition: tisci_boardcfg_rm.h:203
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:161
tisci_boardcfg_abi_rm_rev
Board Config data ABI version.
Definition: tisci_boardcfg_rm.h:84
tisci_boardcfg_rm::rev
struct tisci_boardcfg_abi_rm_rev rev
Definition: tisci_boardcfg_rm.h:231
tisci_boardcfg_rm_host_cfg_entry::allowed_sched_priority
uint8_t allowed_sched_priority
Definition: tisci_boardcfg_rm.h:167
tisci_boardcfg_rm_host_cfg
Resource Management host ID configuration describing a host's allowed system priorities.
Definition: tisci_boardcfg_rm.h:181
tisci_boardcfg_rm_resasg_entry
One contiguous block of any resource to be assigned to one processing entity.
Definition: tisci_boardcfg_rm.h:200
__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:85
tisci_boardcfg_rm_resasg_entry::host_id
uint8_t host_id
Definition: tisci_boardcfg_rm.h:204
tisci_boardcfg_rm_host_cfg_entry::allowed_priority
uint16_t allowed_priority
Definition: tisci_boardcfg_rm.h:166
tisci_boardcfg_rm
Resource Management configuration.
Definition: tisci_boardcfg_rm.h:230
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:218