Heiko Carstens | 17f3458 | 2008-04-30 13:38:47 +0200 | [diff] [blame] | 1 | #ifndef _ASM_S390_SPARSEMEM_H |
| 2 | #define _ASM_S390_SPARSEMEM_H |
| 3 | |
Heiko Carstens | 17f3458 | 2008-04-30 13:38:47 +0200 | [diff] [blame] | 4 | #ifdef CONFIG_64BIT |
| 5 | |
Heiko Carstens | 421c175 | 2008-07-14 09:59:18 +0200 | [diff] [blame] | 6 | #define SECTION_SIZE_BITS 28 |
Martin Schwidefsky | 14045eb | 2011-12-27 11:27:07 +0100 | [diff] [blame] | 7 | #define MAX_PHYSADDR_BITS 46 |
| 8 | #define MAX_PHYSMEM_BITS 46 |
Heiko Carstens | 17f3458 | 2008-04-30 13:38:47 +0200 | [diff] [blame] | 9 | |
| 10 | #else |
| 11 | |
Heiko Carstens | 421c175 | 2008-07-14 09:59:18 +0200 | [diff] [blame] | 12 | #define SECTION_SIZE_BITS 25 |
Heiko Carstens | 17f3458 | 2008-04-30 13:38:47 +0200 | [diff] [blame] | 13 | #define MAX_PHYSADDR_BITS 31 |
| 14 | #define MAX_PHYSMEM_BITS 31 |
| 15 | |
| 16 | #endif /* CONFIG_64BIT */ |
| 17 | |
| 18 | #endif /* _ASM_S390_SPARSEMEM_H */ |