diff options
author | David S. Miller <davem@davemloft.net> | 2005-11-28 17:02:10 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-28 17:35:36 -0500 |
commit | 5cd9194a1b0b0fa219c31421ac64dfd38670ed49 (patch) | |
tree | 4cd74902103751f10aec30d5a4b0b9af51f42561 /include/asm-sparc64/pgtable.h | |
parent | 6aab341e0a28aff100a09831c5300a2994b8b986 (diff) |
[PATCH] sparc: convert IO remapping to VM_PFNMAP
Here are the Sparc bits.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-sparc64/pgtable.h')
-rw-r--r-- | include/asm-sparc64/pgtable.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/asm-sparc64/pgtable.h b/include/asm-sparc64/pgtable.h index 9a02879b235d..f0a9b44d3eb5 100644 --- a/include/asm-sparc64/pgtable.h +++ b/include/asm-sparc64/pgtable.h | |||
@@ -348,16 +348,6 @@ extern unsigned long find_ecache_flush_span(unsigned long size); | |||
348 | struct vm_area_struct; | 348 | struct vm_area_struct; |
349 | extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t); | 349 | extern void update_mmu_cache(struct vm_area_struct *, unsigned long, pte_t); |
350 | 350 | ||
351 | /* Make a non-present pseudo-TTE. */ | ||
352 | static inline pte_t mk_pte_io(unsigned long page, pgprot_t prot, int space) | ||
353 | { | ||
354 | pte_t pte; | ||
355 | pte_val(pte) = (((page) | pgprot_val(prot) | _PAGE_E) & | ||
356 | ~(unsigned long)_PAGE_CACHE); | ||
357 | pte_val(pte) |= (((unsigned long)space) << 32); | ||
358 | return pte; | ||
359 | } | ||
360 | |||
361 | /* Encode and de-code a swap entry */ | 351 | /* Encode and de-code a swap entry */ |
362 | #define __swp_type(entry) (((entry).val >> PAGE_SHIFT) & 0xffUL) | 352 | #define __swp_type(entry) (((entry).val >> PAGE_SHIFT) & 0xffUL) |
363 | #define __swp_offset(entry) ((entry).val >> (PAGE_SHIFT + 8UL)) | 353 | #define __swp_offset(entry) ((entry).val >> (PAGE_SHIFT + 8UL)) |