summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorArun P. Mohanan <arun.p.m@linux.intel.com>2021-03-18 13:18:09 +0300
committerJae Hyun Yoo <jae.hyun.yoo@linux.intel.com>2021-11-05 10:22:15 +0300
commitce5e97f06c185fd6896fa9273c44fcfe6bf550b0 (patch)
tree9d6dbfc97ac14d4dc6b68fd3ebe45c3a78409bf6 /include/uapi
parent17857adb5c4644cb75e0c362745cd89ae9767774 (diff)
downloadlinux-ce5e97f06c185fd6896fa9273c44fcfe6bf550b0.tar.xz
mailbox: ioctl to fetch mailbox size
The size of mailbox differ from AST2500, AST2600 A0 and A1. Add an ioctl support to fetch the mailbox size. Tested: Verfied ioctl call returns mailbox size as expected. Change-Id: I4e261aaf8aa3fb108d6ad152d30a17b114d70ccd Signed-off-by: Arun P. Mohanan <arun.p.m@linux.intel.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/aspeed-lpc-mbox.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uapi/linux/aspeed-lpc-mbox.h b/include/uapi/linux/aspeed-lpc-mbox.h
new file mode 100644
index 000000000000..dbb8a7f24222
--- /dev/null
+++ b/include/uapi/linux/aspeed-lpc-mbox.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later WITH Linux-syscall-note */
+/* Copyright (c) 2021 Intel Corporation */
+
+struct aspeed_mbox_ioctl_data {
+ unsigned int data;
+};
+
+#define ASPEED_MBOX_IOCTL_BASE 0xA3
+
+#define ASPEED_MBOX_SIZE \
+ _IOR(ASPEED_MBOX_IOCTL_BASE, 0, struct aspeed_mbox_ioctl_data)