1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */ 2a09e64fbSRussell King /* 3a09e64fbSRussell King * arch/arm/mach-rpc/include/mach/memory.h 4a09e64fbSRussell King * 5a09e64fbSRussell King * Copyright (C) 1996,1997,1998 Russell King. 6a09e64fbSRussell King * 7a09e64fbSRussell King * Changelog: 8a09e64fbSRussell King * 20-Oct-1996 RMK Created 9a09e64fbSRussell King * 31-Dec-1997 RMK Fixed definitions to reduce warnings 10a09e64fbSRussell King * 11-Jan-1998 RMK Uninlined to reduce hits on cache 11a09e64fbSRussell King * 08-Feb-1998 RMK Added __virt_to_bus and __bus_to_virt 12a09e64fbSRussell King * 21-Mar-1999 RMK Renamed to memory.h 13a09e64fbSRussell King * RMK Added TASK_SIZE and PAGE_OFFSET 14a09e64fbSRussell King */ 15a09e64fbSRussell King #ifndef __ASM_ARCH_MEMORY_H 16a09e64fbSRussell King #define __ASM_ARCH_MEMORY_H 17a09e64fbSRussell King 18a09e64fbSRussell King /* 19a09e64fbSRussell King * Cache flushing area - ROM 20a09e64fbSRussell King */ 21a09e64fbSRussell King #define FLUSH_BASE_PHYS 0x00000000 22a09e64fbSRussell King #define FLUSH_BASE 0xdf000000 23a09e64fbSRussell King 2407f841b7SRussell King /* 2507f841b7SRussell King * Sparsemem support. Each section is a maximum of 64MB. The sections 2607f841b7SRussell King * are offset by 128MB and can cover 128MB, so that gives us a maximum 2707f841b7SRussell King * of 29 physmem bits. 2807f841b7SRussell King */ 2907f841b7SRussell King #define MAX_PHYSMEM_BITS 29 3007f841b7SRussell King #define SECTION_SIZE_BITS 26 3107f841b7SRussell King 32a09e64fbSRussell King #endif 33