mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
Add TSC2301 touchscreen & keypad controller.
Add also a facility for setting up touchscreen calibration data per-board based on calibration data generated by tslib. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4214 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
827df9f3c5
commit
a5d7eb6534
4 changed files with 290 additions and 28 deletions
12
hw/devices.h
12
hw/devices.h
|
@ -16,6 +16,18 @@ uint32_t ads7846_read(void *opaque);
|
|||
void ads7846_write(void *opaque, uint32_t value);
|
||||
struct ads7846_state_s *ads7846_init(qemu_irq penirq);
|
||||
|
||||
/* tsc210x.c */
|
||||
struct uwire_slave_s;
|
||||
struct mouse_transform_info_s;
|
||||
struct uwire_slave_s *tsc2102_init(qemu_irq pint, AudioState *audio);
|
||||
struct uwire_slave_s *tsc2301_init(qemu_irq penirq, qemu_irq kbirq,
|
||||
qemu_irq dav, AudioState *audio);
|
||||
struct i2s_codec_s *tsc210x_codec(struct uwire_slave_s *chip);
|
||||
uint32_t tsc210x_txrx(void *opaque, uint32_t value);
|
||||
void tsc210x_set_transform(struct uwire_slave_s *chip,
|
||||
struct mouse_transform_info_s *info);
|
||||
void tsc210x_key_event(struct uwire_slave_s *chip, int key, int down);
|
||||
|
||||
/* stellaris_input.c */
|
||||
void stellaris_gamepad_init(int n, qemu_irq *irq, const int *keycode);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue