/arch/mips/include/asm/sn/sn0/arch.h

http://github.com/mirrors/linux · C Header · 56 lines · 18 code · 10 blank · 28 comment · 0 complexity · 02bedad41d2d9fa1bbc533c28be0cdf7 MD5 · raw file

  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * SGI IP27 specific setup.
  7. *
  8. * Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc.
  9. * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
  10. */
  11. #ifndef _ASM_SN_SN0_ARCH_H
  12. #define _ASM_SN_SN0_ARCH_H
  13. /*
  14. * MAXCPUS refers to the maximum number of CPUs in a single kernel.
  15. * This is not necessarily the same as MAXNODES * CPUS_PER_NODE
  16. */
  17. #define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE)
  18. /*
  19. * This is the maximum number of NASIDS that can be present in a system.
  20. * (Highest NASID plus one.)
  21. */
  22. #define MAX_NASIDS 256
  23. /*
  24. * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
  25. */
  26. #define MAX_REGIONS 64
  27. #define MAX_NONPREMIUM_REGIONS 16
  28. #define MAX_PREMIUM_REGIONS MAX_REGIONS
  29. /*
  30. * MAX_PARITIONS refers to the maximum number of logically defined
  31. * partitions the system can support.
  32. */
  33. #define MAX_PARTITIONS MAX_REGIONS
  34. #define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8)
  35. /*
  36. * Slot constants for SN0
  37. */
  38. #ifdef CONFIG_SGI_SN_N_MODE
  39. #define MAX_MEM_SLOTS 16 /* max slots per node */
  40. #else /* !CONFIG_SGI_SN_N_MODE, assume CONFIG_SGI_SN_M_MODE */
  41. #define MAX_MEM_SLOTS 32 /* max slots per node */
  42. #endif /* CONFIG_SGI_SN_M_MODE */
  43. #define SLOT_SHIFT (27)
  44. #define SLOT_MIN_MEM_SIZE (32*1024*1024)
  45. #define CPUS_PER_NODE 2 /* CPUs on a single hub */
  46. #endif /* _ASM_SN_SN0_ARCH_H */