summaryrefslogtreecommitdiffstats
path: root/include/asm-mips/sgi/sgi.h
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1999-10-21 00:23:04 +0000
committerRalf Baechle <ralf@linux-mips.org>1999-10-21 00:23:04 +0000
commit7ff64273bcea5c51a389ce1766e3765eff9a51f7 (patch)
treedea2a2fbaeb41657d4a99b1f18a42c22464cb20b /include/asm-mips/sgi/sgi.h
parent3c230e92ef761debb676d8790010c30230415f90 (diff)
Move various headers into a SGI specific subdirectory. These files
need to be at the same place for MIPS32 and MIPS64. Make the semaphore code actually compile.
Diffstat (limited to 'include/asm-mips/sgi/sgi.h')
-rw-r--r--include/asm-mips/sgi/sgi.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/include/asm-mips/sgi/sgi.h b/include/asm-mips/sgi/sgi.h
new file mode 100644
index 000000000..bafe60b57
--- /dev/null
+++ b/include/asm-mips/sgi/sgi.h
@@ -0,0 +1,42 @@
+/* $Id: sgi.h,v 1.1.1.1 1997/06/01 03:17:12 ralf Exp $
+ * sgi.h: Definitions specific to SGI machines.
+ *
+ * Copyright (C) 1996 David S. Miller (dm@sgi.com)
+ */
+#ifndef _MIPS_SGI_H
+#define _MIPS_SGI_H
+
+/* UP=UniProcessor MP=MultiProcessor(capable) */
+enum sgi_mach {
+ ip4, /* R2k UP */
+ ip5, /* R2k MP */
+ ip6, /* R3k UP */
+ ip7, /* R3k MP */
+ ip9, /* R3k UP */
+ ip12, /* R3kA UP, Indigo */
+ ip15, /* R3kA MP */
+ ip17, /* R4K UP */
+ ip19, /* R4K MP */
+ ip20, /* R4K UP, Indigo */
+ ip21, /* TFP MP */
+ ip22, /* R4x00 UP, Indigo2 */
+ ip25, /* R10k MP */
+ ip26, /* TFP UP, Indigo2 */
+ ip28, /* R10k UP, Indigo2 */
+ ip30,
+ ip32,
+};
+
+extern enum sgi_mach sgimach;
+extern void sgi_sysinit(void);
+
+/* Many I/O space registers are byte sized and are contained within
+ * one byte per word, specifically the MSB, this macro helps out.
+ */
+#ifdef __MIPSEL__
+#define SGI_MSB(regaddr) (regaddr)
+#else
+#define SGI_MSB(regaddr) ((regaddr) | 0x3)
+#endif
+
+#endif /* !(_MIPS_SGI_H) */