qemu-e2k/hw/i2c
Corey Minyard fd9df33f08 i2c:smbus_eeprom: Add vmstate handling to the smbus eeprom
Transfer the state of the EEPROM on a migration.  This way the
data remains consistent on migration.

This required moving the actual data to a separate array and
using the data provided in the init function as a separate
initialization array, since a pointer property has to be a
void * and the array needs to be uint8_t[].

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2019-02-27 21:06:08 -06:00
..
aspeed_i2c.c i2c: Don't check return value from i2c_recv() 2019-02-27 21:06:08 -06:00
bitbang_i2c.c
bitbang_i2c.h
core.c i2c: have I2C receive operation return uint8_t 2019-02-27 21:06:08 -06:00
exynos4210_i2c.c i2c: Don't check return value from i2c_recv() 2019-02-27 21:06:08 -06:00
i2c-ddc.c i2c: have I2C receive operation return uint8_t 2019-02-27 21:06:08 -06:00
imx_i2c.c i2c: Don't check return value from i2c_recv() 2019-02-27 21:06:08 -06:00
Makefile.objs i2c: Split smbus into parts 2019-02-27 21:06:08 -06:00
microbit_i2c.c arm: Stub out NRF51 TWI magnetometer/accelerometer detection 2019-01-29 11:46:03 +00:00
omap_i2c.c
pm_smbus.c i2c:pm_smbus: Fix state transfer 2019-02-27 21:06:08 -06:00
ppc4xx_i2c.c
smbus_eeprom.c i2c:smbus_eeprom: Add vmstate handling to the smbus eeprom 2019-02-27 21:06:08 -06:00
smbus_ich9.c i2c:pm_smbus: Fix state transfer 2019-02-27 21:06:08 -06:00
smbus_master.c i2c: Split smbus into parts 2019-02-27 21:06:08 -06:00
smbus_slave.c i2c:smbus_slave: Add an SMBus vmstate structure 2019-02-27 21:06:08 -06:00
trace-events
versatile_i2c.c