Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * This file is subject to the terms and conditions of the GNU General Public
0003  * License.  See the file "COPYING" in the main directory of this archive
0004  * for more details.
0005  *
0006  * SGI IP27 specific setup.
0007  *
0008  * Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc.
0009  * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
0010  */
0011 #ifndef _ASM_SN_SN0_ARCH_H
0012 #define _ASM_SN_SN0_ARCH_H
0013 
0014 
0015 /*
0016  * MAXCPUS refers to the maximum number of CPUs in a single kernel.
0017  * This is not necessarily the same as MAXNODES * CPUS_PER_NODE
0018  */
0019 #define MAXCPUS         (MAX_NUMNODES * CPUS_PER_NODE)
0020 
0021 /*
0022  * This is the maximum number of NASIDS that can be present in a system.
0023  * (Highest NASID plus one.)
0024  */
0025 #define MAX_NASIDS      256
0026 
0027 /*
0028  * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
0029  */
0030 #define MAX_REGIONS     64
0031 #define MAX_NONPREMIUM_REGIONS  16
0032 #define MAX_PREMIUM_REGIONS MAX_REGIONS
0033 
0034 /*
0035  * MAX_PARITIONS refers to the maximum number of logically defined
0036  * partitions the system can support.
0037  */
0038 #define MAX_PARTITIONS      MAX_REGIONS
0039 
0040 #define NASID_MASK_BYTES    ((MAX_NASIDS + 7) / 8)
0041 
0042 /*
0043  * Slot constants for SN0
0044  */
0045 #ifdef CONFIG_SGI_SN_N_MODE
0046 #define MAX_MEM_SLOTS   16          /* max slots per node */
0047 #else /* !CONFIG_SGI_SN_N_MODE, assume CONFIG_SGI_SN_M_MODE */
0048 #define MAX_MEM_SLOTS   32          /* max slots per node */
0049 #endif /* CONFIG_SGI_SN_M_MODE */
0050 
0051 #define SLOT_SHIFT      (27)
0052 #define SLOT_MIN_MEM_SIZE   (32*1024*1024)
0053 
0054 #define CPUS_PER_NODE       2   /* CPUs on a single hub */
0055 
0056 #endif /* _ASM_SN_SN0_ARCH_H */