patch-1.3.4 linux/include/asm-sparc/pgtsfmmu.h

Next file: linux/include/asm-sparc/pgtsrmmu.h
Previous file: linux/include/asm-sparc/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/include/asm-sparc/pgtsfmmu.h linux/include/asm-sparc/pgtsfmmu.h
@@ -0,0 +1,29 @@
+/* pgtsfmmu.h:  Spitfire V9 MMU support goes here.
+ *
+ * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
+ */
+
+#ifndef _SPARC_PGTSFMMU_H
+#define _SPARC_PGTSFMMU_H
+
+/* Spitfire is four-level.... I think... It also has a seperate TLB for
+ * data and instruction mappings.
+ */
+#define SFMMU_PMD_SHIFT       16
+#define SFMMU_PMD_SIZE        (1UL << SFMMU_PMD_SHIFT)
+#define SFMMU_PMD_MASK        (~(SFMMU_PMD_SIZE-1))
+#define SFMMU_PMD_ALIGN(addr) (((addr)+SFMMU_PMD_SIZE-1)&SFMMU_PMD_MASK)
+
+#define SFMMU_PGDIR_SHIFT     19
+#define SFMMU_PGDIR_SIZE        (1UL << SFMMU_PGDIR_SHIFT)
+#define SFMMU_PGDIR_MASK        (~(SFMMU_PGDIR_SIZE-1))
+#define SFMMU_PGDIR_ALIGN(addr) (((addr)+SFMMU_PGDIR_SIZE-1)&SFMMU_PGDIR_MASK)
+
+#define SFMMU_PGMAP_SHIFT     22
+#define SFMMU_PGDIR_SIZE        (1UL << SFMMU_PGDIR_SHIFT)
+#define SFMMU_PGDIR_MASK        (~(SFMMU_PGDIR_SIZE-1))
+#define SFMMU_PGDIR_ALIGN(addr) (((addr)+SFMMU_PGDIR_SIZE-1)&SFMMU_PGDIR_MASK)
+
+
+#endif /* !(_SPARC_PGTSFMMU_H) */
+

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this