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
6 * SGI IP27 specific setup.
8 * Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc.
9 * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
11 #ifndef _ASM_SN_SN0_ARCH_H
12 #define _ASM_SN_SN0_ARCH_H
17 #ifndef SN0XXL /* 128 cpu SMP max */
19 * This is the maximum number of nodes that can be part of a kernel.
20 * Effectively, it's the maximum number of compact node ids (cnodeid_t).
22 #define MAX_COMPACT_NODES 64
25 * MAXCPUS refers to the maximum number of CPUs in a single kernel.
26 * This is not necessarily the same as MAXNODES * CPUS_PER_NODE
30 #else /* SN0XXL system */
32 #define MAX_COMPACT_NODES 128
38 * This is the maximum number of NASIDS that can be present in a system.
39 * (Highest NASID plus one.)
41 #define MAX_NASIDS 256
44 * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
46 #define MAX_REGIONS 64
47 #define MAX_NONPREMIUM_REGIONS 16
48 #define MAX_PREMIUM_REGIONS MAX_REGIONS
51 * MAX_PARITIONS refers to the maximum number of logically defined
52 * partitions the system can support.
54 #define MAX_PARTITIONS MAX_REGIONS
59 #define MAX_COMPACT_NODES 4
65 #define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8)
68 * Slot constants for SN0
70 #ifdef CONFIG_SGI_SN0_N_MODE
71 #define MAX_MEM_SLOTS 16 /* max slots per node */
72 #else /* !CONFIG_SGI_SN0_N_MODE, assume M_MODE */
73 #define MAX_MEM_SLOTS 32 /* max slots per node */
74 #endif /* defined(N_MODE) */
76 #define SLOT_SHIFT (27)
77 #define SLOT_MIN_MEM_SIZE (32*1024*1024)
79 #define CPUS_PER_NODE 2 /* CPUs on a single hub */
80 #define CPUS_PER_NODE_SHFT 1 /* Bits to shift in the node number */
81 #define CPUS_PER_SUBNODE 2 /* CPUs on a single hub PI */
83 #endif /* _ASM_SN_SN0_ARCH_H */