Functions | |
| uint32_t | read_pmp_cfg (uint32_t idx) |
| Read PMP configuration. More... | |
| void | write_pmp_cfg (uint32_t value, uint32_t idx) |
| Write PMP Configuration to corresponding PMP_CFG register. More... | |
| void | write_pmp_addr (uint32_t value, uint32_t idx) |
| Write PMP address to corresponding PMP_ADDR register. More... | |
| uint32_t | read_pmp_addr (uint32_t idx) |
| Read PMP address entry. More... | |
| uint32_t | read_pma_cfg (uint32_t idx) |
| Read PMA configuration. More... | |
| void | write_pma_cfg (uint32_t value, uint32_t idx) |
| Write PMA Configuration to corresponding PMA_CFG register. More... | |
| void | write_pma_addr (uint32_t value, uint32_t idx) |
| Write PMA address to corresponding PMA_ADDR register. More... | |
| uint32_t | read_pma_addr (uint32_t idx) |
| Read PMA address entry. More... | |
| hpm_stat_t | pmp_config_entry (const pmp_entry_t *entry, uint32_t entry_index) |
| Configure PMP and PMA for specified PMP/PMA entry. More... | |
| hpm_stat_t | pmp_config (const pmp_entry_t *entry, uint32_t num_of_entries) |
| Configure PMP and PMA based on the PMP entry list. More... | |
| void | pmp_disable (void) |
| Disable PMP and PMA. More... | |
| hpm_stat_t pmp_config | ( | const pmp_entry_t * | entry, |
| uint32_t | num_of_entries | ||
| ) |
Configure PMP and PMA based on the PMP entry list.
| entry | start of the PMP entry list |
| num_of_entries | Number of entries in the PMP entry list |
| status_invalid_argument | Invalid Arguments were detected |
| status_success | Configuration completed without errors |
| hpm_stat_t pmp_config_entry | ( | const pmp_entry_t * | entry, |
| uint32_t | entry_index | ||
| ) |
Configure PMP and PMA for specified PMP/PMA entry.
| [in] | entry | PMP entry |
| entry_index | PMP/PMA entry index |
| status_invalid_argument | Invalid Arguments were detected |
| status_success | Configuration completed without errors |
| void pmp_disable | ( | void | ) |
Disable PMP and PMA.
| uint32_t read_pma_addr | ( | uint32_t | idx | ) |
Read PMA address entry.
| idx | PMA address entry index, valid value is 0-15 |
| uint32_t read_pma_cfg | ( | uint32_t | idx | ) |
Read PMA configuration.
| idx | PMA entry index |
| uint32_t read_pmp_addr | ( | uint32_t | idx | ) |
Read PMP address entry.
| idx | PMP address entry index |
| uint32_t read_pmp_cfg | ( | uint32_t | idx | ) |
Read PMP configuration.
| idx | PMP entry index |
| void write_pma_addr | ( | uint32_t | value, |
| uint32_t | idx | ||
| ) |
Write PMA address to corresponding PMA_ADDR register.
| value | PMA address |
| idx | PMA address entry index, valid value is 0-15 |
| void write_pma_cfg | ( | uint32_t | value, |
| uint32_t | idx | ||
| ) |
Write PMA Configuration to corresponding PMA_CFG register.
| value | PMA configuration |
| idx | PMA entry index, valid value is 0-15 |
| void write_pmp_addr | ( | uint32_t | value, |
| uint32_t | idx | ||
| ) |
Write PMP address to corresponding PMP_ADDR register.
| value | PMP address |
| idx | PMP address entry index, valid value is 0-15 |
| void write_pmp_cfg | ( | uint32_t | value, |
| uint32_t | idx | ||
| ) |
Write PMP Configuration to corresponding PMP_CFG register.
| value | PMP configuration |
| idx | PMP entry index, valid value is 0-15 |