arch.h 762 B

12345678910111213141516171819202122232425262728
  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 Silcon Graphics, Inc.
  9. * Copyright (C) 1999 Ralf Baechle ([email protected])
  10. */
  11. #ifndef _ASM_SN_ARCH_H
  12. #define _ASM_SN_ARCH_H
  13. #include <linux/types.h>
  14. #include <asm/sn/types.h>
  15. #ifdef CONFIG_SGI_IP27
  16. #include <asm/sn/sn0/arch.h>
  17. #endif
  18. #define cputonasid(cpu) (sn_cpu_info[(cpu)].p_nasid)
  19. #define cputoslice(cpu) (sn_cpu_info[(cpu)].p_slice)
  20. #define INVALID_NASID (nasid_t)-1
  21. #define INVALID_PNODEID (pnodeid_t)-1
  22. #define INVALID_MODULE (moduleid_t)-1
  23. #define INVALID_PARTID (partid_t)-1
  24. #endif /* _ASM_SN_ARCH_H */