diff options
Diffstat (limited to 'hw/i2c.h')
-rw-r--r-- | hw/i2c.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -46,4 +46,18 @@ void i2c_nack(i2c_bus *bus); int i2c_send(i2c_bus *bus, uint8_t data); int i2c_recv(i2c_bus *bus); +/* max7310.c */ +i2c_slave *max7310_init(i2c_bus *bus); +void max7310_reset(i2c_slave *i2c); +qemu_irq *max7310_gpio_in_get(i2c_slave *i2c); +void max7310_gpio_out_set(i2c_slave *i2c, int line, qemu_irq handler); + +/* wm8750.c */ +i2c_slave *wm8750_init(i2c_bus *bus, AudioState *audio); +void wm8750_reset(i2c_slave *i2c); +void wm8750_data_req_set(i2c_slave *i2c, + void (*data_req)(void *, int, int), void *opaque); +void wm8750_dac_dat(void *opaque, uint32_t sample); +uint32_t wm8750_adc_dat(void *opaque); + #endif |