1
2
3
4
5
6
7
8
9
10
11#ifndef HW_INPUT_TSC2XXX_H
12#define HW_INPUT_TSC2XXX_H
13
14#include "hw/irq.h"
15#include "ui/console.h"
16
17typedef struct uWireSlave {
18 uint16_t (*receive)(void *opaque);
19 void (*send)(void *opaque, uint16_t data);
20 void *opaque;
21} uWireSlave;
22
23
24uWireSlave *tsc2102_init(qemu_irq pint);
25uWireSlave *tsc2301_init(qemu_irq penirq, qemu_irq kbirq, qemu_irq dav);
26I2SCodec *tsc210x_codec(uWireSlave *chip);
27uint32_t tsc210x_txrx(void *opaque, uint32_t value, int len);
28void tsc210x_set_transform(uWireSlave *chip, MouseTransformInfo *info);
29void tsc210x_key_event(uWireSlave *chip, int key, int down);
30
31
32void *tsc2005_init(qemu_irq pintdav);
33uint32_t tsc2005_txrx(void *opaque, uint32_t value, int len);
34void tsc2005_set_transform(void *opaque, MouseTransformInfo *info);
35
36#endif
37