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

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
This diff is collapsed.
...@@ -34,12 +34,18 @@ ...@@ -34,12 +34,18 @@
* 675 Mass Ave, Cambridge, MA 02139, USA. * 675 Mass Ave, Cambridge, MA 02139, USA.
*/ */
#include <linux/ipmi.h>
/* /*
* This is defined by the state machines themselves, it is an opaque * This is defined by the state machines themselves, it is an opaque
* data type for them to use. * data type for them to use.
*/ */
struct si_sm_data; 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 * 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 * machine doesn't have the actual I/O routines, they are done through
...@@ -61,6 +67,14 @@ struct si_sm_io { ...@@ -61,6 +67,14 @@ struct si_sm_io {
int regshift; int regshift;
int addr_type; int addr_type;
long addr_data; 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. */ /* Results of SMI events. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment