Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
sun3_pgtable.h File Reference
#include <asm/sun3mmu.h>
#include <asm/virtconvert.h>
#include <linux/linkage.h>

Go to the source code of this file.

Macros

#define VTOP(addr)   __pa(addr)
 
#define PTOV(addr)   __va(addr)
 
#define _PAGE_NOCACHE030   0x040
 
#define _CACHEMASK040   (~0x060)
 
#define _PAGE_NOCACHE_S   0x040
 
#define SUN3_PAGE_VALID   (0x80000000)
 
#define SUN3_PAGE_WRITEABLE   (0x40000000)
 
#define SUN3_PAGE_SYSTEM   (0x20000000)
 
#define SUN3_PAGE_NOCACHE   (0x10000000)
 
#define SUN3_PAGE_ACCESSED   (0x02000000)
 
#define SUN3_PAGE_MODIFIED   (0x01000000)
 
#define _PAGE_PRESENT   (SUN3_PAGE_VALID)
 
#define _PAGE_ACCESSED   (SUN3_PAGE_ACCESSED)
 
#define PTE_FILE_MAX_BITS   28
 
#define PAGE_NONE
 
#define PAGE_SHARED
 
#define PAGE_COPY
 
#define PAGE_READONLY
 
#define PAGE_KERNEL
 
#define PAGE_INIT
 
#define __P000   PAGE_NONE
 
#define __P001   PAGE_READONLY
 
#define __P010   PAGE_COPY
 
#define __P011   PAGE_COPY
 
#define __P100   PAGE_READONLY
 
#define __P101   PAGE_READONLY
 
#define __P110   PAGE_COPY
 
#define __P111   PAGE_COPY
 
#define __S000   PAGE_NONE
 
#define __S001   PAGE_READONLY
 
#define __S010   PAGE_SHARED
 
#define __S011   PAGE_SHARED
 
#define __S100   PAGE_READONLY
 
#define __S101   PAGE_READONLY
 
#define __S110   PAGE_SHARED
 
#define __S111   PAGE_SHARED
 
#define SUN3_PMD_VALID   (0x00000001)
 
#define SUN3_PMD_MASK   (0x0000003F)
 
#define SUN3_PMD_MAGIC   (0x0000002B)
 
#define mk_pte(page, pgprot)   pfn_pte(page_to_pfn(page), (pgprot))
 
#define pmd_set(pmdp, ptep)   do {} while (0)
 
#define __pte_page(pte)   ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))
 
#define __pmd_page(pmd)   ((unsigned long) __va (pmd_val (pmd) & PAGE_MASK))
 
#define pte_pfn(pte)   (pte_val(pte) & SUN3_PAGE_PGNUM_MASK)
 
#define pfn_pte(pfn, pgprot)   ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })
 
#define pte_page(pte)   virt_to_page(__pte_page(pte))
 
#define pmd_page(pmd)   virt_to_page(__pmd_page(pmd))
 
#define pmd_none(pmd)   pmd_none2(&(pmd))
 
#define pmd_bad(pmd)   pmd_bad2(&(pmd))
 
#define pmd_present(pmd)   (!pmd_none2(&(pmd)))
 
#define pte_ERROR(e)   printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))
 
#define pmd_ERROR(e)   printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))
 
#define pgd_ERROR(e)   printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))
 
#define pgd_index(address)   ((address) >> PGDIR_SHIFT)
 
#define pgd_offset(mm, address)   ((mm)->pgd + pgd_index(address))
 
#define pgd_offset_k(address)   pgd_offset(&init_mm, address)
 
#define pte_index(address)   ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))
 
#define pte_offset_kernel(pmd, address)   ((pte_t *) __pmd_page(*pmd) + pte_index(address))
 
#define pte_offset_map(pmd, address)   ((pte_t *)page_address(pmd_page(*pmd)) + pte_index(address))
 
#define pte_unmap(pte)   do { } while (0)
 
#define __swp_type(x)   ((x).val & 0x7F)
 
#define __swp_offset(x)   (((x).val) >> 7)
 
#define __swp_entry(type, offset)   ((swp_entry_t) { ((type) | ((offset) << 7)) })
 
