OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-ia64/] [sn/] [sn2/] [arch.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/* $Id: arch.h,v 1.1.1.1 2004-04-15 02:44:07 phoenix Exp $
2
 *
3
 * This file is subject to the terms and conditions of the GNU General Public
4
 * License.  See the file "COPYING" in the main directory of this archive
5
 * for more details.
6
 *
7
 * Copyright (C) 1992 - 1997, 2000-2003 Silicon Graphics, Inc. All rights reserved.
8
 */
9
#ifndef _ASM_IA64_SN_SN2_ARCH_H
10
#define _ASM_IA64_SN_SN2_ARCH_H
11
 
12
#include <asm/types.h>
13
 
14
 
15
#define CPUS_PER_NODE           4       /* CPUs on a single hub */
16
#define CPUS_PER_SUBNODE        4       /* CPUs on a single hub PI */
17
 
18
 
19
/*
20
 * This is the maximum number of NASIDS that can be present in a system.
21
 * (Highest NASID plus one.)
22
 */
23
#define MAX_NASIDS              2048
24
 
25
 
26
/*
27
 * This is the maximum number of nodes that can be part of a kernel.
28
 * Effectively, it's the maximum number of compact node ids (cnodeid_t).
29
 * This is not necessarily the same as MAX_NASIDS.
30
 */
31
#define MAX_COMPACT_NODES       2048
32
 
33
/*
34
 * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
35
 */
36
#define MAX_REGIONS             64
37
#define MAX_NONPREMIUM_REGIONS  16
38
#define MAX_PREMIUM_REGIONS     MAX_REGIONS
39
 
40
 
41
/*
42
 * MAX_PARITIONS refers to the maximum number of logically defined
43
 * partitions the system can support.
44
 */
45
#define MAX_PARTITIONS          MAX_REGIONS
46
 
47
 
48
#define NASID_MASK_BYTES        ((MAX_NASIDS + 7) / 8)
49
#define CNASID_MASK_BYTES       (NASID_MASK_BYTES / 2)
50
 
51
 
52
/*
53
 * 1 FSB per SHUB, with up to 4 cpus per FSB.
54
 */
55
#define NUM_SUBNODES    1
56
#define SUBNODE_SHFT    0
57
#define SUBNODE_MASK    (0x0 << SUBNODE_SHFT)
58
#define LOCALCPU_SHFT   0
59
#define LOCALCPU_MASK   (0x3 << LOCALCPU_SHFT)
60
#define SUBNODE(slice)  (((slice) & SUBNODE_MASK) >> SUBNODE_SHFT)
61
#define LOCALCPU(slice) (((slice) & LOCALCPU_MASK) >> LOCALCPU_SHFT)
62
#define TO_SLICE(subn, local)   (((subn) << SUBNODE_SHFT) | \
63
                                 ((local) << LOCALCPU_SHFT))
64
 
65
#endif /* _ASM_IA64_SN_SN2_ARCH_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.