Merge tag 'csky-for-linus-4.21' of git://github.com/c-sky/csky-linux
[sfrench/cifs-2.6.git] / arch / csky / abiv1 / inc / abi / pgtable-bits.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4 #ifndef __ASM_CSKY_PGTABLE_BITS_H
5 #define __ASM_CSKY_PGTABLE_BITS_H
6
7 /* implemented in software */
8 #define _PAGE_ACCESSED          (1<<3)
9 #define PAGE_ACCESSED_BIT       (3)
10
11 #define _PAGE_READ              (1<<1)
12 #define _PAGE_WRITE             (1<<2)
13 #define _PAGE_PRESENT           (1<<0)
14
15 #define _PAGE_MODIFIED          (1<<4)
16 #define PAGE_MODIFIED_BIT       (4)
17
18 /* implemented in hardware */
19 #define _PAGE_GLOBAL            (1<<6)
20
21 #define _PAGE_VALID             (1<<7)
22 #define PAGE_VALID_BIT          (7)
23
24 #define _PAGE_DIRTY             (1<<8)
25 #define PAGE_DIRTY_BIT          (8)
26
27 #define _PAGE_CACHE             (3<<9)
28 #define _PAGE_UNCACHE           (2<<9)
29 #define _PAGE_SO                _PAGE_UNCACHE
30
31 #define _CACHE_MASK             (7<<9)
32
33 #define _CACHE_CACHED           (_PAGE_VALID | _PAGE_CACHE)
34 #define _CACHE_UNCACHED         (_PAGE_VALID | _PAGE_UNCACHE)
35
36 #define HAVE_ARCH_UNMAPPED_AREA
37
38 #endif /* __ASM_CSKY_PGTABLE_BITS_H */