#define __pte_to_swp_entry(pte)   ((swp_entry_t) { pte_val(pte) })
 
#define __swp_entry_to_pte(x)   ((pte_t) { (x).val })
 

Variables

pgd_t swapper_pg_dir [PTRS_PER_PGD]
 
pgd_t kernel_pg_dir [PTRS_PER_PGD]
 

Macro Definition Documentation

#define __P000   PAGE_NONE

Definition at line 75 of file sun3_pgtable.h.

#define __P001   PAGE_READONLY

Definition at line 76 of file sun3_pgtable.h.

#define __P010   PAGE_COPY

Definition at line 77 of file sun3_pgtable.h.

#define __P011   PAGE_COPY

Definition at line 78 of file sun3_pgtable.h.

#define __P100   PAGE_READONLY

Definition at line 79 of file sun3_pgtable.h.

#define __P101   PAGE_READONLY

Definition at line 80 of file sun3_pgtable.h.

#define __P110   PAGE_COPY

Definition at line 81 of file sun3_pgtable.h.

#define __P111   PAGE_COPY

Definition at line 82 of file sun3_pgtable.h.

#define __pmd_page (   pmd)    ((unsigned long) __va (pmd_val (pmd) & PAGE_MASK))

Definition at line 121 of file sun3_pgtable.h.

#define __pte_page (   pte)    ((unsigned long) __va ((pte_val (pte) & SUN3_PAGE_PGNUM_MASK) << PAGE_SHIFT))

Definition at line 119 of file sun3_pgtable.h.

#define __pte_to_swp_entry (   pte)    ((swp_entry_t) { pte_val(pte) })

Definition at line 227 of file sun3_pgtable.h.

#define __S000   PAGE_NONE

Definition at line 84 of file sun3_pgtable.h.

#define __S001   PAGE_READONLY

Definition at line 85 of file sun3_pgtable.h.

#define __S010   PAGE_SHARED

Definition at line 86 of file sun3_pgtable.h.

#define __S011   PAGE_SHARED

Definition at line 87 of file sun3_pgtable.h.

#define __S100   PAGE_READONLY

Definition at line 88 of file sun3_pgtable.h.

#define __S101   PAGE_READONLY

Definition at line 89 of file sun3_pgtable.h.

#define __S110   PAGE_SHARED

Definition at line 90 of file sun3_pgtable.h.

#define __S111   PAGE_SHARED

Definition at line 91 of file sun3_pgtable.h.

#define __swp_entry (   type,
  offset 
)    ((swp_entry_t) { ((type) | ((offset) << 7)) })

Definition at line 226 of file sun3_pgtable.h.

#define __swp_entry_to_pte (   x)    ((pte_t) { (x).val })

Definition at line 228 of file sun3_pgtable.h.

#define __swp_offset (   x)    (((x).val) >> 7)

Definition at line 225 of file sun3_pgtable.h.

#define __swp_type (   x)    ((x).val & 0x7F)

Definition at line 224 of file sun3_pgtable.h.

#define _CACHEMASK040   (~0x060)

Definition at line 25 of file sun3_pgtable.h.

#define _PAGE_ACCESSED   (SUN3_PAGE_ACCESSED)

Definition at line 39 of file sun3_pgtable.h.

#define _PAGE_NOCACHE030   0x040

Definition at line 24 of file sun3_pgtable.h.

#define _PAGE_NOCACHE_S   0x040

Definition at line 26 of file sun3_pgtable.h.

#define _PAGE_PRESENT   (SUN3_PAGE_VALID)

Definition at line 38 of file sun3_pgtable.h.

#define mk_pte (   page,
  pgprot 
)    pfn_pte(page_to_pfn(page), (pgprot))

Definition at line 104 of file sun3_pgtable.h.

#define PAGE_COPY
Value:

Definition at line 53 of file sun3_pgtable.h.

#define PAGE_INIT
#define PAGE_KERNEL
#define PAGE_NONE
Value:

Definition at line 46 of file sun3_pgtable.h.

#define PAGE_READONLY
Value:

Definition at line 56 of file sun3_pgtable.h.

#define PAGE_SHARED
#define pfn_pte (   pfn,
  pgprot 
)    ({ pte_t __pte; pte_val(__pte) = pfn | pgprot_val(pgprot); __pte; })

