summaryrefslogtreecommitdiff
path: root/include/uapi/linux/ipmi_ssif_bmc.h
diff options
context:
space:
mode:
authorQuan Nguyen <quan@os.amperecomputing.com>2022-10-04 16:31:04 +0700
committerCorey Minyard <cminyard@mvista.com>2022-10-17 09:51:26 -0500
commitdd2bc5cc9e25554546f16661f8de1dcb8033dde0 (patch)
tree19adf21125f3d3810a726e568143b1b5fe10c53f /include/uapi/linux/ipmi_ssif_bmc.h
parent9abf2313adc1ca1b6180c508c25f22f9395cc780 (diff)
ipmi: ssif_bmc: Add SSIF BMC driver
The SMBus system interface (SSIF) IPMI BMC driver can be used to perform in-band IPMI communication with their host in management (BMC) side. Thanks Dan for the copy_from_user() fix in the link below. Link: https://lore.kernel.org/linux-arm-kernel/20220310114119.13736-4-quan@os.amperecomputing.com/ Signed-off-by: Quan Nguyen <quan@os.amperecomputing.com> Message-Id: <20221004093106.1653317-2-quan@os.amperecomputing.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/uapi/linux/ipmi_ssif_bmc.h')
-rw-r--r--include/uapi/linux/ipmi_ssif_bmc.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/ipmi_ssif_bmc.h b/include/uapi/linux/ipmi_ssif_bmc.h
new file mode 100644
index 000000000000..1c6a753dad08
--- /dev/null
+++ b/include/uapi/linux/ipmi_ssif_bmc.h
@@ -0,0 +1,18 @@
+/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note*/
+/*
+ * Copyright (c) 2022, Ampere Computing LLC.
+ */
+
+#ifndef _UAPI_LINUX_IPMI_SSIF_BMC_H
+#define _UAPI_LINUX_IPMI_SSIF_BMC_H
+
+#include <linux/types.h>
+
+/* Max length of ipmi ssif message included netfn and cmd field */
+#define IPMI_SSIF_PAYLOAD_MAX 254
+struct ipmi_ssif_msg {
+ unsigned int len;
+ __u8 payload[IPMI_SSIF_PAYLOAD_MAX];
+};
+
+#endif /* _UAPI_LINUX_IPMI_SSIF_BMC_H */