fixmap.h 634 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
  3. #ifndef __ASM_CSKY_FIXMAP_H
  4. #define __ASM_CSKY_FIXMAP_H
  5. #include <asm/page.h>
  6. #ifdef CONFIG_HIGHMEM
  7. #include <linux/threads.h>
  8. #include <asm/kmap_types.h>
  9. #endif
  10. enum fixed_addresses {
  11. #ifdef CONFIG_HIGHMEM
  12. FIX_KMAP_BEGIN,
  13. FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS) - 1,
  14. #endif
  15. __end_of_fixed_addresses
  16. };
  17. #define FIXADDR_TOP 0xffffc000
  18. #define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
  19. #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
  20. #include <asm-generic/fixmap.h>
  21. #endif /* __ASM_CSKY_FIXMAP_H */