Go to the documentation of this file.
16 #include <linux/kernel.h>
20 #include <asm/kmap_types.h>
55 #define FIX_N_COLOURS 8
64 #ifdef CONFIG_IOREMAP_FIXED
70 #define FIX_N_IOREMAPS 32
82 #define set_fixmap(idx, phys) \
83 __set_fixmap(idx, phys, PAGE_KERNEL)
87 #define set_fixmap_nocache(idx, phys) \
88 __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
96 #ifdef CONFIG_SUPERH32
97 #define FIXADDR_TOP (P4SEG - PAGE_SIZE)
99 #define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE))
101 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
102 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
104 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
105 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
114 static inline unsigned long fix_to_virt(
const unsigned int idx)
131 static inline unsigned long virt_to_fix(
const unsigned long vaddr)