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