sgi-xp: define xpSalError reason code
[platform/kernel/linux-arm64.git] / drivers / misc / sgi-xp / xp.h
index 03a87a3..21cb8a3 100644 (file)
 #define DBUG_ON(condition)
 #endif
 
+#ifndef is_shub1
+#define is_shub1()     0
+#endif
+
+#ifndef is_shub2
+#define is_shub2()     0
+#endif
+
+#ifndef is_shub
+#define is_shub()      (is_shub1() || is_shub2())
+#endif
+
+#ifndef is_uv
+#define is_uv()                0
+#endif
+
 /*
  * Define the maximum number of logically defined partitions the system
  * can support. It is constrained by the maximum number of hardware
@@ -233,8 +249,9 @@ enum xp_retval {
        xpDisconnected,         /* 51: channel disconnected (closed) */
 
        xpBteCopyError,         /* 52: bte_copy() returned error */
+       xpSalError,             /* 53: sn SAL error */
 
-       xpUnknownReason         /* 53: unknown reason - must be last in enum */
+       xpUnknownReason         /* 54: unknown reason - must be last in enum */
 };
 
 /*