162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Based on arch/arm/include/asm/page.h 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 1995-2003 Russell King 662306a36Sopenharmony_ci * Copyright (C) 2017 ARM Ltd. 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci#ifndef __ASM_PAGE_DEF_H 962306a36Sopenharmony_ci#define __ASM_PAGE_DEF_H 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#include <linux/const.h> 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci/* PAGE_SHIFT determines the page size */ 1462306a36Sopenharmony_ci#define PAGE_SHIFT CONFIG_ARM64_PAGE_SHIFT 1562306a36Sopenharmony_ci#define PAGE_SIZE (_AC(1, UL) << PAGE_SHIFT) 1662306a36Sopenharmony_ci#define PAGE_MASK (~(PAGE_SIZE-1)) 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci#endif /* __ASM_PAGE_DEF_H */ 19