Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 910840f2 authored by Corey Minyard's avatar Corey Minyard
Browse files

ipmi_si: Move some platform data into the io structure



That's where it belongs, and we are getting ready for moving the
platform handling out of the main ipmi_si_intf.c file.

Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 1e89a499
Loading
Loading
Loading
Loading
+199 −216

File changed.

Preview size limit exceeded, changes collapsed.

+14 −0
Original line number Diff line number Diff line
@@ -34,12 +34,18 @@
 *  675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include <linux/ipmi.h>

/*
 * This is defined by the state machines themselves, it is an opaque
 * data type for them to use.
 */
struct si_sm_data;

enum si_type {
	SI_KCS, SI_SMIC, SI_BT
};

/*
 * The structure for doing I/O in the state machine.  The state
 * machine doesn't have the actual I/O routines, they are done through
@@ -61,6 +67,14 @@ struct si_sm_io {
	int  regshift;
	int addr_type;
	long addr_data;
	enum ipmi_addr_src addr_source; /* ACPI, PCI, SMBIOS, hardcode, etc. */
	void (*addr_source_cleanup)(struct si_sm_io *io);
	void *addr_source_data;

	int irq;
	u8 slave_addr;
	enum si_type si_type;
	struct device *dev;
};

/* Results of SMI events. */