diff options
author | Corey Minyard <cminyard@mvista.com> | 2017-06-09 21:19:52 -0500 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2017-06-19 12:49:36 -0500 |
commit | 9f88145f1871456de67ae6a242ac2661187bd4ff (patch) | |
tree | 7062dcbf1cf77363031afbdfaabe9e07d8552770 /drivers/char/ipmi/ipmi_dmi.h | |
parent | cdea46566bb21ce309725a024208322a409055cc (diff) | |
download | op-kernel-dev-9f88145f1871456de67ae6a242ac2661187bd4ff.zip op-kernel-dev-9f88145f1871456de67ae6a242ac2661187bd4ff.tar.gz |
ipmi: Create a platform device for a DMI-specified IPMI interface
Create a platform device for each IPMI device in the DMI table,
a separate kind of device for SSIF types and for KCS, BT, and
SMIC types. This is so auto-loading IPMI devices will work
from just SMBIOS tables.
This also adds the ability to extract the slave address from
the SMBIOS tables, so that when the driver uses ACPI-specified
interfaces, it can still extract the slave address from SMBIOS.
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Andy Lutomirski <luto@kernel.org>
Diffstat (limited to 'drivers/char/ipmi/ipmi_dmi.h')
-rw-r--r-- | drivers/char/ipmi/ipmi_dmi.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/char/ipmi/ipmi_dmi.h b/drivers/char/ipmi/ipmi_dmi.h new file mode 100644 index 0000000..0a1afe5 --- /dev/null +++ b/drivers/char/ipmi/ipmi_dmi.h @@ -0,0 +1,12 @@ +/* + * DMI defines for use by IPMI + */ + +#define IPMI_DMI_TYPE_KCS 0x01 +#define IPMI_DMI_TYPE_SMIC 0x02 +#define IPMI_DMI_TYPE_BT 0x03 +#define IPMI_DMI_TYPE_SSIF 0x04 + +#ifdef CONFIG_IPMI_DMI_DECODE +int ipmi_dmi_get_slave_addr(int type, u32 flags, unsigned long base_addr); +#endif |