18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Based on arch/arm/include/asm/page.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1995-2003 Russell King 68c2ecf20Sopenharmony_ci * Copyright (C) 2017 ARM Ltd. 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci#ifndef __ASM_PAGE_DEF_H 98c2ecf20Sopenharmony_ci#define __ASM_PAGE_DEF_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#include <linux/const.h> 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* PAGE_SHIFT determines the page size */ 148c2ecf20Sopenharmony_ci#define PAGE_SHIFT CONFIG_ARM64_PAGE_SHIFT 158c2ecf20Sopenharmony_ci#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 168c2ecf20Sopenharmony_ci#define PAGE_MASK (~(PAGE_SIZE-1)) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#endif /* __ASM_PAGE_DEF_H */ 19