AM62x MCU+ SDK  10.01.00
tisci_firewall.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018-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_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 
132  struct tisci_header hdr;
133  uint16_t fwl_id;
134  uint16_t region;
136  uint32_t control;
138  uint64_t start_address;
139  uint64_t end_address;
140 } __attribute__((__packed__));
141 
150  struct tisci_header hdr;
151 } __attribute__((__packed__));
152 
171  struct tisci_header hdr;
172  uint16_t fwl_id;
173  uint16_t region;
175 } __attribute__((__packed__));
176 
209  struct tisci_header hdr;
210  uint16_t fwl_id;
211  uint16_t region;
213  uint32_t control;
215  uint64_t start_address;
216  uint64_t end_address;
217 } __attribute__((__packed__));
218 
225  struct tisci_header hdr;
226 } __attribute__((__packed__));
227 
234  struct tisci_header hdr;
235 } __attribute__((__packed__));
236 
237 
238 #ifdef __cplusplus
239 }
240 #endif
241 
242 #endif
243 
tisci_msg_fwl_get_firewall_region_req::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:174
tisci_msg_fwl_get_firewall_region_resp::end_address
uint64_t end_address
Definition: tisci_firewall.h:216
tisci_msg_fwl_set_firewall_region_req::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:135
tisci_msg_fwl_get_firewall_region_resp::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:210
tisci_fwl_req
Message to request firewall configuration region read access to the safety core.
Definition: tisci_firewall.h:224
tisci_msg_fwl_get_firewall_region_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:171
tisci_msg_fwl_get_firewall_region_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:209
tisci_msg_fwl_set_firewall_region_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:132
tisci_msg_fwl_set_firewall_region_req::start_address
uint64_t start_address
Definition: tisci_firewall.h:138
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:215
__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:172
tisci_msg_fwl_set_firewall_region_req::permissions
uint32_t permissions[FWL_MAX_PRIVID_SLOTS]
Definition: tisci_firewall.h:137
tisci_msg_fwl_get_firewall_region_req
Request for retrieving the firewall permissions.
Definition: tisci_firewall.h:170
tisci_msg_fwl_set_firewall_region_req::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:133
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:212
tisci_fwl_resp
Response for requesting read access of the firewall configuration region to the safety core.
Definition: tisci_firewall.h:233
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:173
tisci_msg_fwl_set_firewall_region_req
Request for configuring the firewall permissions.
Definition: tisci_firewall.h:131
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:213
tisci_msg_fwl_get_firewall_region_resp::region
uint16_t region
Definition: tisci_firewall.h:211
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:214
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:234
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:149
tisci_msg_fwl_set_firewall_region_req::control
uint32_t control
Definition: tisci_firewall.h:136
tisci_msg_fwl_get_firewall_region_resp
Response for retrieving the firewall permissions.
Definition: tisci_firewall.h:208
tisci_msg_fwl_set_firewall_region_req::region
uint16_t region
Definition: tisci_firewall.h:134
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:225
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:139
tisci_msg_fwl_set_firewall_region_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:150