These changes are the raw update to qemu-2.6.
[kvmfornfv.git] / qemu / tests / libqos / i2c.c
1 /*
2  * QTest I2C driver
3  *
4  * Copyright (c) 2012 Andreas Färber
5  *
6  * This work is licensed under the terms of the GNU GPL, version 2 or later.
7  * See the COPYING file in the top-level directory.
8  */
9 #include "qemu/osdep.h"
10 #include "libqos/i2c.h"
11 #include "libqtest.h"
12
13 void i2c_send(I2CAdapter *i2c, uint8_t addr,
14               const uint8_t *buf, uint16_t len)
15 {
16     i2c->send(i2c, addr, buf, len);
17 }
18
19 void i2c_recv(I2CAdapter *i2c, uint8_t addr,
20               uint8_t *buf, uint16_t len)
21 {
22     i2c->recv(i2c, addr, buf, len);
23 }