Go to the documentation of this file.
22 #include <linux/kernel.h>
26 #include <asm/kmap_types.h>
29 #define FIXADDR_TOP ((unsigned long)(-PAGE_SIZE))
61 #define set_fixmap(idx, phys) \
62 __set_fixmap(idx, phys, PAGE_KERNEL)
66 #define set_fixmap_nocache(idx, phys) \
67 __set_fixmap(idx, phys, PAGE_KERNEL_CI)
69 #define clear_fixmap(idx) \
70 __set_fixmap(idx, 0, __pgprot(0))
72 #define __FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
73 #define FIXADDR_START (FIXADDR_TOP - __FIXADDR_SIZE)
75 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
76 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
102 static inline unsigned long virt_to_fix(
const unsigned long vaddr)