Thomas Gleixner | d2912cb | 2019-06-04 10:11:33 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 2 | /* |
| 3 | * arch/arm/mach-rpc/include/mach/memory.h |
| 4 | * |
| 5 | * Copyright (C) 1996,1997,1998 Russell King. |
| 6 | * |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 7 | * Changelog: |
| 8 | * 20-Oct-1996 RMK Created |
| 9 | * 31-Dec-1997 RMK Fixed definitions to reduce warnings |
| 10 | * 11-Jan-1998 RMK Uninlined to reduce hits on cache |
| 11 | * 08-Feb-1998 RMK Added __virt_to_bus and __bus_to_virt |
| 12 | * 21-Mar-1999 RMK Renamed to memory.h |
| 13 | * RMK Added TASK_SIZE and PAGE_OFFSET |
| 14 | */ |
| 15 | #ifndef __ASM_ARCH_MEMORY_H |
| 16 | #define __ASM_ARCH_MEMORY_H |
| 17 | |
| 18 | /* |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 19 | * Cache flushing area - ROM |
| 20 | */ |
| 21 | #define FLUSH_BASE_PHYS 0x00000000 |
| 22 | #define FLUSH_BASE 0xdf000000 |
| 23 | |
Russell King | 07f841b | 2008-10-01 17:11:06 +0100 | [diff] [blame] | 24 | /* |
| 25 | * Sparsemem support. Each section is a maximum of 64MB. The sections |
| 26 | * are offset by 128MB and can cover 128MB, so that gives us a maximum |
| 27 | * of 29 physmem bits. |
| 28 | */ |
| 29 | #define MAX_PHYSMEM_BITS 29 |
| 30 | #define SECTION_SIZE_BITS 26 |
| 31 | |
Russell King | a09e64f | 2008-08-05 16:14:15 +0100 | [diff] [blame] | 32 | #endif |