drm/rockchip: vop2: Fix the windows switch between different layers
[drm/drm-misc.git] / arch / mips / include / asm / sn / sn0 / arch.h
blob12f4c4649ff0e8736ab1352b53228b0ad50a3324
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.
6 * SGI IP27 specific setup.
8 * Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc.
9 * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
11 #ifndef _ASM_SN_SN0_ARCH_H
12 #define _ASM_SN_SN0_ARCH_H
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
19 #define MAXCPUS (MAX_NUMNODES * CPUS_PER_NODE)
22 * This is the maximum number of NASIDS that can be present in a system.
23 * (Highest NASID plus one.)
25 #define MAX_NASIDS 256
28 * MAX_REGIONS refers to the maximum number of hardware partitioned regions.
30 #define MAX_REGIONS 64
31 #define MAX_NONPREMIUM_REGIONS 16
32 #define MAX_PREMIUM_REGIONS MAX_REGIONS
35 * MAX_PARITIONS refers to the maximum number of logically defined
36 * partitions the system can support.
38 #define MAX_PARTITIONS MAX_REGIONS
40 #define NASID_MASK_BYTES ((MAX_NASIDS + 7) / 8)
43 * Slot constants for SN0
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 */
51 #define SLOT_SHIFT (27)
52 #define SLOT_MIN_MEM_SIZE (32*1024*1024)
54 #define CPUS_PER_NODE 2 /* CPUs on a single hub */
56 #endif /* _ASM_SN_SN0_ARCH_H */