![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0 */ 0002 #ifndef ASMARM_SPARSEMEM_H 0003 #define ASMARM_SPARSEMEM_H 0004 0005 #include <asm/memory.h> 0006 0007 /* 0008 * Two definitions are required for sparsemem: 0009 * 0010 * MAX_PHYSMEM_BITS: The number of physical address bits required 0011 * to address the last byte of memory. 0012 * 0013 * SECTION_SIZE_BITS: The number of physical address bits to cover 0014 * the maximum amount of memory in a section. 0015 * 0016 * Eg, if you have 2 banks of up to 64MB at 0x80000000, 0x84000000, 0017 * then MAX_PHYSMEM_BITS is 32, SECTION_SIZE_BITS is 26. 0018 * 0019 * These can be overridden in your mach/memory.h. 0020 */ 0021 #if !defined(MAX_PHYSMEM_BITS) || !defined(SECTION_SIZE_BITS) 0022 #define MAX_PHYSMEM_BITS 36 0023 #define SECTION_SIZE_BITS 28 0024 #endif 0025 0026 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |