arch.h 2.0 KB

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