AM62Ax MCU+ SDK  11.01.00
tisci_firewall.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018-2025 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_FIREWALL_H_
55 #define TISCI_FIREWALL_H_
56 
57 #ifdef __cplusplus
58 extern "C"
59 {
60 #endif
61 
62 
63 
74  struct tisci_header hdr;
75  uint16_t fwl_id;
76  uint16_t region;
77  uint8_t owner_index;
78 } __attribute__((__packed__));
79 
96  struct tisci_header hdr;
97  uint16_t fwl_id;
98  uint16_t region;
99  uint8_t owner_index;
100  uint8_t owner_privid;
102 } __attribute__((__packed__));
103 
131  struct tisci_header hdr;
132  uint16_t fwl_id;
133  uint16_t region;
135  uint32_t control;
137  uint64_t start_address;
138  uint64_t end_address;
139 } __attribute__((__packed__));
140 
149  struct tisci_header hdr;
150 } __attribute__((__packed__));
151 
169  struct tisci_header hdr;
170  uint16_t fwl_id;
171  uint16_t region;
173 } __attribute__((__packed__));
174 
210  struct tisci_header hdr;
211  uint16_t fwl_id;
212  uint16_t region;
214  uint32_t control;
216  uint64_t start_address;
217  uint64_t end_address;
218 } __attribute__((__packed__));
219 
226  struct tisci_header hdr;
227 } __attribute__((__packed__));
228 
235  struct tisci_header hdr;
236 } __attribute__((__packed__));
237 
238 
239 #ifdef __cplusplus
240 }
241 #endif
242 
243 #endif
244 
tisci_msg_fwl_get_firewall_region_req::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:172
tisci_msg_fwl_get_firewall_region_resp::end_address
uint64_t end_address
Definition: tisci_firewall.h:217
tisci_msg_fwl_set_firewall_region_req::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:134
tisci_msg_fwl_get_firewall_region_resp::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:211
tisci_fwl_req
Message to request firewall configuration region read access to the safety core.
Definition: tisci_firewall.h:225
tisci_msg_fwl_get_firewall_region_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:169
tisci_msg_fwl_get_firewall_region_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:210
tisci_msg_fwl_set_firewall_region_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:131
tisci_msg_fwl_set_firewall_region_req::start_address
uint64_t start_address
Definition: tisci_firewall.h:137
tisci_msg_fwl_change_owner_info_req
This file contains:
Definition: tisci_firewall.h:73
tisci_msg_fwl_get_firewall_region_resp::start_address
uint64_t start_address
Definition: tisci_firewall.h:216
__attribute__
struct tisci_msg_fwl_change_owner_info_req __attribute__((__packed__))
tisci_msg_fwl_change_owner_info_resp::owner_index
uint8_t owner_index
Definition: tisci_firewall.h:99
tisci_msg_fwl_change_owner_info_resp
Response for a change owner operation.
Definition: tisci_firewall.h:95
tisci_header
Header that prefixes all TISCI messages.
Definition: tisci_protocol.h:94
tisci_msg_fwl_get_firewall_region_req::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:170
tisci_msg_fwl_set_firewall_region_req::permissions
uint32_t permissions[FWL_MAX_PRIVID_SLOTS]
Definition: tisci_firewall.h:136
tisci_msg_fwl_get_firewall_region_req
Request for retrieving the firewall permissions.
Definition: tisci_firewall.h:168
tisci_msg_fwl_set_firewall_region_req::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:132
tisci_msg_fwl_change_owner_info_req::region
uint16_t region
Definition: tisci_firewall.h:76
tisci_msg_fwl_get_firewall_region_resp::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:213
tisci_fwl_resp
Response for requesting read access of the firewall configuration region to the safety core.
Definition: tisci_firewall.h:234
tisci_msg_fwl_change_owner_info_resp::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:97
tisci_msg_fwl_get_firewall_region_req::region
uint16_t region
Definition: tisci_firewall.h:171
tisci_msg_fwl_set_firewall_region_req
Request for configuring the firewall permissions.
Definition: tisci_firewall.h:130
tisci_msg_fwl_change_owner_info_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:74
tisci_msg_fwl_get_firewall_region_resp::control
uint32_t control
Definition: tisci_firewall.h:214
tisci_msg_fwl_get_firewall_region_resp::region
uint16_t region
Definition: tisci_firewall.h:212
tisci_msg_fwl_change_owner_info_req::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:75
tisci_msg_fwl_get_firewall_region_resp::permissions
uint32_t permissions[FWL_MAX_PRIVID_SLOTS]
Definition: tisci_firewall.h:215
FWL_MAX_PRIVID_SLOTS
#define FWL_MAX_PRIVID_SLOTS
This file contains:
Definition: tisci_sec_macros.h:65
tisci_msg_fwl_change_owner_info_resp::region
uint16_t region
Definition: tisci_firewall.h:98
tisci_fwl_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:235
tisci_msg_fwl_change_owner_info_resp::owner_privid
uint8_t owner_privid
Definition: tisci_firewall.h:100
tisci_msg_fwl_set_firewall_region_resp
Response for configuring the firewall permissions.
Definition: tisci_firewall.h:148
tisci_msg_fwl_set_firewall_region_req::control
uint32_t control
Definition: tisci_firewall.h:135
tisci_msg_fwl_get_firewall_region_resp
Response for retrieving the firewall permissions.
Definition: tisci_firewall.h:209
tisci_msg_fwl_set_firewall_region_req::region
uint16_t region
Definition: tisci_firewall.h:133
tisci_msg_fwl_change_owner_info_resp::owner_permission_bits
uint16_t owner_permission_bits
Definition: tisci_firewall.h:101
tisci_msg_fwl_change_owner_info_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:96
tisci_fwl_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:226
tisci_msg_fwl_change_owner_info_req::owner_index
uint8_t owner_index
Definition: tisci_firewall.h:77
tisci_msg_fwl_set_firewall_region_req::end_address
uint64_t end_address
Definition: tisci_firewall.h:138
tisci_msg_fwl_set_firewall_region_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:149