mirror of https://github.com/xemu-project/xemu.git
smbus: Replace smbus_eeprom_init_single with new upstream equivalent
This commit is contained in:
parent
a0dad83029
commit
aa32236d5a
|
@ -162,15 +162,3 @@ void smbus_eeprom_init(I2CBus *smbus, int nb_eeprom,
|
|||
smbus_eeprom_init_one(smbus, 0x50 + i, eeprom_buf + (i * 256));
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef XBOX
|
||||
void smbus_eeprom_init_single(I2CBus *smbus, int address,
|
||||
uint8_t *eeprom_buf)
|
||||
{
|
||||
DeviceState *eeprom;
|
||||
eeprom = qdev_create((BusState *)smbus, "smbus-eeprom");
|
||||
qdev_prop_set_uint8(eeprom, "address", address);
|
||||
qdev_prop_set_ptr(eeprom, "data", eeprom_buf);
|
||||
qdev_init_nofail(eeprom);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -412,7 +412,7 @@ void xbox_init_common(MachineState *machine,
|
|||
/* smbus devices */
|
||||
uint8_t *eeprom_buf = g_malloc0(256);
|
||||
memcpy(eeprom_buf, eeprom, 256);
|
||||
smbus_eeprom_init_single(smbus, 0x54, eeprom_buf);
|
||||
smbus_eeprom_init_one(smbus, 0x54, eeprom_buf);
|
||||
|
||||
smbus_xbox_smc_init(smbus, 0x10);
|
||||
smbus_cx25871_init(smbus, 0x45);
|
||||
|
|
|
@ -80,9 +80,4 @@ void smbus_eeprom_init_one(I2CBus *smbus, uint8_t address, uint8_t *eeprom_buf);
|
|||
void smbus_eeprom_init(I2CBus *smbus, int nb_eeprom,
|
||||
const uint8_t *eeprom_spd, int size);
|
||||
|
||||
#ifdef XBOX
|
||||
void smbus_eeprom_init_single(I2CBus *smbus, int address,
|
||||
uint8_t *eeprom_buf);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue