root/include/asm-sparc/pgtsfmmu.h

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* pgtsfmmu.h:  Spitfire V9 MMU support goes here.
   2  *
   3  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
   4  */
   5 
   6 #ifndef _SPARC_PGTSFMMU_H
   7 #define _SPARC_PGTSFMMU_H
   8 
   9 /* Spitfire is four-level.... I think... It also has a seperate TLB for
  10  * data and instruction mappings.
  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 /* !(_SPARC_PGTSFMMU_H) */
  29 

/* [previous][next][first][last][top][bottom][index][help] */