fixmap.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_FIXMAP_H
  3. #define _ASM_FIXMAP_H
  4. /*
  5. * This file defines the locations of the fixed mappings on parisc.
  6. *
  7. * All of the values in this file are machine virtual addresses.
  8. *
  9. * All of the values in this file must be <4GB (because of assembly
  10. * loading restrictions). If you place this region anywhere above
  11. * __PAGE_OFFSET, you must adjust the memory map accordingly */
  12. /* The alias region is used in kernel space to do copy/clear to or
  13. * from areas congruently mapped with user space. It is 8MB large
  14. * and must be 16MB aligned */
  15. #define TMPALIAS_MAP_START ((__PAGE_OFFSET) - 16*1024*1024)
  16. /* This is the kernel area for all maps (vmalloc, dma etc.) most
  17. * usually, it extends up to TMPALIAS_MAP_START. Virtual addresses
  18. * 0..GATEWAY_PAGE_SIZE are reserved for the gateway page */
  19. #define KERNEL_MAP_START (GATEWAY_PAGE_SIZE)
  20. #define KERNEL_MAP_END (TMPALIAS_MAP_START)
  21. #ifndef __ASSEMBLY__
  22. extern void *parisc_vmalloc_start;
  23. #define PCXL_DMA_MAP_SIZE (8*1024*1024)
  24. #define VMALLOC_START ((unsigned long)parisc_vmalloc_start)
  25. #define VMALLOC_END (KERNEL_MAP_END)
  26. #endif /*__ASSEMBLY__*/
  27. #endif /*_ASM_FIXMAP_H*/