1 /* SPDX-License-Identifier: GPL-2.0+ */
2 
3 /*
4  * Generic code to add IPMI platform devices.
5  */
6 
7 #include <linux/ipmi.h>
8 
9 struct ipmi_plat_data {
10 	unsigned int type; /* si_type for si, SI_INVALID for others */
11 	unsigned int space; /* addr_space for si, intf# for ssif. */
12 	unsigned long addr;
13 	unsigned int regspacing;
14 	unsigned int regsize;
15 	unsigned int regshift;
16 	unsigned int irq;
17 	unsigned int slave_addr;
18 	enum ipmi_addr_src addr_source;
19 };
20 
21 struct platform_device *ipmi_platform_add(const char *name, unsigned int inst,
22 					  struct ipmi_plat_data *p);
23