Revision a5c82852 hw/i2c/bitbang_i2c.c
b/hw/i2c/bitbang_i2c.c | ||
---|---|---|
46 | 46 |
} bitbang_i2c_state; |
47 | 47 |
|
48 | 48 |
struct bitbang_i2c_interface { |
49 |
i2c_bus *bus;
|
|
49 |
I2CBus *bus;
|
|
50 | 50 |
bitbang_i2c_state state; |
51 | 51 |
int last_data; |
52 | 52 |
int last_clock; |
... | ... | |
170 | 170 |
abort(); |
171 | 171 |
} |
172 | 172 |
|
173 |
bitbang_i2c_interface *bitbang_i2c_init(i2c_bus *bus)
|
|
173 |
bitbang_i2c_interface *bitbang_i2c_init(I2CBus *bus)
|
|
174 | 174 |
{ |
175 | 175 |
bitbang_i2c_interface *s; |
176 | 176 |
|
... | ... | |
213 | 213 |
{ |
214 | 214 |
DeviceState *dev = DEVICE(sbd); |
215 | 215 |
GPIOI2CState *s = GPIO_I2C(dev); |
216 |
i2c_bus *bus;
|
|
216 |
I2CBus *bus;
|
|
217 | 217 |
|
218 | 218 |
memory_region_init(&s->dummy_iomem, OBJECT(s), "gpio_i2c", 0); |
219 | 219 |
sysbus_init_mmio(sbd, &s->dummy_iomem); |
Also available in: Unified diff