summaryrefslogtreecommitdiff
path: root/include/uapi/linux/fsl_mc.h
diff options
context:
space:
mode:
authorIoana Ciornei <ioana.ciornei@nxp.com>2021-01-14 20:07:48 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-01-27 17:13:52 +0300
commit8544717cdacc2f33f0f53a3b34c5125b37e13ce9 (patch)
tree1bc844a038dadc1600eb6fd684bdb76093e88c6c /include/uapi/linux/fsl_mc.h
parent2f6055c26f1913763eabc66c7c27d0693561e966 (diff)
downloadlinux-8544717cdacc2f33f0f53a3b34c5125b37e13ce9.tar.xz
bus: fsl-mc: move fsl_mc_command struct in a uapi header
Define "struct fsl_mc_command" as a structure that can cross the user/kernel boundary. Acked-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20210114170752.2927915-2-ciorneiioana@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/fsl_mc.h')
-rw-r--r--include/uapi/linux/fsl_mc.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/uapi/linux/fsl_mc.h b/include/uapi/linux/fsl_mc.h
new file mode 100644
index 000000000000..cf56d46f052e
--- /dev/null
+++ b/include/uapi/linux/fsl_mc.h
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
+/*
+ * Management Complex (MC) userspace public interface
+ *
+ * Copyright 2021 NXP
+ *
+ */
+#ifndef _UAPI_FSL_MC_H_
+#define _UAPI_FSL_MC_H_
+
+#include <linux/types.h>
+
+#define MC_CMD_NUM_OF_PARAMS 7
+
+/**
+ * struct fsl_mc_command - Management Complex (MC) command structure
+ * @header: MC command header
+ * @params: MC command parameters
+ */
+struct fsl_mc_command {
+ __le64 header;
+ __le64 params[MC_CMD_NUM_OF_PARAMS];
+};
+
+#endif /* _UAPI_FSL_MC_H_ */