summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-05-17 16:14:35 +0700
committerhathach <[email protected]>2023-05-17 16:14:35 +0700
commiteb89df411540cb8cf5323991516a45590fa0b81d (patch)
treedea783ba393e7a6acf3cd1a2c549308762b2013b /src/host
parenta9aa0e3a1a9323df16c91d7705aad480033f962a (diff)
adding hcd_dcache_clean/hcd_dcache_invalidate
Diffstat (limited to 'src/host')
-rw-r--r--src/host/hcd.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host/hcd.h b/src/host/hcd.h
index f4e76f9ef..38c89a1d2 100644
--- a/src/host/hcd.h
+++ b/src/host/hcd.h
@@ -105,6 +105,16 @@ typedef struct
} 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
//--------------------------------------------------------------------+