Go to the documentation of this file.
4 #include <asm/processor.h>
5 #include <asm/kmap_types.h>
6 #include <asm/archparam.h>
46 #define set_fixmap(idx, phys) \
47 __set_fixmap(idx, phys, PAGE_KERNEL)
51 #define set_fixmap_nocache(idx, phys) \
52 __set_fixmap(idx, phys, PAGE_KERNEL_NOCACHE)
61 #define FIXADDR_TOP (TASK_SIZE - 2 * PAGE_SIZE)
62 #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
63 #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
65 #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
66 #define __virt_to_fix(x) ((FIXADDR_TOP - ((x)&PAGE_MASK)) >> PAGE_SHIFT)
75 static inline unsigned long fix_to_virt(
const unsigned int idx)
92 static inline unsigned long virt_to_fix(
const unsigned long vaddr)