diff options
Diffstat (limited to 'hw/smbus.h')
-rw-r--r-- | hw/smbus.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/hw/smbus.h b/hw/smbus.h index d582e6dc42..571c52dfb1 100644 --- a/hw/smbus.h +++ b/hw/smbus.h @@ -56,13 +56,13 @@ typedef struct { void smbus_register_device(SMBusDeviceInfo *info); /* Master device commands. */ -void smbus_quick_command(i2c_bus *bus, int addr, int read); -uint8_t smbus_receive_byte(i2c_bus *bus, int addr); -void smbus_send_byte(i2c_bus *bus, int addr, uint8_t data); -uint8_t smbus_read_byte(i2c_bus *bus, int addr, uint8_t command); -void smbus_write_byte(i2c_bus *bus, int addr, uint8_t command, uint8_t data); -uint16_t smbus_read_word(i2c_bus *bus, int addr, uint8_t command); -void smbus_write_word(i2c_bus *bus, int addr, uint8_t command, uint16_t data); -int smbus_read_block(i2c_bus *bus, int addr, uint8_t command, uint8_t *data); -void smbus_write_block(i2c_bus *bus, int addr, uint8_t command, uint8_t *data, +void smbus_quick_command(i2c_bus *bus, uint8_t addr, int read); +uint8_t smbus_receive_byte(i2c_bus *bus, uint8_t addr); +void smbus_send_byte(i2c_bus *bus, uint8_t addr, uint8_t data); +uint8_t smbus_read_byte(i2c_bus *bus, uint8_t addr, uint8_t command); +void smbus_write_byte(i2c_bus *bus, uint8_t addr, uint8_t command, uint8_t data); +uint16_t smbus_read_word(i2c_bus *bus, uint8_t addr, uint8_t command); +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); |