fixmap.h 1.1 KB

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