fixmap.h 558 B

1234567891011121314151617181920212223242526
  1. /* Highmem related constants */
  2. #ifndef _ASM_FIXMAP_H
  3. #define _ASM_FIXMAP_H
  4. #include <asm/kmap_types.h>
  5. enum fixed_addresses {
  6. FIX_HOLE,
  7. #ifdef CONFIG_HIGHMEM
  8. FIX_KMAP_BEGIN,
  9. FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS),
  10. #endif
  11. __end_of_fixed_addresses
  12. };
  13. /* Leave one empty page between IO pages at 0xfd000000 and
  14. * the top of the fixmap.
  15. */
  16. #define FIXADDR_TOP (0xfcfff000UL)
  17. #define FIXADDR_SIZE ((FIX_KMAP_END + 1) << PAGE_SHIFT)
  18. #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
  19. #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
  20. #endif