diff options
author | Isaku Yamahata <yamahata@valinux.co.jp> | 2011-04-05 11:07:06 +0900 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-04-09 23:52:16 +0200 |
commit | a88df0b9b517b76c1a0052fb1b0fe83080559197 (patch) | |
tree | 4493d5bcb944d3a7f742df007003c7b9f685b0aa /hw/smbus.h | |
parent | a0313c00fcd26530a025ff93edee32959917be8d (diff) | |
download | qemu-a88df0b9b517b76c1a0052fb1b0fe83080559197.zip |
smbus_eeprom: consolidate smbus eeprom creation oc pc_piix, mips_mapta, mips_fulong
consolidate smbus initialization for pc_piix, mips_malta and mips_fulong.
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Huacai Chen <zltjiangshi@gmail.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/smbus.h')
-rw-r--r-- | hw/smbus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/smbus.h b/hw/smbus.h index 571c52dfb1..a39871593b 100644 --- a/hw/smbus.h +++ b/hw/smbus.h @@ -66,3 +66,6 @@ void smbus_write_word(i2c_bus *bus, uint8_t addr, uint8_t command, uint16_t data int smbus_read_block(i2c_bus *bus, uint8_t addr, uint8_t command, uint8_t *data); void smbus_write_block(i2c_bus *bus, uint8_t addr, uint8_t command, uint8_t *data, int len); + +void smbus_eeprom_init(i2c_bus *smbus, int nb_eeprom, + const uint8_t *eeprom_spd, int size); |