Revision 81a322d4 hw/smbus.h
b/hw/smbus.h | ||
---|---|---|
37 | 37 |
|
38 | 38 |
typedef struct { |
39 | 39 |
I2CSlaveInfo i2c; |
40 |
void (*init)(SMBusDevice *dev);
|
|
40 |
int (*init)(SMBusDevice *dev);
|
|
41 | 41 |
void (*quick_cmd)(SMBusDevice *dev, uint8_t read); |
42 | 42 |
void (*send_byte)(SMBusDevice *dev, uint8_t val); |
43 | 43 |
uint8_t (*receive_byte)(SMBusDevice *dev); |
Also available in: Unified diff