arch.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. #ifndef SN0XXL /* 128 cpu SMP max */
  14. /*
  15. * This is the maximum number of nodes that can be part of a kernel.
  16. * Effectively, it's the maximum number of compact node ids (cnodeid_t).
  17. */
  18. #define MAX_COMPACT_NODES 64
  19. /*
  20. * MAXCPUS refers to the maximum number of CPUs in a single kernel.
  21. * This is not necessarily the same as MAXNODES * CPUS_PER_NODE
  22. */
  23. #define MAXCPUS 128
  24. #else /* SN0XXL system */
  25. #define MAX_COMPACT_NODES 128
  26. #define MAXCPUS 256
  27. #endif /* SN0XXL */
  28. /*
  29. * This is the maximum number of NASIDS that can be present in a system.
  30. * (Highest NASID plus one.)
  31. */
  32. #define MAX_NASIDS 256
  33. /*
  34. * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
  35. */
  36. #define MAX_REGIONS 64
  37. #define MAX_NONPREMIUM_REGIONS 16
  38. #define MAX_PREMIUM_REGIONS MAX_REGIONS
  39. /*
  40. * MAX_PARITIONS refers to the maximum number of logically defined
  41. * partitions the system can support.
  42. */
  43. #define MAX_PARTITIONS MAX_REGIONS
  44. #define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8)
  45. /*
  46. * Slot constants for SN0
  47. */
  48. #ifdef CONFIG_SGI_SN_N_MODE
  49. #define MAX_MEM_SLOTS 16 /* max slots per node */
  50. #else /* !CONFIG_SGI_SN_N_MODE, assume CONFIG_SGI_SN_M_MODE */
  51. #define MAX_MEM_SLOTS 32 /* max slots per node */
  52. #endif /* CONFIG_SGI_SN_M_MODE */
  53. #define SLOT_SHIFT (27)
  54. #define SLOT_MIN_MEM_SIZE (32*1024*1024)
  55. #define CPUS_PER_NODE 2 /* CPUs on a single hub */
  56. #define CPUS_PER_NODE_SHFT 1 /* Bits to shift in the node number */
  57. #define CPUS_PER_SUBNODE 2 /* CPUs on a single hub PI */
  58. #endif /* _ASM_SN_SN0_ARCH_H */