MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / cachectl.h
blob39d7d9d0aa559b243c3e4d7c0ce93dc279ab0252
1 /*
2 * Copyright (C) 2004 Microtronix Datacom Ltd.
4 * All rights reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
14 * NON INFRINGEMENT. See the GNU General Public License for more
15 * details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 #ifndef _NIOS2NOMMU_CACHECTL_H
24 #define _NIOS2NOMMU_CACHECTL_H
26 /* Definitions for the cacheflush system call. */
28 #define FLUSH_SCOPE_LINE 1 /* Flush a cache line */
29 #define FLUSH_SCOPE_PAGE 2 /* Flush a page */
30 #define FLUSH_SCOPE_ALL 3 /* Flush the whole cache -- superuser only */
32 #define FLUSH_CACHE_DATA 1 /* Writeback and flush data cache */
33 #define FLUSH_CACHE_INSN 2 /* Flush instruction cache */
34 #define FLUSH_CACHE_BOTH 3 /* Flush both caches */
36 #endif /* _NIOS2NOMMU_CACHECTL_H */