aboutsummaryrefslogtreecommitdiff
path: root/hw/i2c.h
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 23:16:53 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-01 23:16:53 +0000
commitc701b35b42d50537122486e47006d1c6ce952240 (patch)
tree4184adb750076dba546efe1bf8c3b80c216ac35d /hw/i2c.h
parent75f482aeeda361929262be918faf90fb75ab8e33 (diff)
Fix i2c save/restore.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4820 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/i2c.h')
-rw-r--r--hw/i2c.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/i2c.h b/hw/i2c.h
index f297237b72..d3e4352b1f 100644
--- a/hw/i2c.h
+++ b/hw/i2c.h
@@ -30,6 +30,7 @@ struct i2c_slave
/* Remaining fields for internal use by the I2C code. */
int address;
void *next;
+ i2c_bus *bus;
};
i2c_bus *i2c_init_bus(void);
@@ -41,8 +42,6 @@ void i2c_end_transfer(i2c_bus *bus);
void i2c_nack(i2c_bus *bus);
int i2c_send(i2c_bus *bus, uint8_t data);
int i2c_recv(i2c_bus *bus);
-void i2c_bus_save(QEMUFile *f, i2c_bus *bus);
-void i2c_bus_load(QEMUFile *f, i2c_bus *bus);
void i2c_slave_save(QEMUFile *f, i2c_slave *dev);
void i2c_slave_load(QEMUFile *f, i2c_slave *dev);