162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci#ifndef __ASM_CSKY_MEMORY_H 462306a36Sopenharmony_ci#define __ASM_CSKY_MEMORY_H 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#include <linux/compiler.h> 762306a36Sopenharmony_ci#include <linux/const.h> 862306a36Sopenharmony_ci#include <linux/types.h> 962306a36Sopenharmony_ci#include <linux/sizes.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci#define FIXADDR_TOP _AC(0xffffc000, UL) 1262306a36Sopenharmony_ci#define PKMAP_BASE _AC(0xff800000, UL) 1362306a36Sopenharmony_ci#define VMALLOC_START (PAGE_OFFSET + LOWMEM_LIMIT + (PAGE_SIZE * 8)) 1462306a36Sopenharmony_ci#define VMALLOC_END (PKMAP_BASE - (PAGE_SIZE * 2)) 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci#ifdef CONFIG_HAVE_TCM 1762306a36Sopenharmony_ci#ifdef CONFIG_HAVE_DTCM 1862306a36Sopenharmony_ci#define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES + CONFIG_DTCM_NR_PAGES) 1962306a36Sopenharmony_ci#else 2062306a36Sopenharmony_ci#define TCM_NR_PAGES (CONFIG_ITCM_NR_PAGES) 2162306a36Sopenharmony_ci#endif 2262306a36Sopenharmony_ci#define FIXADDR_TCM _AC(FIXADDR_TOP - (TCM_NR_PAGES * PAGE_SIZE), UL) 2362306a36Sopenharmony_ci#endif 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#endif 26