summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorGeorgii Staroselskii <georgii.staroselskii@emlid.com>2018-09-11 13:31:10 +0300
committerBin Meng <bmeng.cn@gmail.com>2018-09-17 17:35:53 +0800
commit6321da5263b513f1d6959fb721c33970405e6d1d (patch)
tree2af2847b3196b1ee9bd41f507bd632135e23950f /arch/x86
parentf7ce2d6e65e6319e780a65244b881ec7f7f4c6c1 (diff)
x86: cpu: add docstring to scu_ipc_command()
These comments were copied from the Linux kernel driver in drivers/platform/x86/intel_scu_ipc.c Signed-off-by: Georgii Staroselskii <georgii.staroselskii@emlid.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/scu.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/x86/lib/scu.c b/arch/x86/lib/scu.c
index af241efe83..a6f8297e72 100644
--- a/arch/x86/lib/scu.c
+++ b/arch/x86/lib/scu.c
@@ -180,6 +180,17 @@ int scu_ipc_simple_command(u32 cmd, u32 sub)
return scu_ipc_check_status(scu->regs);
}
+/**
+ * scu_ipc_command - command with data
+ * @cmd: command
+ * @sub: sub type
+ * @in: input data
+ * @inlen: input length in dwords
+ * @out: output data
+ * @outlen: output length in dwords
+ *
+ * Issue a command to the SCU which involves data transfers.
+ */
int scu_ipc_command(u32 cmd, u32 sub, u32 *in, int inlen, u32 *out, int outlen)
{
struct scu *scu;