qemu-e2k/hw/input
Corey Minyard d307c28ca9 i2c: Allow I2C devices to NAK start events
Add a return value to the event handler.  Some I2C devices will
NAK if they have no data, so allow them to do this.  This required
the following changes:

Go through all the event handlers and change them to return int
and return 0.

Modify i2c_start_transfer to terminate the transaction on a NAK.

Modify smbus handing to not assert if a NAK occurs on a second
operation, and terminate the transaction and return -1 instead.

Add some information on semantics to I2CSlaveClass.

Signed-off-by: Corey Minyard <cminyard@mvista.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-01-09 11:40:20 +00:00
..
adb.c adb: change handler only when recognized 2016-10-28 09:38:26 +11:00
hid.c hw/input/hid: support alternative sysrq/break scancodes for gtk-vnc 2016-11-10 15:29:58 +00:00
lm832x.c i2c: Allow I2C devices to NAK start events 2017-01-09 11:40:20 +00:00
Makefile.objs virtio-input: Fix device introspection on non-Linux hosts 2015-10-09 15:25:56 +02:00
milkymist-softusb.c include/qemu/osdep.h: Don't include qapi/error.h 2016-03-22 22:20:15 +01:00
pckbd.c pc: simplify passing qemu_irq 2016-09-08 18:05:21 +04:00
pl050.c hw: explicitly include qemu/log.h 2016-05-19 16:42:29 +02:00
ps2.c ps2: do not generate invalid key codes for unknown keys 2016-09-28 14:03:42 +02:00
pxa2xx_keypad.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
stellaris_input.c arm: Clean up includes 2016-01-29 15:07:23 +00:00
trace-events trace-events: fix first line comment in trace-events 2016-08-12 10:36:01 +01:00
tsc210x.c vmstateify tsc210x 2016-10-04 13:28:08 +01:00
tsc2005.c vmstateify tsc2005 2016-10-04 13:28:08 +01:00
virtio-input-hid.c virtio-input: fix emulated tablet axis ranges 2016-04-13 15:52:28 +02:00
virtio-input-host.c virtio-input: support absolute axis config in pass-through 2016-04-13 17:26:12 +02:00
virtio-input.c virtio: cleanup VMSTATE_VIRTIO_DEVICE 2016-10-10 02:21:43 +03:00
vmmouse.c hw: Clean up includes 2016-01-29 15:07:25 +00:00