18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * arch/arm/mach-rpc/include/mach/memory.h 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 1996,1997,1998 Russell King. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Changelog: 88c2ecf20Sopenharmony_ci * 20-Oct-1996 RMK Created 98c2ecf20Sopenharmony_ci * 31-Dec-1997 RMK Fixed definitions to reduce warnings 108c2ecf20Sopenharmony_ci * 11-Jan-1998 RMK Uninlined to reduce hits on cache 118c2ecf20Sopenharmony_ci * 08-Feb-1998 RMK Added __virt_to_bus and __bus_to_virt 128c2ecf20Sopenharmony_ci * 21-Mar-1999 RMK Renamed to memory.h 138c2ecf20Sopenharmony_ci * RMK Added TASK_SIZE and PAGE_OFFSET 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_ci#ifndef __ASM_ARCH_MEMORY_H 168c2ecf20Sopenharmony_ci#define __ASM_ARCH_MEMORY_H 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* 198c2ecf20Sopenharmony_ci * Cache flushing area - ROM 208c2ecf20Sopenharmony_ci */ 218c2ecf20Sopenharmony_ci#define FLUSH_BASE_PHYS 0x00000000 228c2ecf20Sopenharmony_ci#define FLUSH_BASE 0xdf000000 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci/* 258c2ecf20Sopenharmony_ci * Sparsemem support. Each section is a maximum of 64MB. The sections 268c2ecf20Sopenharmony_ci * are offset by 128MB and can cover 128MB, so that gives us a maximum 278c2ecf20Sopenharmony_ci * of 29 physmem bits. 288c2ecf20Sopenharmony_ci */ 298c2ecf20Sopenharmony_ci#define MAX_PHYSMEM_BITS 29 308c2ecf20Sopenharmony_ci#define SECTION_SIZE_BITS 26 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci#endif 33