1*e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2f4a8dSVineet Gupta /* 38c2f4a8dSVineet Gupta * Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 48c2f4a8dSVineet Gupta * 58c2f4a8dSVineet Gupta * This program is free software; you can redistribute it and/or modify 68c2f4a8dSVineet Gupta * it under the terms of the GNU General Public License version 2 as 78c2f4a8dSVineet Gupta * published by the Free Software Foundation. 88c2f4a8dSVineet Gupta */ 98c2f4a8dSVineet Gupta 108c2f4a8dSVineet Gupta #ifndef __ARC_ASM_CACHECTL_H 118c2f4a8dSVineet Gupta #define __ARC_ASM_CACHECTL_H 128c2f4a8dSVineet Gupta 138c2f4a8dSVineet Gupta /* 148c2f4a8dSVineet Gupta * ARC ABI flags defined for Android's finegrained cacheflush requirements 158c2f4a8dSVineet Gupta */ 168c2f4a8dSVineet Gupta #define CF_I_INV 0x0002 178c2f4a8dSVineet Gupta #define CF_D_FLUSH 0x0010 188c2f4a8dSVineet Gupta #define CF_D_FLUSH_INV 0x0020 198c2f4a8dSVineet Gupta 208c2f4a8dSVineet Gupta #define CF_DEFAULT (CF_I_INV | CF_D_FLUSH) 218c2f4a8dSVineet Gupta 228c2f4a8dSVineet Gupta /* 238c2f4a8dSVineet Gupta * Standard flags expected by cacheflush system call users 248c2f4a8dSVineet Gupta */ 258c2f4a8dSVineet Gupta #define ICACHE CF_I_INV 268c2f4a8dSVineet Gupta #define DCACHE CF_D_FLUSH 278c2f4a8dSVineet Gupta #define BCACHE (CF_I_INV | CF_D_FLUSH) 288c2f4a8dSVineet Gupta 298c2f4a8dSVineet Gupta #endif 30