aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mailbox
diff options
context:
space:
mode:
authorWendy Liang <wendy.liang@xilinx.com>2019-02-21 16:36:33 -0800
committerJassi Brar <jaswinder.singh@linaro.org>2019-03-06 20:34:20 -0600
commit4981b82ba2ff87df6a711fcd7a233c615df5fc79 (patch)
tree2c68d1664faa2e0dcf8364c0977066cc1230874b /include/linux/mailbox
parentmailbox: stm32-ipcc: remove useless device_init_wakeup call (diff)
downloadlinux-dev-4981b82ba2ff87df6a711fcd7a233c615df5fc79.tar.xz
linux-dev-4981b82ba2ff87df6a711fcd7a233c615df5fc79.zip
mailbox: ZynqMP IPI mailbox controller
This patch is to introduce ZynqMP IPI mailbox controller driver to use the ZynqMP IPI block as mailboxes. Signed-off-by: Wendy Liang <wendy.liang@xilinx.com> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/mailbox')
-rw-r--r--include/linux/mailbox/zynqmp-ipi-message.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/mailbox/zynqmp-ipi-message.h b/include/linux/mailbox/zynqmp-ipi-message.h
new file mode 100644
index 000000000000..9542b41eacfd
--- /dev/null
+++ b/include/linux/mailbox/zynqmp-ipi-message.h
@@ -0,0 +1,20 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+
+#ifndef _LINUX_ZYNQMP_IPI_MESSAGE_H_
+#define _LINUX_ZYNQMP_IPI_MESSAGE_H_
+
+/**
+ * struct zynqmp_ipi_message - ZynqMP IPI message structure
+ * @len: Length of message
+ * @data: message payload
+ *
+ * This is the structure for data used in mbox_send_message
+ * the maximum length of data buffer is fixed to 12 bytes.
+ * Client is supposed to be aware of this.
+ */
+struct zynqmp_ipi_message {
+ size_t len;
+ u8 data[0];
+};
+
+#endif /* _LINUX_ZYNQMP_IPI_MESSAGE_H_ */