2018-05-06 21:58:06 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
2011-10-17 23:46:11 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2011 The Chromium OS Authors.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MIPS_CACHE_H__
|
|
|
|
#define __MIPS_CACHE_H__
|
|
|
|
|
2021-08-26 15:47:59 +00:00
|
|
|
#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
|
2016-05-27 13:28:05 +00:00
|
|
|
|
2016-11-25 22:32:22 +00:00
|
|
|
#ifndef __ASSEMBLY__
|
2016-09-21 10:18:48 +00:00
|
|
|
/**
|
|
|
|
* mips_cache_probe() - Probe the properties of the caches
|
|
|
|
*
|
|
|
|
* Call this to probe the properties such as line sizes of the caches
|
|
|
|
* present in the system, if any. This must be done before cache maintenance
|
|
|
|
* functions such as flush_cache may be called.
|
|
|
|
*/
|
|
|
|
void mips_cache_probe(void);
|
2016-11-25 22:32:22 +00:00
|
|
|
#endif
|
2016-09-21 10:18:48 +00:00
|
|
|
|
2011-10-17 23:46:11 +00:00
|
|
|
#endif /* __MIPS_CACHE_H__ */
|