History

Merge tag 'for-linus-5.16-1' of https://github.com/cminyard/linux-ipmi

Pull IPMI driver updates from Corey Minyard: "A new type of low-level IPMI driver is added for direct communication over the IPMI message bus without a BMC between the driver and the bus. Other than that, lots of little bug fixes and enhancements" * tag 'for-linus-5.16-1' of https://github.com/cminyard/linux-ipmi: ipmi: kcs_bmc: Fix a memory leak in the error handling path of 'kcs_bmc_serio_add_device()' char: ipmi: replace snprintf in show functions with sysfs_emit ipmi: ipmb: fix dependencies to eliminate build error ipmi:ipmb: Add OF support ipmi: bt: Add ast2600 compatible string ipmi: bt-bmc: Use registers directly ipmi: ipmb: Fix off-by-one size check on rcvlen ipmi:ssif: Use depends on, not select, for I2C ipmi: Add docs for the IPMI IPMB driver ipmi: Add docs for IPMB direct addressing ipmi:ipmb: Add initial support for IPMI over IPMB ipmi: Add support for IPMB direct messages ipmi: Export ipmb_checksum() ipmi: Fix a typo ipmi: Check error code before processing BMC response ipmi:devintf: Return a proper error when recv buffer too small ipmi: Disable some operations during a panic ipmi:watchdog: Set panic count to proper value on a panic

Linus Torvalds committed 5 years ago

Commit 316b7ea2 parents 4dee060 f281d0116 files · +1078 −123Browse files

Showing the changes to include/uapi/linux (1 of 16 files). Show all

Unified · Split

include/uapi/linux/ipmi.h+15−1
@@ -80,6 +80,20 @@ struct ipmi_ipmb_addr { · 79 unmodified lines
8080 unsigned char lun;
8181 };
8282
83+/*
84+ * Used for messages received directly from an IPMB that have not gone
85+ * through a MC. This is for systems that sit right on an IPMB so
86+ * they can receive commands and respond to them.
87+ */
88+#define IPMI_IPMB_DIRECT_ADDR_TYPE 0x81
89+struct ipmi_ipmb_direct_addr {
90+ int addr_type;
91+ short channel;
92+ unsigned char slave_addr;
93+ unsigned char rs_lun;
94+ unsigned char rq_lun;
95+};
96+
8397 /*
8498 * A LAN Address. This is an address to/from a LAN interface bridged
8599 * by the BMC, not an address actually out on the LAN.
@@ -158,7 +172,7 @@ struct kernel_ipmi_msg { · 72 unmodified lines
158172 * is used for the receive in-kernel interface and in the receive
159173 * IOCTL.
160174 *
161− * The "IPMI_RESPONSE_RESPNOSE_TYPE" is a little strange sounding, but
175+ * The "IPMI_RESPONSE_RESPONSE_TYPE" is a little strange sounding, but
162176 * it allows you to get the message results when you send a response
163177 * message.
164178 */