diff options
| author | R <[email protected]> | 2025-09-12 22:16:15 +0100 |
|---|---|---|
| committer | R <[email protected]> | 2025-09-12 22:17:10 +0100 |
| commit | 2d979ee4a9e7de6b956c373842e8c81c2e6382b4 (patch) | |
| tree | 3c21955a2734efc12a35caa949ee00ee209dfdc5 /src | |
| parent | 5fb3c09963bca362e535788e289d4b3518da5973 (diff) | |
ohci: Add functions used for explicit cache operations
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/ohci/ohci.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/portable/ohci/ohci.c b/src/portable/ohci/ohci.c index 81091c9a7..9450b8d0e 100644 --- a/src/portable/ohci/ohci.c +++ b/src/portable/ohci/ohci.c @@ -144,6 +144,15 @@ enum { }; //--------------------------------------------------------------------+ +// Support for explicit D-cache operations +//--------------------------------------------------------------------+ +TU_ATTR_WEAK bool hcd_dcache_clean(void const* addr, uint32_t data_size) { (void) addr; (void) data_size; return true; } +TU_ATTR_WEAK bool hcd_dcache_invalidate(void const* addr, uint32_t data_size) { (void) addr; (void) data_size; return true; } +#ifndef hcd_dcache_uncached +#define hcd_dcache_uncached(x) (x) +#endif + +//--------------------------------------------------------------------+ // INTERNAL OBJECT & FUNCTION DECLARATION //--------------------------------------------------------------------+ CFG_TUH_MEM_SECTION TU_ATTR_ALIGNED(256) static ohci_data_t ohci_data; |
