2 * TI touchscreen controller
4 * Copyright (c) 2006 Andrzej Zaborowski
5 * Copyright (C) 2008 Nokia Corporation
7 * This work is licensed under the terms of the GNU GPL, version 2 or later.
8 * See the COPYING file in the top-level directory.
11 #ifndef HW_INPUT_TSC2XXX_H
12 #define HW_INPUT_TSC2XXX_H
14 #include "ui/console.h"
16 typedef struct uWireSlave
{
17 uint16_t (*receive
)(void *opaque
);
18 void (*send
)(void *opaque
, uint16_t data
);
23 uWireSlave
*tsc2102_init(qemu_irq pint
);
24 uWireSlave
*tsc2301_init(qemu_irq penirq
, qemu_irq kbirq
, qemu_irq dav
);
25 I2SCodec
*tsc210x_codec(uWireSlave
*chip
);
26 uint32_t tsc210x_txrx(void *opaque
, uint32_t value
, int len
);
27 void tsc210x_set_transform(uWireSlave
*chip
, MouseTransformInfo
*info
);
28 void tsc210x_key_event(uWireSlave
*chip
, int key
, int down
);
31 void *tsc2005_init(qemu_irq pintdav
);
32 uint32_t tsc2005_txrx(void *opaque
, uint32_t value
, int len
);
33 void tsc2005_set_transform(void *opaque
, MouseTransformInfo
*info
);