vaddrs.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. #ifndef _SPARC_VADDRS_H
  2. #define _SPARC_VADDRS_H
  3. #include <asm/head.h>
  4. /*
  5. * asm/vaddrs.h: Here we define the virtual addresses at
  6. * which important things will be mapped.
  7. *
  8. * Copyright (C) 1995 David S. Miller ([email protected])
  9. * Copyright (C) 2000 Anton Blanchard ([email protected])
  10. */
  11. #define SRMMU_MAXMEM 0x0c000000
  12. #define SRMMU_NOCACHE_VADDR (KERNBASE + SRMMU_MAXMEM)
  13. /* = 0x0fc000000 */
  14. /* XXX Empiricals - this needs to go away - KMW */
  15. #define SRMMU_MIN_NOCACHE_PAGES (550)
  16. #define SRMMU_MAX_NOCACHE_PAGES (1280)
  17. /* The following constant is used in mm/srmmu.c::srmmu_nocache_calcsize()
  18. * to determine the amount of memory that will be reserved as nocache:
  19. *
  20. * 256 pages will be taken as nocache per each
  21. * SRMMU_NOCACHE_ALCRATIO MB of system memory.
  22. *
  23. * limits enforced: nocache minimum = 256 pages
  24. * nocache maximum = 1280 pages
  25. */
  26. #define SRMMU_NOCACHE_ALCRATIO 64 /* 256 pages per 64MB of system RAM */
  27. #ifndef __ASSEMBLY__
  28. #include <asm/kmap_types.h>
  29. enum fixed_addresses {
  30. FIX_HOLE,
  31. #ifdef CONFIG_HIGHMEM
  32. FIX_KMAP_BEGIN,
  33. FIX_KMAP_END = (KM_TYPE_NR * NR_CPUS),
  34. #endif
  35. __end_of_fixed_addresses
  36. };
  37. #endif
  38. /* Leave one empty page between IO pages at 0xfd000000 and
  39. * the top of the fixmap.
  40. */
  41. #define FIXADDR_TOP (0xfcfff000UL)
  42. #define FIXADDR_SIZE ((FIX_KMAP_END + 1) << PAGE_SHIFT)
  43. #define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)
  44. #define __fix_to_virt(x) (FIXADDR_TOP - ((x) << PAGE_SHIFT))
  45. #define SUN4M_IOBASE_VADDR 0xfd000000 /* Base for mapping pages */
  46. #define IOBASE_VADDR 0xfe000000
  47. #define IOBASE_END 0xfe600000
  48. #define KADB_DEBUGGER_BEGVM 0xffc00000 /* Where kern debugger is in virt-mem */
  49. #define KADB_DEBUGGER_ENDVM 0xffd00000
  50. #define DEBUG_FIRSTVADDR KADB_DEBUGGER_BEGVM
  51. #define DEBUG_LASTVADDR KADB_DEBUGGER_ENDVM
  52. #define LINUX_OPPROM_BEGVM 0xffd00000
  53. #define LINUX_OPPROM_ENDVM 0xfff00000
  54. #define DVMA_VADDR 0xfff00000 /* Base area of the DVMA on suns */
  55. #define DVMA_END 0xfffc0000
  56. #endif /* !(_SPARC_VADDRS_H) */