Revision 074f2fff hw/i2c.h
b/hw/i2c.h | ||
---|---|---|
57 | 57 |
#define I2C_SLAVE_FROM_QDEV(dev) DO_UPCAST(i2c_slave, qdev, dev) |
58 | 58 |
#define FROM_I2C_SLAVE(type, dev) DO_UPCAST(type, i2c, dev) |
59 | 59 |
|
60 |
void i2c_register_slave(const char *name, int size, I2CSlaveInfo *type);
|
|
60 |
void i2c_register_slave(I2CSlaveInfo *type); |
|
61 | 61 |
|
62 | 62 |
DeviceState *i2c_create_slave(i2c_bus *bus, const char *name, int addr); |
63 | 63 |
|
Also available in: Unified diff