From: dcn@sgi.com (Dean Nelson)
To: linux-ia64@vger.kernel.org
Subject: [PATCH] add OEM SAL call functions
Date: Fri, 20 Aug 2004 15:22:04 +0000 [thread overview]
Message-ID: <4126171C.mailx2731118NN@aqua.americas.sgi.com> (raw)
Add wrapper functions for SAL_CALL(), SAL_CALL_NOLOCK(), and
SAL_CALL_REENTRANT() that allow OEM written modules to make calls
to OEM SAL functions.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Index: linux/arch/ia64/kernel/sal.c
=================================--- linux.orig/arch/ia64/kernel/sal.c 2004-08-17 13:31:18.000000000 -0500
+++ linux/arch/ia64/kernel/sal.c 2004-08-20 07:40:35.000000000 -0500
@@ -10,6 +10,7 @@
#include <linux/kernel.h>
#include <linux/init.h>
+#include <linux/module.h>
#include <linux/spinlock.h>
#include <linux/string.h>
@@ -262,3 +263,39 @@
p += SAL_DESC_SIZE(*p);
}
}
+
+int
+oem_sal_call(struct ia64_sal_retval *isrvp, u64 oemfunc, u64 arg1, u64 arg2,
+ u64 arg3, u64 arg4, u64 arg5, u64 arg6, u64 arg7)
+{
+ if (oemfunc < 0x02000000 || oemfunc > 0x03ffffff)
+ return -1;
+ SAL_CALL(*isrvp, oemfunc, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
+ return 0;
+}
+EXPORT_SYMBOL(oem_sal_call);
+
+int
+oem_sal_call_nolock(struct ia64_sal_retval *isrvp, u64 oemfunc, u64 arg1,
+ u64 arg2, u64 arg3, u64 arg4, u64 arg5, u64 arg6, u64 arg7)
+{
+ if (oemfunc < 0x02000000 || oemfunc > 0x03ffffff)
+ return -1;
+ SAL_CALL_NOLOCK(*isrvp, oemfunc, arg1, arg2, arg3, arg4, arg5, arg6,
+ arg7);
+ return 0;
+}
+EXPORT_SYMBOL(oem_sal_call_nolock);
+
+int
+oem_sal_call_reentrant(struct ia64_sal_retval *isrvp, u64 oemfunc, u64 arg1,
+ u64 arg2, u64 arg3, u64 arg4, u64 arg5, u64 arg6,
+ u64 arg7)
+{
+ if (oemfunc < 0x02000000 || oemfunc > 0x03ffffff)
+ return -1;
+ SAL_CALL_REENTRANT(*isrvp, oemfunc, arg1, arg2, arg3, arg4, arg5, arg6,
+ arg7);
+ return 0;
+}
+EXPORT_SYMBOL(oem_sal_call_reentrant);
Index: linux/include/asm-ia64/sal.h
=================================--- linux.orig/include/asm-ia64/sal.h 2004-06-16 00:20:04.000000000 -0500
+++ linux/include/asm-ia64/sal.h 2004-08-20 07:46:55.000000000 -0500
@@ -819,6 +819,13 @@
long r8; long r9; long r10; long r11;
};
+extern int oem_sal_call(struct ia64_sal_retval *, u64, u64, u64, u64, u64, u64,
+ u64, u64);
+extern int oem_sal_call_nolock(struct ia64_sal_retval *, u64, u64, u64, u64,
+ u64, u64, u64, u64);
+extern int oem_sal_call_reentrant(struct ia64_sal_retval *, u64, u64, u64, u64,
+ u64, u64, u64, u64);
+
#endif /* __ASSEMBLY__ */
#endif /* _ASM_IA64_SAL_H */
next reply other threads:[~2004-08-20 15:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-20 15:22 Dean Nelson [this message]
2004-08-20 17:17 ` [PATCH] add OEM SAL call functions Dean Nelson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4126171C.mailx2731118NN@aqua.americas.sgi.com \
--to=dcn@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox