[PATCH] pass segment

From: Mike Habeck <habeck_at_sgi.com>
Date: 2006-01-12 09:40:24
Bugfix... the altix SN_SAL_IOIF_SLOT_ENABLE & SN_SAL_IOIF_SLOT_DISABLE 
SAL calls need to pass the segment# down

Signed-off-by: Mike Habeck <habeck@sgi.com>


Index: sal_fix/arch/ia64/sn/pci/pcibr/pcibr_provider.c
===================================================================
--- sal_fix.orig/arch/ia64/sn/pci/pcibr/pcibr_provider.c	2006-01-11 11:28:37.243628493 -0600
+++ sal_fix/arch/ia64/sn/pci/pcibr/pcibr_provider.c	2006-01-11 14:23:48.953744738 -0600
@@ -24,13 +24,17 @@
 {
 	struct ia64_sal_retval ret_stuff;
 	uint64_t busnum;
+	u64 segment;
 
 	ret_stuff.status = 0;
 	ret_stuff.v0 = 0;
 
+	segment = soft->pbi_buscommon.bs_persist_segment;
 	busnum = soft->pbi_buscommon.bs_persist_busnum;
-	SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_SLOT_ENABLE, (u64) busnum,
-			(u64) device, (u64) resp, 0, 0, 0, 0);
+
+	SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_SLOT_ENABLE,
+			(u64) segment, (u64) busnum, (u64) device,
+			(u64) resp, 0, 0, 0);
 
 	return (int)ret_stuff.v0;
 }
@@ -41,14 +45,17 @@
 {
 	struct ia64_sal_retval ret_stuff;
 	uint64_t busnum;
+	u64 segment;
 
 	ret_stuff.status = 0;
 	ret_stuff.v0 = 0;
 
+	segment = soft->pbi_buscommon.bs_persist_segment;
 	busnum = soft->pbi_buscommon.bs_persist_busnum;
+
 	SAL_CALL_NOLOCK(ret_stuff, (u64) SN_SAL_IOIF_SLOT_DISABLE,
-			(u64) busnum, (u64) device, (u64) action,
-			(u64) resp, 0, 0, 0);
+			(u64) segment, (u64) busnum, (u64) device,
+			(u64) action, (u64) resp, 0, 0);
 
 	return (int)ret_stuff.v0;
 }
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Thu Jan 12 09:42:10 2006

This archive was generated by hypermail 2.1.8 : 2006-01-12 09:42:17 EST