[openib-general] [PATCH ofed-1.2 5/6] ehca: backport 2.6.18
Hoang-Nam Nguyen
hnguyen at linux.vnet.ibm.com
Fri Jan 26 17:34:40 PST 2007
backport hvcall for 2.6.18
Signed-off-by: Hoang-Nam Nguyen <hnguyen at de.ibm.com>
---
hvcall.h | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+)
diff -Nurp ofed_1_2_jan26/kernel_addons/backport/2.6.18/include/asm/hvcall.h ofed_1_2_nam/kernel_addons/backport/2.6.18/include/asm/hvcall.h
--- ofed_1_2_jan26/kernel_addons/backport/2.6.18/include/asm/hvcall.h 1970-01-01 01:00:00.000000000 +0100
+++ ofed_1_2_nam/kernel_addons/backport/2.6.18/include/asm/hvcall.h 2007-01-27 00:29:44.000000000 +0100
@@ -0,0 +1,32 @@
+#ifndef ASM_HVCALL_BACKPORT_2618_H
+#define ASM_HVCALL_BACKPORT_2618_H
+
+#include_next <asm/hvcall.h>
+
+#ifdef __KERNEL__
+
+#define PLPAR_HCALL9_BUFSIZE 9
+
+inline static long plpar_hcall9(unsigned long opcode,
+ unsigned long *retbuf,
+ unsigned long arg1, /* <R4 */
+ unsigned long arg2, /* <R5 */
+ unsigned long arg3, /* <R6 */
+ unsigned long arg4, /* <R7 */
+ unsigned long arg5, /* <R8 */
+ unsigned long arg6, /* <R9 */
+ unsigned long arg7, /* <R10 */
+ unsigned long arg8, /* <R11 */
+ unsigned long arg9 /* <R12 */
+ )
+{
+ return plpar_hcall_9arg_9ret(opcode,
+ arg1, arg2, arg3, arg4, arg5,
+ arg6, arg7, arg8, arg9,
+ retbuf, &retbuf[1], &retbuf[2],
+ &retbuf[3], &retbuf[4], &retbuf[5],
+ &retbuf[6], &retbuf[7], &retbuf[8]);
+}
+
+#endif /* __KERNEL__ */
+#endif
More information about the general
mailing list