Macros | |
| #define | PMP_ENTRY_MAX 16 |
| #define | PMA_ENTRY_MAX 16 |
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... | |
| hpm_stat_t | pmp_config_attributes (const pmp_attr_t *attrs, uint32_t num_of_entries) |
| Configure PMP Attributes (including PMPi_CFG and PMPADDRi) More... | |
| hpm_stat_t | pmp_lock_pmp_entry (uint32_t pmp_index) |
| Lock the specified PMP 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 | pma_config_attributes (const pma_attr_t *attrs, uint32_t num_of_entries) |
| Configure PMA Attributes (including PMAiCFG and PMAADDRi) 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... | |
| uint32_t | pmp_get_aligned_len (uint32_t len) |
| Get the aligned length of the PMP/PMA entry, the length is round up to next power of 2. More... | |
| #define PMA_ENTRY_MAX 16 |
| #define PMP_ENTRY_MAX 16 |
| hpm_stat_t pma_config_attributes | ( | const pma_attr_t * | attrs, |
| uint32_t | num_of_entries | ||
| ) |
Configure PMA Attributes (including PMAiCFG and PMAADDRi)
| attrs | pointer to the array of PMA attributes |
| num_of_entries | Number of entries in PMA attribute array |
| status_success | if no errors happened |
| status_invalid_argument | Invalid argument(s) detected |
| 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_attributes | ( | const pmp_attr_t * | attrs, |
| uint32_t | num_of_entries | ||
| ) |
Configure PMP Attributes (including PMPi_CFG and PMPADDRi)
| [in] | attrs | pointer to the array of PMP attributes |
| [in] | num_of_entries | Number of entries in PMP attribute array |
| status_success | if no errors happened |
| status_invalid_argument | Invalid argument(s) detected |
| 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 |
| [in] | 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 pmp_get_aligned_len | ( | uint32_t | len | ) |
Get the aligned length of the PMP/PMA entry, the length is round up to next power of 2.
| [in] | len | The length of the PMP/PMA entry |
| hpm_stat_t pmp_lock_pmp_entry | ( | uint32_t | pmp_index | ) |
Lock the specified PMP entry.
| [in] | pmp_index | PMP index |
| status_success | No error happened |
| status_fail | PMP entry has been locked already |
| status_invalid_argument | the pmp_index is out of range |
| uint32_t read_pma_addr | ( | uint32_t | idx | ) |
Read PMA address entry.
| [in] | idx | PMA address entry index, valid value is 0-15 |
| uint32_t read_pma_cfg | ( | uint32_t | idx | ) |
Read PMA configuration.
| [in] | idx | PMA entry index |
| uint32_t read_pmp_addr | ( | uint32_t | idx | ) |
Read PMP address entry.
| [in] | idx | PMP address entry index |
| uint32_t read_pmp_cfg | ( | uint32_t | idx | ) |
Read PMP configuration.
| [in] | idx | PMP entry index |
| void write_pma_addr | ( | uint32_t | value, |
| uint32_t | idx | ||
| ) |
Write PMA address to corresponding PMA_ADDR register.
| [in] | value | PMA address |
| [in] | 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.
| [in] | value | PMA configuration |
| [in] | 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.
| [in] | value | PMP address |
| [in] | 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.
| [in] | value | PMP configuration |
| [in] | idx | PMP entry index, valid value is 0-15 |