Lines Matching full:mpu

13 #include <zephyr/arch/xtensa/mpu.h>
19 * @defgroup xtensa_mpu_internal_apis Xtensa Memory Protection Unit (MPU) Internal APIs
25 * @name Bit shifts and masks for MPU entry registers.
31 * Number of bits to shift for start address in MPU entry register.
33 * This is only used for aligning the value to the MPU entry register,
39 * Bit mask of start address in MPU entry register.
41 * This is only used for aligning the value to the MPU entry register,
46 /** Number of bits to shift for enable bit in MPU entry register. */
49 /** Bit mask of enable bit in MPU entry register. */
52 /** Number of bits to shift for lock bit in MPU entry register. */
55 /** Bit mask of lock bit in MPU entry register. */
58 /** Number of bits to shift for access rights in MPU entry register. */
61 /** Bit mask of access rights in MPU entry register. */
65 /** Number of bits to shift for memory type in MPU entry register. */
68 /** Bit mask of memory type in MPU entry register. */
87 * @name Bit shifts and masks for MPU PPTLB return value.
104 * Define one MPU entry of type struct xtensa_mpu_entry.
129 * This returns the bitmask of enabled MPU entries (foreground segments).
145 * This returns the enable bits for MPU entries.
161 * This writes the enable bits for MPU entries.
186 * @name MPU entry internal helper functions.
192 * @brief Return the start address encoded in the MPU entry.
194 * @param entry Pointer to the MPU entry.
205 * @brief Set the start address encoded in the MPU entry.
207 * @param entry Pointer to the MPU entry.
217 * @brief Return the lock bit encoded in the MPU entry.
219 * @param entry Pointer to the MPU entry.
231 * @brief Set the lock bit encoded in the MPU entry.
233 * @param entry Pointer to the MPU entry.
234 * @param lock True if to lock the MPU entry.
243 * @brief Return the enable bit encoded in the MPU entry.
245 * @param entry Pointer to the MPU entry.
257 * @brief Set the enable bit encoded in the MPU entry.
259 * @param entry Pointer to the MPU entry.
260 * @param en True if to enable the MPU entry.
269 * @brief Return the access rights encoded in the MPU entry.
271 * @param entry Pointer to the MPU entry.
282 * @brief Set the lock bit encoded in the MPU entry.
284 * @param entry Pointer to the MPU entry.
294 * @brief Return the memory type encoded in the MPU entry.
296 * @param entry Pointer to the MPU entry.
307 * @brief Set the memory type in the MPU entry.
309 * @param entry Pointer to the MPU entry.
319 * @brief Set both access rights and memory type of a MPU entry.
321 * @param entry Pointer to the MPU entry.
334 * @brief Set fields in MPU entry so it will be functional.
366 * @brief Test if two MPU entries have same access rights.
368 * @param entry1 MPU entry #1
369 * @param entry2 MPU entry #2.
381 * @brief Test if two MPU entries have same memory types.
383 * @param entry1 MPU entry #1.
384 * @param entry2 MPU entry #2.
396 * @brief Test if two MPU entries have same access rights and memory types.
398 * @param entry1 MPU entry #1.
399 * @param entry2 MPU entry #2.
414 * @param entry1 MPU entry #1.
415 * @param entry2 MPU entry #2.
432 * @name MPU access rights helper functions.