powerpc: remove CONFIG_PCI_QSPAN
[linux/fpc-iii.git] / arch / csky / abiv1 / inc / abi / pgtable-bits.h
blob455075b5db0da5391a8d50b7d1d18409b613ab11
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
4 #ifndef __ASM_CSKY_PGTABLE_BITS_H
5 #define __ASM_CSKY_PGTABLE_BITS_H
7 /* implemented in software */
8 #define _PAGE_ACCESSED (1<<3)
9 #define PAGE_ACCESSED_BIT (3)
11 #define _PAGE_READ (1<<1)
12 #define _PAGE_WRITE (1<<2)
13 #define _PAGE_PRESENT (1<<0)
15 #define _PAGE_MODIFIED (1<<4)
16 #define PAGE_MODIFIED_BIT (4)
18 /* implemented in hardware */
19 #define _PAGE_GLOBAL (1<<6)
21 #define _PAGE_VALID (1<<7)
22 #define PAGE_VALID_BIT (7)
24 #define _PAGE_DIRTY (1<<8)
25 #define PAGE_DIRTY_BIT (8)
27 #define _PAGE_CACHE (3<<9)
28 #define _PAGE_UNCACHE (2<<9)
30 #define _CACHE_MASK (7<<9)
32 #define _CACHE_CACHED (_PAGE_VALID | _PAGE_CACHE)
33 #define _CACHE_UNCACHED (_PAGE_VALID | _PAGE_UNCACHE)
35 #define HAVE_ARCH_UNMAPPED_AREA
37 #endif /* __ASM_CSKY_PGTABLE_BITS_H */