diff options
author | Juan Quintela <quintela@redhat.com> | 2009-09-29 22:48:26 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-05 09:32:37 -0500 |
commit | 5b7f53270a613f897a2ff9ea54284dbdd6057873 (patch) | |
tree | e60fe857aa9fa050007a7417a674904e68e52cf1 /hw/smbus.h | |
parent | c7cc172d207d4719a21c8c2a874919eaf2da1273 (diff) | |
download | qemu-5b7f53270a613f897a2ff9ea54284dbdd6057873.tar.gz qemu-5b7f53270a613f897a2ff9ea54284dbdd6057873.tar.bz2 qemu-5b7f53270a613f897a2ff9ea54284dbdd6057873.zip |
i2c: addresses are load/save as uint8_t values, change types to reflect this
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
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); |