| 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 ([email protected]) |
| 10 |
*/ |
| 11 |
#ifndef _ASM_SN_SN0_ARCH_H |
| 12 |
#define _ASM_SN_SN0_ARCH_H |
| 13 |
|
| 14 |
|
| 15 |
/* |
| 16 |
* MAXCPUS refers to the maximum number of CPUs in a single kernel. |
| 17 |
* This is not necessarily the same as MAXNODES * CPUS_PER_NODE |
| 18 |
*/ |
| 19 |
#define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE) |
| 20 |
|
| 21 |
/* |
| 22 |
* This is the maximum number of NASIDS that can be present in a system. |
| 23 |
* (Highest NASID plus one.) |
| 24 |
*/ |
| 25 |
#define MAX_NASIDS 256 |
| 26 |
|
| 27 |
/* |
| 28 |
* MAX_REGIONS refers to the maximum number of hardware partitioned regions. |
| 29 |
*/ |
| 30 |
#define MAX_REGIONS 64 |
| 31 |
#define MAX_NONPREMIUM_REGIONS 16 |
| 32 |
#define MAX_PREMIUM_REGIONS MAX_REGIONS |
| 33 |
|
| 34 |
/* |
| 35 |
* MAX_PARITIONS refers to the maximum number of logically defined |
| 36 |
* partitions the system can support. |
| 37 |
*/ |
| 38 |
#define MAX_PARTITIONS MAX_REGIONS |
| 39 |
|
| 40 |
#define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8) |
| 41 |
|
| 42 |
/* |
| 43 |
* Slot constants for SN0 |
| 44 |
*/ |
| 45 |
#ifdef CONFIG_SGI_SN_N_MODE |
| 46 |
#define MAX_MEM_SLOTS 16 /* max slots per node */ |
| 47 |
#else /* !CONFIG_SGI_SN_N_MODE, assume CONFIG_SGI_SN_M_MODE */ |
| 48 |
#define MAX_MEM_SLOTS 32 /* max slots per node */ |
| 49 |
#endif /* CONFIG_SGI_SN_M_MODE */ |
| 50 |
|
| 51 |
#define SLOT_SHIFT (27) |
| 52 |
#define SLOT_MIN_MEM_SIZE (32*1024*1024) |
| 53 |
|
| 54 |
#define CPUS_PER_NODE 2 /* CPUs on a single hub */ |
| 55 |
|
| 56 |
#endif /* _ASM_SN_SN0_ARCH_H */ |