aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/apple-mailbox.h
diff options
context:
space:
mode:
authorSven Peter <sven@svenpeter.dev>2021-10-25 08:22:04 +0200
committerJassi Brar <jaswinder.singh@linaro.org>2021-10-29 22:34:31 -0500
commitf89f9c56e7372b2dda144f83dce61311b298c559 (patch)
treee964f51c27034439882dd3856f1fc688bb173f0b /include/linux/apple-mailbox.h
parentdt-bindings: mailbox: Add Apple mailbox bindings (diff)
downloadlinux-dev-f89f9c56e7372b2dda144f83dce61311b298c559.tar.xz
linux-dev-f89f9c56e7372b2dda144f83dce61311b298c559.zip
mailbox: apple: Add driver for Apple mailboxes
Apple SoCs such as the M1 come with various co-processors. Mailboxes are used to communicate with those. This driver adds support for two variants of those mailboxes. Signed-off-by: Sven Peter <sven@svenpeter.dev> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux/apple-mailbox.h')
-rw-r--r--include/linux/apple-mailbox.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/linux/apple-mailbox.h b/include/linux/apple-mailbox.h
new file mode 100644
index 000000000000..720fbb70294a
--- /dev/null
+++ b/include/linux/apple-mailbox.h
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: GPL-2.0-only OR MIT */
+/*
+ * Apple mailbox message format
+ *
+ * Copyright (C) 2021 The Asahi Linux Contributors
+ */
+
+#ifndef _LINUX_APPLE_MAILBOX_H_
+#define _LINUX_APPLE_MAILBOX_H_
+
+#include <linux/types.h>
+
+/* encodes a single 96bit message sent over the single channel */
+struct apple_mbox_msg {
+ u64 msg0;
+ u32 msg1;
+};
+
+#endif