summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRuss Anderson <rja@sgi.com>2005-04-25 13:19:52 -0700
committerTony Luck <tony.luck@intel.com>2005-04-25 13:19:52 -0700
commit93a07d0a0e7b013ee73fb39d4edb07b47288912e (patch)
treee68ba0b39bcc8a9e844889af1229c024be29e95c /include
parent95ff439a517835aa2bdf725fafbb025a63984289 (diff)
downloadlinux-stable-93a07d0a0e7b013ee73fb39d4edb07b47288912e.tar.gz
linux-stable-93a07d0a0e7b013ee73fb39d4edb07b47288912e.tar.bz2
linux-stable-93a07d0a0e7b013ee73fb39d4edb07b47288912e.zip
[IA64-SGI] Shub2 BTE support - BTE recovery code
patch 2: Shub2 BTE recovery code will be implemented in SAL. Define the SAL interface. Modify bte_error to call SAL for shub2. Signed-off-by: Russ Anderson <rja@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ia64/sn/sn_sal.h19
1 files changed, 17 insertions, 2 deletions
diff --git a/include/asm-ia64/sn/sn_sal.h b/include/asm-ia64/sn/sn_sal.h
index 410d356b40da..581f9a783045 100644
--- a/include/asm-ia64/sn/sn_sal.h
+++ b/include/asm-ia64/sn/sn_sal.h
@@ -8,7 +8,7 @@
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*
- * Copyright (c) 2000-2004 Silicon Graphics, Inc. All rights reserved.
+ * Copyright (c) 2000-2005 Silicon Graphics, Inc. All rights reserved.
*/
@@ -77,7 +77,7 @@
#define SN_SAL_IOIF_GET_PCI_TOPOLOGY 0x02000059
#define SN_SAL_HUB_ERROR_INTERRUPT 0x02000060
-
+#define SN_SAL_BTE_RECOVER 0x02000061
/*
* Service-specific constants
@@ -1023,4 +1023,19 @@ ia64_sn_ioif_get_pci_topology(u64 rack, u64 bay, u64 slot, u64 slab,
return (int) rv.status;
}
+/*
+ * BTE error recovery is implemented in SAL
+ */
+static inline int
+ia64_sn_bte_recovery(nasid_t nasid)
+{
+ struct ia64_sal_retval rv;
+
+ rv.status = 0;
+ SAL_CALL_NOLOCK(rv, SN_SAL_BTE_RECOVER, 0, 0, 0, 0, 0, 0, 0);
+ if (rv.status == SALRET_NOT_IMPLEMENTED)
+ return 0;
+ return (int) rv.status;
+}
+
#endif /* _ASM_IA64_SN_SN_SAL_H */