|
AM64x MCU+ SDK
10.00.00
|
|
Go to the documentation of this file.
58 #include <drivers/soc.h>
73 #define FWL_MAX_PRIVID_SLOTS (3U)
78 #define FWL_MAX_ID (35U)
79 #define FWL_MAX_REGION (16U)
89 #define PRIVID_NONE (0U)
90 #define PRIVID_ALLOW_EVERYONE (195U)
91 #define PRIVID_DMSC (202U)
92 #define PRIVID_BLOCK_EVERYONE (197U)
93 #define PRIVID_SPROXY_PRIVATE (11U)
94 #define PRIVID_A53_NON_SECURE (1U)
95 #define PRIVID_A53_SECURE (1U)
96 #define PRIVID_M4_0_NON_SECURE (100U)
97 #define PRIVID_MAIN_0_R5_0_NONSECURE (212U)
98 #define PRIVID_MAIN_0_R5_0_SECURE (212U)
99 #define PRIVID_MAIN_0_R5_1_NONSECURE (213U)
100 #define PRIVID_MAIN_0_R5_1_SECURE (213U)
101 #define PRIVID_MAIN_1_R5_0_NONSECURE (214U)
102 #define PRIVID_MAIN_1_R5_0_SECURE (214U)
103 #define PRIVID_MAIN_1_R5_1_NONSECURE (215U)
104 #define PRIVID_MAIN_1_R5_1_SECURE (215U)
105 #define PRIVID_MAIN_0_ICSSG_0 (136U)
116 #define FWL_CONTROL_ENABLE_MASK (0xFU)
117 #define FWL_CONTROL_DISABLE (0x0U)
118 #define FWL_CONTROL_ENABLE (0xAU)
119 #define FWL_CONTROL_LOCK (0x10U)
120 #define FWL_CONTROL_BG (0x100U)
121 #define FWL_CONTROL_CACHE_MODE (0x200U)
132 #define FWL_PERM_SEC_MASK (0x00FFU)
133 #define FWL_PERM_NSEC_MASK (0xFF00U)
134 #define FWL_PERM_PRIV_MASK (0x0F0FU)
135 #define FWL_PERM_USER_MASK (0xF0F0U)
137 #define FWL_PERM_WRITE_MASK (0x1111U)
138 #define FWL_PERM_READ_MASK (0x2222U)
139 #define FWL_PERM_CACHE_MASK (0x4444U)
140 #define FWL_PERM_DEBUG_MASK (0x8888U)
141 #define FWL_PERM_DENY_ALL (0x0000U)
152 #define FWL_PERM_RW_ALL (FWL_PERM_WRITE_MASK | \
153 FWL_PERM_READ_MASK | \
154 FWL_PERM_CACHE_MASK | \
157 #define FWL_PERM_RO_ALL (FWL_PERM_READ_MASK | \
158 FWL_PERM_CACHE_MASK | \
161 #define FWL_PERM_WO_ALL (FWL_PERM_WRITE_MASK | \
162 FWL_PERM_CACHE_MASK | \
165 #define FWL_PERM_SEC_RW (FWL_PERM_SEC_MASK & \
168 #define FWL_PERM_NSEC_RW (FWL_PERM_NSEC_MASK & \
171 #define FWL_PERM_PRIV_RW (FWL_PERM_PRIV_MASK & \
174 #define FWL_PERM_USER_RW (FWL_PERM_USER_MASK & \
177 #define FWL_PERM_SEC_RO (FWL_PERM_SEC_MASK & \
180 #define FWL_PERM_NSEC_RO (FWL_PERM_NSEC_MASK & \
183 #define FWL_PERM_PRIV_RO (FWL_PERM_PRIV_MASK & \
186 #define FWL_PERM_USER_RO (FWL_PERM_USER_MASK & \
uint64_t endAddr
Definition: firewall/v0/firewall.h:210
uint32_t totalRegions
Definition: firewall/v0/firewall.h:225
uint32_t control
Definition: firewall/v0/firewall.h:204
Firewall atributes.
Definition: firewall/v0/firewall.h:221
Firewall Instance Configuration. Pointer to this object is returned as handle by driver open.
Definition: firewall/v0/firewall.h:254
#define FWL_MAX_PRIVID_SLOTS
Maximun number of privilege ID slots.
Definition: firewall/v0/firewall.h:73
void Firewall_init(void)
This function initializes the firewall module.
Firewall Region Cfg specifies the MMR configuration for the specified firewall ID.
Definition: firewall/v0/firewall.h:200
uint64_t startAddr
Definition: firewall/v0/firewall.h:208
Firewall driver Object.
Definition: firewall/v0/firewall.h:242
uint32_t firewallId
Definition: firewall/v0/firewall.h:223
Firewall_Handle handle
Definition: firewall/v0/firewall.h:244
int32_t Firewall_configureSingleRegion(uint32_t firewallId, Firewall_RegionCfg *region)
Configure firewall for a single region.
uint16_t region
Definition: tisci_firewall.h:2
int32_t Firewall_open(Firewall_Handle handle)
This function opens a given Firewall peripheral.
Firewall_RegionCfg * regionInfo
Definition: firewall/v0/firewall.h:229
int32_t Firewall_configureRegion(Firewall_Handle handle)
Intialize a firewall with multiple regions.
void Firewall_deinit(void)
This function de-initializes the firewall module.
uint32_t initRegions
Definition: firewall/v0/firewall.h:227
void Firewall_close(Firewall_Handle handle)
Function to close Firewall peripheral specified by firewall handle.
Firewall_Attrs * attrs
Definition: firewall/v0/firewall.h:256
uint32_t permissions[FWL_MAX_PRIVID_SLOTS]
Definition: tisci_firewall.h:5
uint16_t regionIndex
Definition: firewall/v0/firewall.h:202
Firewall_Object * object
Definition: firewall/v0/firewall.h:258
void * Firewall_Handle
A handle that is initialized in Firewall_open() call.
Definition: firewall/v0/firewall.h:236
uint32_t cfgDone
Definition: firewall/v0/firewall.h:246