<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/include/hw/input, branch master</title>
<subtitle>QEMU development tree</subtitle>
<id>https://git.zx2c4.com/qemu/atom/include/hw/input?h=master</id>
<link rel='self' href='https://git.zx2c4.com/qemu/atom/include/hw/input?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/'/>
<updated>2024-02-22T11:47:35Z</updated>
<entry>
<title>hw/input/pckbd: Open-code i8042_setup_a20_line() wrapper</title>
<updated>2024-02-22T11:47:35Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>f4bug@amsat.org</email>
</author>
<published>2021-11-05T16:54:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=40f27a785f6b9d238f4b87c17c3ec8329dcde803'/>
<id>urn:sha1:40f27a785f6b9d238f4b87c17c3ec8329dcde803</id>
<content type='text'>
Since the named GPIO lines are a "public" interface to the device,
we can directly call qdev_connect_gpio_out_named(), making it
consistent with how the other A20 input source (port92) is wired.

Suggested-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Yanan Wang &lt;wangyanan55@huawei.com&gt;
Message-Id: &lt;20211218130437.1516929-6-f4bug@amsat.org&gt;
Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/input/stellaris_gamepad: Convert to qemu_input_handler_register()</title>
<updated>2023-11-02T12:52:06Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2023-10-30T11:48:02Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=7c76f397fde313bcdfd3781d64fc28dae0e42df8'/>
<id>urn:sha1:7c76f397fde313bcdfd3781d64fc28dae0e42df8</id>
<content type='text'>
Now that we have converted to qdev, we can use the newer
qemu_input_handler_register() API rather than the legacy
qemu_add_kbd_event_handler().

Since we only have one user, take the opportunity to convert
from scancodes to QCodes, rather than using
qemu_input_key_value_to_scancode() (which adds an 0xe0
prefix and encodes up/down indication in the scancode,
which our old handler function then had to reverse). That
lets us drop the old state field which was tracking whether
we were halfway through a two-byte scancode.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-id: 20231030114802.3671871-7-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>hw/input/stellaris_input: Convert to qdev</title>
<updated>2023-11-02T12:52:06Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2023-10-30T11:48:01Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=a75f336b97a643fc536ba847042f840890e9b378'/>
<id>urn:sha1:a75f336b97a643fc536ba847042f840890e9b378</id>
<content type='text'>
Convert the hw/input/stellaris_input device to qdev.

The interface uses an array property for the board to specify the
keycodes to use, so the s-&gt;keycodes memory is now allocated by the
array-property machinery.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-id: 20231030114802.3671871-6-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>hw/input/stellaris_input: Rename to stellaris_gamepad</title>
<updated>2023-11-02T12:52:06Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2023-10-30T11:47:57Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=c45460decbda7f94d188d2e18ead91b7c60d4e24'/>
<id>urn:sha1:c45460decbda7f94d188d2e18ead91b7c60d4e24</id>
<content type='text'>
This source file implements a stellaris gamepad device; rename
it so that it is a closer match to the device name.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Tested-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-id: 20231030114802.3671871-2-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>hw/input: Clean up includes</title>
<updated>2023-02-08T06:16:23Z</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2023-02-02T13:38:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=626fb3c6a884583a425672f34c3837ed99365b27'/>
<id>urn:sha1:626fb3c6a884583a425672f34c3837ed99365b27</id>
<content type='text'>
This commit was created with scripts/clean-includes.

All .c should include qemu/osdep.h first.  The script performs three
related cleanups:

* Ensure .c files include qemu/osdep.h first.
* Including it in a .h is redundant, since the .c  already includes
  it.  Drop such inclusions.
* Likewise, including headers qemu/osdep.h includes is redundant.
  Drop these, too.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Message-Id: &lt;20230202133830.2152150-9-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>hw/input/tsc2xxx: Constify set_transform()'s MouseTransformInfo arg</title>
<updated>2023-01-05T14:11:15Z</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
<email>philmd@linaro.org</email>
</author>
<published>2022-12-20T14:25:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=3d153708943c176befe6712e37b580d4287eba6f'/>
<id>urn:sha1:3d153708943c176befe6712e37b580d4287eba6f</id>
<content type='text'>
The pointed MouseTransformInfo structure is accessed read-only.

Signed-off-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Message-id: 20221220142520.24094-2-philmd@linaro.org
Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
</content>
</entry>
<entry>
<title>hw/input/ps2.c: Convert TYPE_PS2_{KBD, MOUSE}_DEVICE to 3-phase reset</title>
<updated>2022-12-16T15:56:24Z</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2022-11-09T17:00:09Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=fc2fc3c1eda8286eb890fe7e0896d20c80ac4e7b'/>
<id>urn:sha1:fc2fc3c1eda8286eb890fe7e0896d20c80ac4e7b</id>
<content type='text'>
Convert the child classes TYPE_PS2_KBD_DEVICE and
TYPE_PS2_MOUSE_DEVICE to the 3-phase reset system.  This allows us to
stop using the old device_class_set_parent_reset() function.

We don't need to register an 'exit' phase function for the
subclasses, because they have no work to do in that phase.  Passing
NULL to resettable_class_set_parent_phases() will result in the
parent class method being called for that phase, so we don't need to
register a function purely to chain to the parent 'exit' phase
function.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;philmd@linaro.org&gt;
Message-id: 20221109170009.3498451-3-peter.maydell@linaro.org
</content>
</entry>
<entry>
<title>pckbd: remove legacy i8042_mm_init() function</title>
<updated>2022-07-18T18:28:46Z</updated>
<author>
<name>Mark Cave-Ayland</name>
<email>mark.cave-ayland@ilande.co.uk</email>
</author>
<published>2022-07-12T21:52:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=b704d63d094cc757c20c186ff40d692deb5e30de'/>
<id>urn:sha1:b704d63d094cc757c20c186ff40d692deb5e30de</id>
<content type='text'>
This legacy function is only used during the initialisation of the MIPS magnum
machine, so inline its functionality directly into mips_jazz_init() and then
remove it.

Signed-off-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Tested-by: Helge Deller &lt;deller@gmx.de&gt;
Acked-by: Helge Deller &lt;deller@gmx.de&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-Id: &lt;20220712215251.7944-41-mark.cave-ayland@ilande.co.uk&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>ps2: remove unused legacy ps2_mouse_init() function</title>
<updated>2022-07-18T18:28:46Z</updated>
<author>
<name>Mark Cave-Ayland</name>
<email>mark.cave-ayland@ilande.co.uk</email>
</author>
<published>2022-07-12T21:52:50Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=46e9783fbeabfac3c4f07c0de5e32d8c322f7a07'/>
<id>urn:sha1:46e9783fbeabfac3c4f07c0de5e32d8c322f7a07</id>
<content type='text'>
Now that the legacy ps2_mouse_init() function is no longer used, it can be completely
removed along with its associated trace-event.

Signed-off-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Tested-by: Helge Deller &lt;deller@gmx.de&gt;
Acked-by: Helge Deller &lt;deller@gmx.de&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-Id: &lt;20220712215251.7944-40-mark.cave-ayland@ilande.co.uk&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
<entry>
<title>pckbd: don't use legacy ps2_mouse_init() function</title>
<updated>2022-07-18T18:28:46Z</updated>
<author>
<name>Mark Cave-Ayland</name>
<email>mark.cave-ayland@ilande.co.uk</email>
</author>
<published>2022-07-12T21:52:49Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/qemu/commit/?id=9d1a4250377fdbc05088adbff1e1aa3572ce9889'/>
<id>urn:sha1:9d1a4250377fdbc05088adbff1e1aa3572ce9889</id>
<content type='text'>
Instantiate the PS2 mouse device within KBDState using
object_initialize_child() in i8042_initfn() and i8042_mmio_init() and realize
it in i8042_realizefn() and i8042_mmio_realize() accordingly.

Signed-off-by: Mark Cave-Ayland &lt;mark.cave-ayland@ilande.co.uk&gt;
Tested-by: Helge Deller &lt;deller@gmx.de&gt;
Acked-by: Helge Deller &lt;deller@gmx.de&gt;
Reviewed-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Message-Id: &lt;20220712215251.7944-39-mark.cave-ayland@ilande.co.uk&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
</content>
</entry>
</feed>
