fixmap.h 825 B

123456789101112131415161718192021222324252627282930
  1. // SPDX-License-Identifier: GPL-2.0
  2. // Copyright (C) 2005-2017 Andes Technology Corporation
  3. #ifndef __ASM_NDS32_FIXMAP_H
  4. #define __ASM_NDS32_FIXMAP_H
  5. #ifdef CONFIG_HIGHMEM
  6. #include <linux/threads.h>
  7. #include <asm/kmap_types.h>
  8. #endif
  9. enum fixed_addresses {
  10. FIX_HOLE,
  11. FIX_KMAP_RESERVED,
  12. FIX_KMAP_BEGIN,
  13. #ifdef CONFIG_HIGHMEM
  14. FIX_KMAP_END = FIX_KMAP_BEGIN + (KM_TYPE_NR * NR_CPUS),
  15. #endif
  16. FIX_EARLYCON_MEM_BASE,
  17. __end_of_fixed_addresses
  18. };
  19. #define FIXADDR_TOP ((unsigned long) (-(16 * PAGE_SIZE)))
  20. #define FIXADDR_SIZE ((__end_of_fixed_addresses) << PAGE_SHIFT)
  21. #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
  22. #define FIXMAP_PAGE_IO __pgprot(PAGE_DEVICE)
  23. void __set_fixmap(enum fixed_addresses idx, phys_addr_t phys, pgprot_t prot);
  24. #include <asm-generic/fixmap.h>
  25. #endif /* __ASM_NDS32_FIXMAP_H */