adding hcd_dcache_clean/hcd_dcache_invalidate

This commit is contained in:
hathach
2023-05-17 16:14:35 +07:00
parent a9aa0e3a1a
commit eb89df4115
4 changed files with 41 additions and 0 deletions

View File

@@ -104,6 +104,16 @@ typedef struct
uint8_t speed;
} hcd_devtree_info_t;
//--------------------------------------------------------------------+
// Memory API
//--------------------------------------------------------------------+
// clean/flush data cache: write cache -> memory
void hcd_dcache_clean(void* addr, uint32_t data_size) TU_ATTR_WEAK;
// invalidate data cache: mark cache as invalid, next read will read from memory
void hcd_dcache_invalidate(void* addr, uint32_t data_size) TU_ATTR_WEAK;
//--------------------------------------------------------------------+
// Controller API
//--------------------------------------------------------------------+