AM62x MCU+ SDK  08.05.00
tisci_firewall.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_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 
130  struct tisci_header hdr;
131  uint16_t fwl_id;
132  uint16_t region;
134  uint32_t control;
136  uint64_t start_address;
137  uint64_t end_address;
138 } __attribute__((__packed__));
139 
148  struct tisci_header hdr;
149 } __attribute__((__packed__));
150 
169  struct tisci_header hdr;
170  uint16_t fwl_id;
171  uint16_t region;
173 } __attribute__((__packed__));
174 
205  struct tisci_header hdr;
206  uint16_t fwl_id;
207  uint16_t region;
209  uint32_t control;
211  uint64_t start_address;
212  uint64_t end_address;
213 } __attribute__((__packed__));
214 
215 
216 #ifdef __cplusplus
217 }
218 #endif
219 
220 #endif
221 
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:212
tisci_msg_fwl_set_firewall_region_req::n_permission_regs
uint32_t n_permission_regs
Definition: tisci_firewall.h:133
tisci_msg_fwl_get_firewall_region_resp::fwl_id
uint16_t fwl_id
Definition: tisci_firewall.h:206
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:205
tisci_msg_fwl_set_firewall_region_req::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:130
tisci_msg_fwl_set_firewall_region_req::start_address
uint64_t start_address
Definition: tisci_firewall.h:136
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:211
__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:95
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:135
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:131
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:208
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:129
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:209
tisci_msg_fwl_get_firewall_region_resp::region
uint16_t region
Definition: tisci_firewall.h:207
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:210
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_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:147
tisci_msg_fwl_set_firewall_region_req::control
uint32_t control
Definition: tisci_firewall.h:134
tisci_msg_fwl_get_firewall_region_resp
Response for retrieving the firewall permissions.
Definition: tisci_firewall.h:204
tisci_msg_fwl_set_firewall_region_req::region
uint16_t region
Definition: tisci_firewall.h:132
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_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:137
tisci_msg_fwl_set_firewall_region_resp::hdr
struct tisci_header hdr
Definition: tisci_firewall.h:148