1
2
3
4
5
6 #ifndef _SPARC_PGTSFMMU_H
7 #define _SPARC_PGTSFMMU_H
8
9
10
11
12 #define SFMMU_PMD_SHIFT 16
13 #define SFMMU_PMD_SIZE (1UL << SFMMU_PMD_SHIFT)
14 #define SFMMU_PMD_MASK (~(SFMMU_PMD_SIZE-1))
15 #define SFMMU_PMD_ALIGN(addr) (((addr)+SFMMU_PMD_SIZE-1)&SFMMU_PMD_MASK)
16
17 #define SFMMU_PGDIR_SHIFT 19
18 #define SFMMU_PGDIR_SIZE (1UL << SFMMU_PGDIR_SHIFT)
19 #define SFMMU_PGDIR_MASK (~(SFMMU_PGDIR_SIZE-1))
20 #define SFMMU_PGDIR_ALIGN(addr) (((addr)+SFMMU_PGDIR_SIZE-1)&SFMMU_PGDIR_MASK)
21
22 #define SFMMU_PGMAP_SHIFT 22
23 #define SFMMU_PGDIR_SIZE (1UL << SFMMU_PGDIR_SHIFT)
24 #define SFMMU_PGDIR_MASK (~(SFMMU_PGDIR_SIZE-1))
25 #define SFMMU_PGDIR_ALIGN(addr) (((addr)+SFMMU_PGDIR_SIZE-1)&SFMMU_PGDIR_MASK)
26
27
28 #endif
29