2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* SGI IP27 specific setup.
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc.
|
|
|
|
* Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
|
|
|
|
*/
|
|
|
|
#ifndef _ASM_SN_SN0_ARCH_H
|
|
|
|
#define _ASM_SN_SN0_ARCH_H
|
|
|
|
|
|
|
|
|
2013-01-22 19:59:30 +08:00
|
|
|
#ifndef SN0XXL /* 128 cpu SMP max */
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* This is the maximum number of nodes that can be part of a kernel.
|
|
|
|
* Effectively, it's the maximum number of compact node ids (cnodeid_t).
|
|
|
|
*/
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAX_COMPACT_NODES 64
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* MAXCPUS refers to the maximum number of CPUs in a single kernel.
|
|
|
|
* This is not necessarily the same as MAXNODES * CPUS_PER_NODE
|
|
|
|
*/
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAXCPUS 128
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#else /* SN0XXL system */
|
|
|
|
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAX_COMPACT_NODES 128
|
|
|
|
#define MAXCPUS 256
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#endif /* SN0XXL */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This is the maximum number of NASIDS that can be present in a system.
|
|
|
|
* (Highest NASID plus one.)
|
|
|
|
*/
|
|
|
|
#define MAX_NASIDS 256
|
|
|
|
|
|
|
|
/*
|
|
|
|
* MAX_REGIONS refers to the maximum number of hardware partitioned regions.
|
|
|
|
*/
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAX_REGIONS 64
|
|
|
|
#define MAX_NONPREMIUM_REGIONS 16
|
|
|
|
#define MAX_PREMIUM_REGIONS MAX_REGIONS
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* MAX_PARITIONS refers to the maximum number of logically defined
|
|
|
|
* partitions the system can support.
|
|
|
|
*/
|
|
|
|
#define MAX_PARTITIONS MAX_REGIONS
|
|
|
|
|
|
|
|
#define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8)
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Slot constants for SN0
|
|
|
|
*/
|
2006-06-12 07:55:14 +08:00
|
|
|
#ifdef CONFIG_SGI_SN_N_MODE
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAX_MEM_SLOTS 16 /* max slots per node */
|
2006-06-14 15:10:35 +08:00
|
|
|
#else /* !CONFIG_SGI_SN_N_MODE, assume CONFIG_SGI_SN_M_MODE */
|
2013-01-22 19:59:30 +08:00
|
|
|
#define MAX_MEM_SLOTS 32 /* max slots per node */
|
2006-06-14 15:10:35 +08:00
|
|
|
#endif /* CONFIG_SGI_SN_M_MODE */
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2013-01-22 19:59:30 +08:00
|
|
|
#define SLOT_SHIFT (27)
|
2005-04-17 06:20:36 +08:00
|
|
|
#define SLOT_MIN_MEM_SIZE (32*1024*1024)
|
|
|
|
|
|
|
|
#define CPUS_PER_NODE 2 /* CPUs on a single hub */
|
|
|
|
#define CPUS_PER_NODE_SHFT 1 /* Bits to shift in the node number */
|
|
|
|
#define CPUS_PER_SUBNODE 2 /* CPUs on a single hub PI */
|
|
|
|
|
|
|
|
#endif /* _ASM_SN_SN0_ARCH_H */
|