Lines Matching +full:ipmi +full:- +full:bt
1 // SPDX-License-Identifier: GPL-2.0+
5 * Handling for dynamically adding/removing IPMI devices through
12 #include <linux/ipmi.h>
21 " Documentation/driver-api/ipmi.rst in the kernel sources for the"
26 * add|remove,kcs|bt|smic,mem|i/o,<address>[,<opt1>[,<opt2>[,...]]]
49 { "bt", SI_BT },
68 return -EINVAL; in parse_str()
81 return -EINVAL; in parse_str()
92 return -EINVAL; in check_hotmod_int_op()
97 return -EINVAL; in check_hotmod_int_op()
111 h->iftype = IPMI_PLAT_IF_SI; in parse_hotmod_str()
120 h->type = ival; in parse_hotmod_str()
125 h->space = ival; in parse_hotmod_str()
132 rv = kstrtoul(curr, 0, &h->addr); in parse_hotmod_str()
150 rv = check_hotmod_int_op(curr, o, "rsp", &h->regspacing); in parse_hotmod_str()
155 rv = check_hotmod_int_op(curr, o, "rsi", &h->regsize); in parse_hotmod_str()
160 rv = check_hotmod_int_op(curr, o, "rsh", &h->regshift); in parse_hotmod_str()
165 rv = check_hotmod_int_op(curr, o, "irq", &h->irq); in parse_hotmod_str()
170 rv = check_hotmod_int_op(curr, o, "ipmb", &h->slave_addr); in parse_hotmod_str()
177 return -EINVAL; in parse_hotmod_str()
180 h->addr_source = SI_HOTMOD; in parse_hotmod_str()
195 return -ENOMEM; in hotmod_handler()
199 ival = len - 1; in hotmod_handler()
202 ival--; in hotmod_handler()
220 ipmi_platform_add("hotmod-ipmi-si", in hotmod_handler()
231 if (strcmp(pdev->name, "hotmod-ipmi-si") == 0) in hotmod_handler()
246 ipmi_remove_platform_device_by_name("hotmod-ipmi-si"); in ipmi_si_hotmod_exit()