summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/ipmi_bmc.h
diff options
context:
space:
mode:
authorHaiyue Wang2018-02-02 03:16:10 +0100
committerCorey Minyard2018-02-26 16:21:28 +0100
commit20d60f61c58e8c937f3653819816dd203e6e3cb4 (patch)
tree1c3bd754e43f96688297f23953f0d25309f6412d /include/uapi/linux/ipmi_bmc.h
parentMerge tag 'xtensa-20180225' of git://github.com/jcmvbkbc/linux-xtensa (diff)
downloadkernel-qcow2-linux-20d60f61c58e8c937f3653819816dd203e6e3cb4.tar.gz
kernel-qcow2-linux-20d60f61c58e8c937f3653819816dd203e6e3cb4.tar.xz
kernel-qcow2-linux-20d60f61c58e8c937f3653819816dd203e6e3cb4.zip
ipmi: add a KCS IPMI BMC driver
Provides a device driver for the KCS (Keyboard Controller Style) IPMI interface which meets the requirement of the BMC (Baseboard Management Controllers) side for handling the IPMI request from host system software. Signed-off-by: Haiyue Wang <haiyue.wang@linux.intel.com> [Removed the selectability of IPMI_KCS_BMC, as it doesn't do much good to have it by itself.] Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'include/uapi/linux/ipmi_bmc.h')
-rw-r--r--include/uapi/linux/ipmi_bmc.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/uapi/linux/ipmi_bmc.h b/include/uapi/linux/ipmi_bmc.h
new file mode 100644
index 000000000000..2f9f97e6123a
--- /dev/null
+++ b/include/uapi/linux/ipmi_bmc.h
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0
+// Copyright (c) 2015-2018, Intel Corporation.
+
+#ifndef _UAPI_LINUX_IPMI_BMC_H
+#define _UAPI_LINUX_IPMI_BMC_H
+
+#include <linux/ioctl.h>
+
+#define __IPMI_BMC_IOCTL_MAGIC 0xB1
+#define IPMI_BMC_IOCTL_SET_SMS_ATN _IO(__IPMI_BMC_IOCTL_MAGIC, 0x00)
+#define IPMI_BMC_IOCTL_CLEAR_SMS_ATN _IO(__IPMI_BMC_IOCTL_MAGIC, 0x01)
+#define IPMI_BMC_IOCTL_FORCE_ABORT _IO(__IPMI_BMC_IOCTL_MAGIC, 0x02)
+
+#endif /* _UAPI_LINUX_KCS_BMC_H */