aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-ia64/sn/arch.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/asm-ia64/sn/arch.h
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'include/asm-ia64/sn/arch.h')
-rw-r--r--include/asm-ia64/sn/arch.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/include/asm-ia64/sn/arch.h b/include/asm-ia64/sn/arch.h
new file mode 100644
index 000000000000..7c349f07916a
--- /dev/null
+++ b/include/asm-ia64/sn/arch.h
@@ -0,0 +1,52 @@
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 specific setup.
7 *
8 * Copyright (C) 1995-1997,1999,2001-2004 Silicon Graphics, Inc. All rights reserved.
9 * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org)
10 */
11#ifndef _ASM_IA64_SN_ARCH_H
12#define _ASM_IA64_SN_ARCH_H
13
14#include <asm/types.h>
15#include <asm/percpu.h>
16#include <asm/sn/types.h>
17#include <asm/sn/sn_cpuid.h>
18
19/*
20 * The following defines attributes of the HUB chip. These attributes are
21 * frequently referenced. They are kept in the per-cpu data areas of each cpu.
22 * They are kept together in a struct to minimize cache misses.
23 */
24struct sn_hub_info_s {
25 u8 shub2;
26 u8 nasid_shift;
27 u8 as_shift;
28 u8 shub_1_1_found;
29 u16 nasid_bitmask;
30};
31DECLARE_PER_CPU(struct sn_hub_info_s, __sn_hub_info);
32#define sn_hub_info (&__get_cpu_var(__sn_hub_info))
33#define is_shub2() (sn_hub_info->shub2)
34#define is_shub1() (sn_hub_info->shub2 == 0)
35
36/*
37 * Use this macro to test if shub 1.1 wars should be enabled
38 */
39#define enable_shub_wars_1_1() (sn_hub_info->shub_1_1_found)
40
41
42/*
43 * This is the maximum number of nodes that can be part of a kernel.
44 * Effectively, it's the maximum number of compact node ids (cnodeid_t).
45 * This is not necessarily the same as MAX_NASIDS.
46 */
47#define MAX_COMPACT_NODES 2048
48#define CPUS_PER_NODE 4
49
50extern void sn_flush_all_caches(long addr, long bytes);
51
52#endif /* _ASM_IA64_SN_ARCH_H */