Path: blob/master/arch/unicore32/include/asm/pgtable-hwdef.h
10818 views
/*1* linux/arch/unicore32/include/asm/pgtable-hwdef.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/11#ifndef __UNICORE_PGTABLE_HWDEF_H__12#define __UNICORE_PGTABLE_HWDEF_H__1314/*15* Hardware page table definitions.16*17* + Level 1 descriptor (PMD)18* - common19*/20#define PMD_TYPE_MASK (3 << 0)21#define PMD_TYPE_TABLE (0 << 0)22/*#define PMD_TYPE_LARGE (1 << 0) */23#define PMD_TYPE_INVALID (2 << 0)24#define PMD_TYPE_SECT (3 << 0)2526#define PMD_PRESENT (1 << 2)27#define PMD_YOUNG (1 << 3)2829/*#define PMD_SECT_DIRTY (1 << 4) */30#define PMD_SECT_CACHEABLE (1 << 5)31#define PMD_SECT_EXEC (1 << 6)32#define PMD_SECT_WRITE (1 << 7)33#define PMD_SECT_READ (1 << 8)3435/*36* + Level 2 descriptor (PTE)37* - common38*/39#define PTE_TYPE_MASK (3 << 0)40#define PTE_TYPE_SMALL (0 << 0)41#define PTE_TYPE_MIDDLE (1 << 0)42#define PTE_TYPE_LARGE (2 << 0)43#define PTE_TYPE_INVALID (3 << 0)4445#define PTE_PRESENT (1 << 2)46#define PTE_FILE (1 << 3) /* only when !PRESENT */47#define PTE_YOUNG (1 << 3)48#define PTE_DIRTY (1 << 4)49#define PTE_CACHEABLE (1 << 5)50#define PTE_EXEC (1 << 6)51#define PTE_WRITE (1 << 7)52#define PTE_READ (1 << 8)5354#endif555657