Definition at line 132 of file sun3_pgtable.h.

#define pgd_ERROR (   e)    printk("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e))

Definition at line 159 of file sun3_pgtable.h.

#define pgd_index (   address)    ((address) >> PGDIR_SHIFT)

Definition at line 191 of file sun3_pgtable.h.

#define pgd_offset (   mm,
  address 
)    ((mm)->pgd + pgd_index(address))

Definition at line 193 of file sun3_pgtable.h.

#define pgd_offset_k (   address)    pgd_offset(&init_mm, address)

Definition at line 197 of file sun3_pgtable.h.

#define pmd_bad (   pmd)    pmd_bad2(&(pmd))

Definition at line 143 of file sun3_pgtable.h.

#define pmd_ERROR (   e)    printk("%s:%d: bad pmd %08lx.\n", __FILE__, __LINE__, pmd_val(e))

Definition at line 157 of file sun3_pgtable.h.

#define pmd_none (   pmd)    pmd_none2(&(pmd))

Definition at line 140 of file sun3_pgtable.h.

#define pmd_page (   pmd)    virt_to_page(__pmd_page(pmd))

Definition at line 136 of file sun3_pgtable.h.

#define pmd_present (   pmd)    (!pmd_none2(&(pmd)))

Definition at line 146 of file sun3_pgtable.h.

#define pmd_set (   pmdp,
  ptep 
)    do {} while (0)

Definition at line 112 of file sun3_pgtable.h.

#define pte_ERROR (   e)    printk("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, pte_val(e))

Definition at line 155 of file sun3_pgtable.h.

#define PTE_FILE_MAX_BITS   28

Definition at line 41 of file sun3_pgtable.h.

#define pte_index (   address)    ((address >> PAGE_SHIFT) & (PTRS_PER_PTE-1))

Definition at line 218 of file sun3_pgtable.h.

#define pte_offset_kernel (   pmd,
  address 
)    ((pte_t *) __pmd_page(*pmd) + pte_index(address))

Definition at line 219 of file sun3_pgtable.h.

#define pte_offset_map (   pmd,
  address 
)    ((pte_t *)page_address(pmd_page(*pmd)) + pte_index(address))

Definition at line 220 of file sun3_pgtable.h.

#define pte_page (   pte)    virt_to_page(__pte_page(pte))

Definition at line 135 of file sun3_pgtable.h.

#define pte_pfn (   pte)    (pte_val(pte) & SUN3_PAGE_PGNUM_MASK)

Definition at line 131 of file sun3_pgtable.h.

#define pte_unmap (   pte)    do { } while (0)

Definition at line 221 of file sun3_pgtable.h.

#define PTOV (   addr)    __va(addr)

Definition at line 18 of file sun3_pgtable.h.

#define SUN3_PAGE_ACCESSED   (0x02000000)

Definition at line 33 of file sun3_pgtable.h.

#define SUN3_PAGE_MODIFIED   (0x01000000)

Definition at line 34 of file sun3_pgtable.h.

#define SUN3_PAGE_NOCACHE   (0x10000000)

Definition at line 32 of file sun3_pgtable.h.

#define SUN3_PAGE_SYSTEM   (0x20000000)

Definition at line 31 of file sun3_pgtable.h.

#define SUN3_PAGE_VALID   (0x80000000)

Definition at line 29 of file sun3_pgtable.h.

#define SUN3_PAGE_WRITEABLE   (0x40000000)

Definition at line 30 of file sun3_pgtable.h.

#define SUN3_PMD_MAGIC   (0x0000002B)

Definition at line 96 of file sun3_pgtable.h.

#define SUN3_PMD_MASK   (0x0000003F)

Definition at line 95 of file sun3_pgtable.h.

#define SUN3_PMD_VALID   (0x00000001)

Definition at line 94 of file sun3_pgtable.h.

#define VTOP (   addr)    __pa(addr)

Definition at line 17 of file sun3_pgtable.h.

Variable Documentation

pgd_t kernel_pg_dir[PTRS_PER_PGD]
pgd_t swapper_pg_dir[PTRS_PER_PGD]

Definition at line 36 of file init.c.