ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / asm-ia64 / sn / arch.h
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-2003 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/sn/types.h>
16 #include <asm/sn/sn_cpuid.h>
17
18 typedef u64     shubreg_t;
19 typedef u64     hubreg_t;
20 typedef u64     mmr_t;
21 typedef u64     nic_t;
22
23 #define CNODE_TO_CPU_BASE(_cnode)       (NODEPDA(_cnode)->node_first_cpu)
24
25 #define NASID_TO_COMPACT_NODEID(nasid)  (nasid_to_cnodeid(nasid))
26 #define COMPACT_TO_NASID_NODEID(cnode)  (cnodeid_to_nasid(cnode))
27
28
29 #define INVALID_NASID           ((nasid_t)-1)
30 #define INVALID_CNODEID         ((cnodeid_t)-1)
31 #define INVALID_PNODEID         ((pnodeid_t)-1)
32 #define INVALID_SLAB            (slabid_t)-1
33 #define INVALID_MODULE          ((moduleid_t)-1)
34 #define INVALID_PARTID          ((partid_t)-1)
35
36 extern cpuid_t cnodetocpu(cnodeid_t);
37 void   sn_flush_all_caches(long addr, long bytes);
38
39 extern int     is_fine_dirmode(void);
40
41
42 #endif /* _ASM_IA64_SN_ARCH_H */