Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2)  * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Copyright (C) 2009 Wind River Systems Inc
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * This file is subject to the terms and conditions of the GNU General Public
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * License.  See the file "COPYING" in the main directory of this archive
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * for more details.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #ifndef _ASM_NIOS2_PGTABLE_BITS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) #define _ASM_NIOS2_PGTABLE_BITS_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  * These are actual hardware defined protection bits in the tlbacc register
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15)  * which looks like this:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17)  * 31 30 ... 26 25 24 23 22 21 20 19 18 ...  1  0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)  * ignored........  C  R  W  X  G PFN............
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define _PAGE_GLOBAL	(1<<20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define _PAGE_EXEC	(1<<21)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define _PAGE_WRITE	(1<<22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define _PAGE_READ	(1<<23)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define _PAGE_CACHED	(1<<24)	/* C: data access cacheable */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27)  * Software defined bits. They are ignored by the hardware and always read back
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28)  * as zero, but can be written as non-zero.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define _PAGE_PRESENT	(1<<25)	/* PTE contains a translation */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define _PAGE_ACCESSED	(1<<26)	/* page referenced */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define _PAGE_DIRTY	(1<<27)	/* dirty page */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #endif /* _ASM_NIOS2_PGTABLE_BITS_H */