18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 38c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 48c2ecf20Sopenharmony_ci * for more details. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * SGI specific setup. 78c2ecf20Sopenharmony_ci * 88c2ecf20Sopenharmony_ci * Copyright (C) 1995 - 1997, 1999 Silcon Graphics, Inc. 98c2ecf20Sopenharmony_ci * Copyright (C) 1999 Ralf Baechle (ralf@gnu.org) 108c2ecf20Sopenharmony_ci */ 118c2ecf20Sopenharmony_ci#ifndef _ASM_SN_ARCH_H 128c2ecf20Sopenharmony_ci#define _ASM_SN_ARCH_H 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#include <linux/types.h> 158c2ecf20Sopenharmony_ci#include <asm/sn/types.h> 168c2ecf20Sopenharmony_ci#ifdef CONFIG_SGI_IP27 178c2ecf20Sopenharmony_ci#include <asm/sn/sn0/arch.h> 188c2ecf20Sopenharmony_ci#endif 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci#define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid) 218c2ecf20Sopenharmony_ci#define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice) 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci#define INVALID_NASID (nasid_t)-1 248c2ecf20Sopenharmony_ci#define INVALID_PNODEID (pnodeid_t)-1 258c2ecf20Sopenharmony_ci#define INVALID_MODULE (moduleid_t)-1 268c2ecf20Sopenharmony_ci#define INVALID_PARTID (partid_t)-1 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci#endif /* _ASM_SN_ARCH_H */ 29