fixmap.h 747 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __ASM_CSKY_FIXMAP_H
  3. #define __ASM_CSKY_FIXMAP_H
  4. #include <asm/page.h>
  5. #include <asm/memory.h>
  6. #ifdef CONFIG_HIGHMEM
  7. #include <linux/threads.h>
  8. #include <asm/kmap_size.h>
  9. #endif
  10. enum fixed_addresses {
  11. #ifdef CONFIG_HAVE_TCM
  12. FIX_TCM = TCM_NR_PAGES,
  13. #endif
  14. #ifdef CONFIG_HIGHMEM
  15. FIX_KMAP_BEGIN,
  16. FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_MAX_IDX * NR_CPUS) - 1,
  17. #endif
  18. __end_of_fixed_addresses
  19. };
  20. #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
  21. #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
  22. #include <asm-generic/fixmap.h>
  23. extern void fixrange_init(unsigned long start, unsigned long end,
  24. pgd_t *pgd_base);
  25. extern void __init fixaddr_init(void);
  26. #endif /* __ASM_CSKY_FIXMAP_H */