hw/grackle: fix PCI bus initialization
[qemu/kevin.git] / tests / libqos / i2c.h
blob6e648f922a15670f219708d5d40d34742d82603e
1 /*
2 * I2C libqos
4 * Copyright (c) 2012 Andreas Färber
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 #ifndef LIBQOS_I2C_H
10 #define LIBQOS_I2C_H
13 typedef struct I2CAdapter I2CAdapter;
14 struct I2CAdapter {
15 void (*send)(I2CAdapter *adapter, uint8_t addr,
16 const uint8_t *buf, uint16_t len);
17 void (*recv)(I2CAdapter *adapter, uint8_t addr,
18 uint8_t *buf, uint16_t len);
21 void i2c_send(I2CAdapter *i2c, uint8_t addr,
22 const uint8_t *buf, uint16_t len);
23 void i2c_recv(I2CAdapter *i2c, uint8_t addr,
24 uint8_t *buf, uint16_t len);
26 /* libi2c-omap.c */
27 I2CAdapter *omap_i2c_create(uint64_t addr);
29 /* libi2c-imx.c */
30 I2CAdapter *imx_i2c_create(uint64_t addr);
32 #endif